summaryrefslogtreecommitdiff
path: root/internal/federation/dereferencing/account.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/dereferencing/account.go
parentreadme typo (diff)
downloadgotosocial-a1166768149ef9d6c948c73b07190008e3207999.tar.xz
Review changes
Diffstat (limited to 'internal/federation/dereferencing/account.go')
-rw-r--r--internal/federation/dereferencing/account.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/federation/dereferencing/account.go b/internal/federation/dereferencing/account.go
index eb6a3a760..b16b53fee 100644
--- a/internal/federation/dereferencing/account.go
+++ b/internal/federation/dereferencing/account.go
@@ -165,19 +165,19 @@ func (d *deref) dereferenceAccountable(ctx context.Context, username string, rem
}
switch t.GetTypeName() {
- case string(ap.ActorPerson):
+ case ap.ActorPerson:
p, ok := t.(vocab.ActivityStreamsPerson)
if !ok {
return nil, errors.New("DereferenceAccountable: error resolving type as activitystreams person")
}
return p, nil
- case string(ap.ActorApplication):
+ case ap.ActorApplication:
p, ok := t.(vocab.ActivityStreamsApplication)
if !ok {
return nil, errors.New("DereferenceAccountable: error resolving type as activitystreams application")
}
return p, nil
- case string(ap.ActorService):
+ case ap.ActorService:
p, ok := t.(vocab.ActivityStreamsService)
if !ok {
return nil, errors.New("DereferenceAccountable: error resolving type as activitystreams service")