summaryrefslogtreecommitdiff
path: root/internal/federation/dereferencing/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/federation/dereferencing/account.go')
-rw-r--r--internal/federation/dereferencing/account.go24
1 files changed, 18 insertions, 6 deletions
diff --git a/internal/federation/dereferencing/account.go b/internal/federation/dereferencing/account.go
index b16b53fee..35ea2507d 100644
--- a/internal/federation/dereferencing/account.go
+++ b/internal/federation/dereferencing/account.go
@@ -165,18 +165,30 @@ func (d *deref) dereferenceAccountable(ctx context.Context, username string, rem
}
switch t.GetTypeName() {
- 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 ap.ActorApplication:
p, ok := t.(vocab.ActivityStreamsApplication)
if !ok {
return nil, errors.New("DereferenceAccountable: error resolving type as activitystreams application")
}
return p, nil
+ case ap.ActorGroup:
+ p, ok := t.(vocab.ActivityStreamsGroup)
+ if !ok {
+ return nil, errors.New("DereferenceAccountable: error resolving type as activitystreams group")
+ }
+ return p, nil
+ case ap.ActorOrganization:
+ p, ok := t.(vocab.ActivityStreamsOrganization)
+ if !ok {
+ return nil, errors.New("DereferenceAccountable: error resolving type as activitystreams organization")
+ }
+ return p, nil
+ 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 ap.ActorService:
p, ok := t.(vocab.ActivityStreamsService)
if !ok {