Add debug endpoint for getting replies to node id
All checks were successful
/ docker (push) Successful in 4m19s

This commit is contained in:
Melody Becker 2025-05-16 22:04:57 +02:00
parent 1b0c63a3b1
commit c9895bc9af
5 changed files with 20 additions and 5 deletions

View file

@ -16,7 +16,7 @@ type Note struct {
// Soft delete means that this entry still exists in the db, but gorm won't include it anymore unless specifically told to
// If not null, this entry is marked as deleted
DeletedAt gorm.DeletedAt `gorm:"index"`
Creator User // The user that created this note
Creator *User // The user that created this note
CreatorId string // Id of the creator user
Remote bool // Whether the note is originally a remote one and just "cached"
// Raw content of the note. So without additional formatting applied
@ -26,7 +26,7 @@ type Note struct {
RepliesTo sql.NullString // Url of the message this replies to
Quotes sql.NullString // url of the message this note quotes
AccessLevel NoteAccessLevel // Where to send this message to (public, home, followers, dm)
Origin RemoteServer
Origin *RemoteServer
OriginId uint
AttachmentRelations []NoteToAttachment `gorm:"foreignKey:NoteId;constraint:OnDelete:CASCADE"` // Attachments added on to this note