diff options
author | 2024-03-04 11:46:59 +0100 | |
---|---|---|
committer | 2024-03-04 11:46:59 +0100 | |
commit | f487fc5d4be9175db571b5a573ea5d1f348f014a (patch) | |
tree | 87ac5031ef4a03145cc29f3c19275f8717eda944 /internal/ap/interfaces.go | |
parent | [docs] Update HTTP signature docs a bit (#2721) (diff) | |
download | gotosocial-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.go | 6 |
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 |