summaryrefslogtreecommitdiff
path: root/internal/federation/dereferencing/collectionpage.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-08-31 15:59:12 +0200
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-08-31 15:59:12 +0200
commitb95c80def6413df85ff53a5bcdbd553936c2d6e2 (patch)
treefa3fcc7e4bd2deaf371c324279fd6521ffb24445 /internal/federation/dereferencing/collectionpage.go
parentgo fmt (diff)
downloadgotosocial-b95c80def6413df85ff53a5bcdbd553936c2d6e2.tar.xz
change muchos things
Diffstat (limited to 'internal/federation/dereferencing/collectionpage.go')
-rw-r--r--internal/federation/dereferencing/collectionpage.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/federation/dereferencing/collectionpage.go b/internal/federation/dereferencing/collectionpage.go
index 6f0beeaf6..c5a54402c 100644
--- a/internal/federation/dereferencing/collectionpage.go
+++ b/internal/federation/dereferencing/collectionpage.go
@@ -28,7 +28,6 @@ import (
"github.com/go-fed/activity/streams"
"github.com/go-fed/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
- "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
)
// DereferenceCollectionPage returns the activitystreams CollectionPage at the specified IRI, or an error if something goes wrong.
@@ -57,7 +56,7 @@ func (d *deref) DereferenceCollectionPage(ctx context.Context, username string,
return nil, fmt.Errorf("DereferenceCollectionPage: error resolving json into ap vocab type: %s", err)
}
- if t.GetTypeName() != gtsmodel.ActivityStreamsCollectionPage {
+ if t.GetTypeName() != ap.ObjectCollectionPage {
return nil, fmt.Errorf("DereferenceCollectionPage: type name %s not supported", t.GetTypeName())
}