diff options
author | 2024-03-12 15:34:08 +0100 | |
---|---|---|
committer | 2024-03-12 14:34:08 +0000 | |
commit | 1bcdf1da3bb10d564a6a56a89af5afa53e5cd78f (patch) | |
tree | 83716cea30d236c48e1655193c3adfc232e5bc75 /internal/federation/dereferencing/account.go | |
parent | [chore] Update usage of OTEL libraries (#2725) (diff) | |
download | gotosocial-1bcdf1da3bb10d564a6a56a89af5afa53e5cd78f.tar.xz |
[feature] Process incoming `Move` activity (#2724)
* [feature] Process incoming account Move activity
* fix targetAcct typo
* put move origin account on fMsg
* shift more move functionality back to the worker fn
* simplify error logic
Diffstat (limited to 'internal/federation/dereferencing/account.go')
-rw-r--r-- | internal/federation/dereferencing/account.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/internal/federation/dereferencing/account.go b/internal/federation/dereferencing/account.go index 10d15bca6..5e81fb445 100644 --- a/internal/federation/dereferencing/account.go +++ b/internal/federation/dereferencing/account.go @@ -64,8 +64,8 @@ func accountFresh( return true } - if !account.SuspendedAt.IsZero() { - // Can't refresh + if account.IsSuspended() { + // Can't/won't refresh // suspended accounts. return true } @@ -388,8 +388,9 @@ func (d *Dereferencer) enrichAccountSafely( account *gtsmodel.Account, accountable ap.Accountable, ) (*gtsmodel.Account, ap.Accountable, error) { - // Noop if account has been suspended. - if !account.SuspendedAt.IsZero() { + // Noop if account suspended; + // we don't want to deref it. + if account.IsSuspended() { return account, nil, nil } |