From 1bcdf1da3bb10d564a6a56a89af5afa53e5cd78f Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:34:08 +0100 Subject: [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 --- internal/federation/federatingdb/create.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/federation/federatingdb/create.go') diff --git a/internal/federation/federatingdb/create.go b/internal/federation/federatingdb/create.go index cfb0f319b..cacaf07cf 100644 --- a/internal/federation/federatingdb/create.go +++ b/internal/federation/federatingdb/create.go @@ -68,6 +68,12 @@ func (f *federatingDB) Create(ctx context.Context, asType vocab.Type) error { requestingAcct := activityContext.requestingAcct receivingAcct := activityContext.receivingAcct + if requestingAcct.IsMoving() { + // A Moving account + // can't do this. + return nil + } + switch asType.GetTypeName() { case ap.ActivityBlock: // BLOCK SOMETHING -- cgit v1.2.3