summaryrefslogtreecommitdiff
path: root/internal/typeutils/asinterfaces.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-28 19:57:04 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-28 19:57:04 +0200
commit87177d840b9703f572392ef4bd0f5013fd5c3a77 (patch)
treec59388998d5defd5ec3577483f70736238953f72 /internal/typeutils/asinterfaces.go
parentNotifications (#34) (diff)
downloadgotosocial-87177d840b9703f572392ef4bd0f5013fd5c3a77.tar.xz
Announce/boost (#35)
Remote boosts incoming/outgoing now working.
Diffstat (limited to 'internal/typeutils/asinterfaces.go')
-rw-r--r--internal/typeutils/asinterfaces.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/typeutils/asinterfaces.go b/internal/typeutils/asinterfaces.go
index eea7fd7d9..aae3ecf93 100644
--- a/internal/typeutils/asinterfaces.go
+++ b/internal/typeutils/asinterfaces.go
@@ -111,6 +111,18 @@ type Likeable interface {
withObject
}
+// Announceable represents the minimum interface for an activitystreams 'announce' activity.
+type Announceable interface {
+ withJSONLDId
+ withTypeName
+
+ withActor
+ withObject
+ withPublished
+ withTo
+ withCC
+}
+
type withJSONLDId interface {
GetJSONLDId() vocab.JSONLDIdProperty
}