mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 01:52:26 -05: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:
parent
5e871e81a8
commit
1bcdf1da3b
16 changed files with 1149 additions and 16 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue