List attachments now return with userinfo

This commit is contained in:
2025-03-31 00:45:39 +08:00
parent 370ee84b34
commit 11d54c7c78
4 changed files with 51 additions and 8 deletions

View File

@ -5,6 +5,7 @@ import (
"git.solsynth.dev/hypernet/nexus/pkg/nex/cachekit"
"git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
"git.solsynth.dev/hypernet/passport/pkg/authkit/models"
"git.solsynth.dev/hypernet/paperclip/pkg/internal/gap"
@ -68,7 +69,8 @@ type Attachment struct {
Boosts []AttachmentBoost `json:"boosts"`
AccountID uint `json:"account_id"`
AccountID uint `json:"account_id"`
Account models.Account `gorm:"-" json:"account"`
// Outdated fields, just for backward compatibility
FileChunks datatypes.JSONMap `json:"file_chunks" gorm:"-"`