summaryrefslogtreecommitdiff
path: root/internal/ap/interfaces.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-03-04 11:46:59 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-04 11:46:59 +0100
commitf487fc5d4be9175db571b5a573ea5d1f348f014a (patch)
tree87ac5031ef4a03145cc29f3c19275f8717eda944 /internal/ap/interfaces.go
parent[docs] Update HTTP signature docs a bit (#2721) (diff)
downloadgotosocial-f487fc5d4be9175db571b5a573ea5d1f348f014a.tar.xz
[bugfix] Sanitize incoming PropertyValue fields (#2722)v0.14.0-rc3
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 fa8e8a338..05f6742cc 100644
--- a/internal/ap/interfaces.go
+++ b/internal/ap/interfaces.go
@@ -387,6 +387,12 @@ type WithName interface {
SetActivityStreamsName(vocab.ActivityStreamsNameProperty)
}
+// WithValue represents an activity with SchemaValueProperty
+type WithValue interface {
+ GetSchemaValue() vocab.SchemaValueProperty
+ SetSchemaValue(vocab.SchemaValueProperty)
+}
+
// WithImage represents an activity with ActivityStreamsImageProperty
type WithImage interface {
GetActivityStreamsImage() vocab.ActivityStreamsImageProperty