From 0f2de6394a1c52d47e326bb7d7d129a217ae4f6f Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 10 Aug 2021 13:32:39 +0200 Subject: Dereference remote replies (#132) * decided where to put reply dereferencing * fiddling with dereferencing threads * further adventures * tidy up some stuff * move dereferencing functionality * a bunch of refactoring * go fmt * more refactoring * bleep bloop * docs and linting * start implementing replies collection on gts side * fiddling around * allow dereferencing our replies * lint, fmt --- internal/gtsmodel/activitystreams.go | 4 ++++ internal/gtsmodel/status.go | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'internal/gtsmodel') diff --git a/internal/gtsmodel/activitystreams.go b/internal/gtsmodel/activitystreams.go index 77c935c5f..5cd92015c 100644 --- a/internal/gtsmodel/activitystreams.go +++ b/internal/gtsmodel/activitystreams.go @@ -43,6 +43,10 @@ const ( ActivityStreamsTombstone = "Tombstone" // ActivityStreamsVideo https://www.w3.org/TR/activitystreams-vocabulary/#dfn-video ActivityStreamsVideo = "Video" + //ActivityStreamsCollection https://www.w3.org/TR/activitystreams-vocabulary/#dfn-collection + ActivityStreamsCollection = "Collection" + // ActivityStreamsCollectionPage https://www.w3.org/TR/activitystreams-vocabulary/#dfn-collectionpage + ActivityStreamsCollectionPage = "CollectionPage" ) const ( diff --git a/internal/gtsmodel/status.go b/internal/gtsmodel/status.go index 524b9c3ef..106298bcd 100644 --- a/internal/gtsmodel/status.go +++ b/internal/gtsmodel/status.go @@ -18,7 +18,9 @@ package gtsmodel -import "time" +import ( + "time" +) // Status represents a user-created 'post' or 'status' in the database, either remote or local type Status struct { -- cgit v1.2.3