From 27171a78ded38a7142aecfcaa75ede86f73b7a5b Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 24 Mar 2025 11:56:42 +0100 Subject: [feature] Parse funkwhale `Album` as Statusable to allow barebones interacting with bandwagon (#3931) * bump activity version * parse funkwhale / bandwagon album as statusable --- internal/ap/extract.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'internal/ap/extract.go') diff --git a/internal/ap/extract.go b/internal/ap/extract.go index 20f8eb98a..d454d69f6 100644 --- a/internal/ap/extract.go +++ b/internal/ap/extract.go @@ -1078,7 +1078,14 @@ func ExtractInteractionPolicy( statusable Statusable, owner *gtsmodel.Account, ) *gtsmodel.InteractionPolicy { - policyProp := statusable.GetGoToSocialInteractionPolicy() + ipa, ok := statusable.(InteractionPolicyAware) + if !ok { + // Not a type with interaction + // policy properties settable. + return nil + } + + policyProp := ipa.GetGoToSocialInteractionPolicy() if policyProp == nil || policyProp.Len() != 1 { return nil } -- cgit v1.2.3