summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/move.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-01-28 20:22:23 +0000
committerLibravatar GitHub <noreply@github.com>2025-01-28 20:22:23 +0000
commit61141ac2324fd73221f8301ba3805c051bc99fe2 (patch)
treeb05d8cd260a18d174dbad5037b9de8bde7a126a5 /internal/federation/federatingdb/move.go
parent[bugfix] Allow processing null ID emojis (#3702) (diff)
downloadgotosocial-61141ac2324fd73221f8301ba3805c051bc99fe2.tar.xz
[chore] remove type switch in Create() and instead move to FederatedCallbacks() (#3697)
* remove type switch in Create() and instead move to FederatedCallbacks() * add missing (my bad!) federating wrapped callbacks behaviour * add missing license header :innocent: * fix create flag test to use correct function
Diffstat (limited to 'internal/federation/federatingdb/move.go')
-rw-r--r--internal/federation/federatingdb/move.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/federation/federatingdb/move.go b/internal/federation/federatingdb/move.go
index 6ae299e30..cfdd0f651 100644
--- a/internal/federation/federatingdb/move.go
+++ b/internal/federation/federatingdb/move.go
@@ -38,6 +38,9 @@ import (
func (f *federatingDB) Move(ctx context.Context, move vocab.ActivityStreamsMove) error {
log.DebugKV(ctx, "move", serialize{move})
+ // Mark activity as handled.
+ f.storeActivityID(move)
+
activityContext := getActivityContext(ctx)
if activityContext.internal {
// Already processed.