diff options
author | 2024-03-12 15:34:08 +0100 | |
---|---|---|
committer | 2024-03-12 14:34:08 +0000 | |
commit | 1bcdf1da3bb10d564a6a56a89af5afa53e5cd78f (patch) | |
tree | 83716cea30d236c48e1655193c3adfc232e5bc75 /internal/processing/workers/fromfediapi.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/processing/workers/fromfediapi.go')
-rw-r--r-- | internal/processing/workers/fromfediapi.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/processing/workers/fromfediapi.go b/internal/processing/workers/fromfediapi.go index 74ec0db25..62cb58c83 100644 --- a/internal/processing/workers/fromfediapi.go +++ b/internal/processing/workers/fromfediapi.go @@ -145,6 +145,15 @@ func (p *Processor) ProcessFromFediAPI(ctx context.Context, fMsg messages.FromFe case ap.ObjectProfile: return p.fediAPI.DeleteAccount(ctx, fMsg) } + + // MOVE SOMETHING + case ap.ActivityMove: + + // MOVE PROFILE/ACCOUNT + // fromfediapi_move.go. + if fMsg.APObjectType == ap.ObjectProfile { + return p.fediAPI.MoveAccount(ctx, fMsg) + } } return gtserror.Newf("unhandled: %s %s", fMsg.APActivityType, fMsg.APObjectType) |