summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/undo.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-09-03 10:30:40 +0200
committerLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-09-03 10:30:40 +0200
commita1166768149ef9d6c948c73b07190008e3207999 (patch)
treeef1810c6507c148efc802747b3fdbb06ee35186b /internal/federation/federatingdb/undo.go
parentreadme typo (diff)
downloadgotosocial-a1166768149ef9d6c948c73b07190008e3207999.tar.xz
Review changes
Diffstat (limited to 'internal/federation/federatingdb/undo.go')
-rw-r--r--internal/federation/federatingdb/undo.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/federation/federatingdb/undo.go b/internal/federation/federatingdb/undo.go
index 7b49815df..481c2d787 100644
--- a/internal/federation/federatingdb/undo.go
+++ b/internal/federation/federatingdb/undo.go
@@ -73,7 +73,7 @@ func (f *federatingDB) Undo(ctx context.Context, undo vocab.ActivityStreamsUndo)
continue
}
switch iter.GetType().GetTypeName() {
- case string(ap.ActivityFollow):
+ case ap.ActivityFollow:
// UNDO FOLLOW
ASFollow, ok := iter.GetType().(vocab.ActivityStreamsFollow)
if !ok {
@@ -102,11 +102,11 @@ func (f *federatingDB) Undo(ctx context.Context, undo vocab.ActivityStreamsUndo)
}
l.Debug("follow undone")
return nil
- case string(ap.ActivityLike):
+ case ap.ActivityLike:
// UNDO LIKE
- case string(ap.ActivityAnnounce):
+ case ap.ActivityAnnounce:
// UNDO BOOST/REBLOG/ANNOUNCE
- case string(ap.ActivityBlock):
+ case ap.ActivityBlock:
// UNDO BLOCK
ASBlock, ok := iter.GetType().(vocab.ActivityStreamsBlock)
if !ok {