summaryrefslogtreecommitdiff
path: root/internal/ap/interfaces.go
diff options
context:
space:
mode:
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 f8c18ffc8..33b2eb9ca 100644
--- a/internal/ap/interfaces.go
+++ b/internal/ap/interfaces.go
@@ -60,6 +60,7 @@ type Statusable interface {
WithSensitive
WithConversation
WithContent
+ WithSetContent
WithAttachment
WithTag
WithReplies
@@ -281,6 +282,11 @@ type WithContent interface {
GetActivityStreamsContent() vocab.ActivityStreamsContentProperty
}
+// WithSetContent represents an activity that can have content set on it.
+type WithSetContent interface {
+ SetActivityStreamsContent(vocab.ActivityStreamsContentProperty)
+}
+
// WithPublished represents an activity with ActivityStreamsPublishedProperty
type WithPublished interface {
GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty