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/extract.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/extract.go')
| -rw-r--r-- | internal/ap/extract.go | 9 |
1 files changed, 8 insertions, 1 deletions
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 } |
