diff options
author | 2023-02-13 21:19:51 +0100 | |
---|---|---|
committer | 2023-02-13 20:19:51 +0000 | |
commit | 561ad71e58189d1daea28ec50cc9d4bac82dcfec (patch) | |
tree | e0286a51ab64fd971a8f2ebd58bacc4a59f8e87e /internal/gtsmodel | |
parent | [performance] processing media and scheduled jobs improvements (#1482) (diff) | |
download | gotosocial-561ad71e58189d1daea28ec50cc9d4bac82dcfec.tar.xz |
[bugfix] Fix up `error getting account avatar/header` errors, other small fixes (#1496)
* start fiddling with media + account queries a little
* initialize state when pruning
* allow for unsetting remote media
make sure to wait til media loaded
fix silly tiny bug
* move comment a bit for readability
* slight reformat of fetchRemoteAccount{Avatar,Header}
* fix issue after rebase
* slightly neaten up logic of avatar/header media handling
* remove log prefix (callername log field handles this)
---------
Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/gtsmodel')
-rw-r--r-- | internal/gtsmodel/mediaattachment.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/gtsmodel/mediaattachment.go b/internal/gtsmodel/mediaattachment.go index 511a6a27a..00b21f202 100644 --- a/internal/gtsmodel/mediaattachment.go +++ b/internal/gtsmodel/mediaattachment.go @@ -34,7 +34,6 @@ type MediaAttachment struct { Type FileType `validate:"oneof=Image Gifv Audio Video Unknown" bun:",nullzero,notnull"` // Type of file (image/gifv/audio/video) FileMeta FileMeta `validate:"required" bun:",embed:,nullzero,notnull"` // Metadata about the file AccountID string `validate:"required,ulid" bun:"type:CHAR(26),nullzero,notnull"` // To which account does this attachment belong - Account *Account `validate:"-" bun:"rel:belongs-to,join:account_id=id"` // Account corresponding to accountID Description string `validate:"-" bun:""` // Description of the attachment (for screenreaders) ScheduledStatusID string `validate:"omitempty,ulid" bun:"type:CHAR(26),nullzero"` // To which scheduled status does this attachment belong Blurhash string `validate:"required_if=Type Image,required_if=Type Gif,required_if=Type Video" bun:",nullzero"` // What is the generated blurhash of this attachment |