summaryrefslogtreecommitdiff
path: root/internal/ap/interfaces.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-10-06 18:18:02 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-06 18:18:02 +0200
commit3dc7644ae6bdbfbae2e126896937e322247b5b33 (patch)
tree45487a241b439ce590863f68ea479d8dfd92ba28 /internal/ap/interfaces.go
parentfix logs not working properly (#264) (diff)
downloadgotosocial-3dc7644ae6bdbfbae2e126896937e322247b5b33.tar.xz
Derive visibility fixes (#271)
* use pub public const * don't error on no summary * move extract visibility to separate function * extract visibility test * add addressable interface
Diffstat (limited to 'internal/ap/interfaces.go')
-rw-r--r--internal/ap/interfaces.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/ap/interfaces.go b/internal/ap/interfaces.go
index a20f39bd2..da7e001db 100644
--- a/internal/ap/interfaces.go
+++ b/internal/ap/interfaces.go
@@ -133,6 +133,12 @@ type Announceable interface {
WithCC
}
+// Addressable represents the minimum interface for an addressed activity.
+type Addressable interface {
+ WithTo
+ WithCC
+}
+
// CollectionPageable represents the minimum interface for an activitystreams 'CollectionPage' object.
type CollectionPageable interface {
WithJSONLDId