diff options
| author | 2025-03-24 11:56:42 +0100 | |
|---|---|---|
| committer | 2025-03-24 10:56:42 +0000 | |
| commit | 27171a78ded38a7142aecfcaa75ede86f73b7a5b (patch) | |
| tree | 6468899981ba4f6fd78cd95544ed1ded34120437 /internal/ap/serialize.go | |
| parent | [chore]: Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 (#3927) (diff) | |
| download | gotosocial-27171a78ded38a7142aecfcaa75ede86f73b7a5b.tar.xz | |
[feature] Parse funkwhale `Album` as Statusable to allow barebones interacting with bandwagon (#3931)
* bump activity version
* parse funkwhale / bandwagon album as statusable
Diffstat (limited to 'internal/ap/serialize.go')
| -rw-r--r-- | internal/ap/serialize.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/ap/serialize.go b/internal/ap/serialize.go index f1dc095f6..65ba69ba1 100644 --- a/internal/ap/serialize.go +++ b/internal/ap/serialize.go @@ -153,7 +153,9 @@ func serializeStatusable(t vocab.Type, includeContext bool) (map[string]interfac NormalizeOutgoingAttachmentProp(statusable, data) NormalizeOutgoingContentProp(statusable, data) - NormalizeOutgoingInteractionPolicyProp(statusable, data) + if ipa, ok := statusable.(InteractionPolicyAware); ok { + NormalizeOutgoingInteractionPolicyProp(ipa, data) + } return data, nil } |
