From f487fc5d4be9175db571b5a573ea5d1f348f014a Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:46:59 +0100 Subject: [bugfix] Sanitize incoming PropertyValue fields (#2722) --- internal/ap/interfaces.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/ap/interfaces.go') 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 -- cgit v1.2.3