summaryrefslogtreecommitdiff
path: root/internal/db/bundb/account.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-02-13 21:19:51 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-13 20:19:51 +0000
commit561ad71e58189d1daea28ec50cc9d4bac82dcfec (patch)
treee0286a51ab64fd971a8f2ebd58bacc4a59f8e87e /internal/db/bundb/account.go
parent[performance] processing media and scheduled jobs improvements (#1482) (diff)
downloadgotosocial-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/db/bundb/account.go')
-rw-r--r--internal/db/bundb/account.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/db/bundb/account.go b/internal/db/bundb/account.go
index dccfee45b..9fdd28342 100644
--- a/internal/db/bundb/account.go
+++ b/internal/db/bundb/account.go
@@ -41,9 +41,7 @@ type accountDB struct {
func (a *accountDB) newAccountQ(account *gtsmodel.Account) *bun.SelectQuery {
return a.conn.
NewSelect().
- Model(account).
- Relation("AvatarMediaAttachment").
- Relation("HeaderMediaAttachment")
+ Model(account)
}
func (a *accountDB) GetAccountByID(ctx context.Context, id string) (*gtsmodel.Account, db.Error) {