mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user