diff options
| author | 2021-09-03 10:30:40 +0200 | |
|---|---|---|
| committer | 2021-09-03 10:30:40 +0200 | |
| commit | a1166768149ef9d6c948c73b07190008e3207999 (patch) | |
| tree | ef1810c6507c148efc802747b3fdbb06ee35186b /internal/federation/dereferencing/account.go | |
| parent | readme typo (diff) | |
| download | gotosocial-a1166768149ef9d6c948c73b07190008e3207999.tar.xz | |
Review changes
Diffstat (limited to 'internal/federation/dereferencing/account.go')
| -rw-r--r-- | internal/federation/dereferencing/account.go | 6 |
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") |
