[feature] Parse funkwhale Album as Statusable to allow barebones interacting with bandwagon (#3931)

* bump activity version

* parse funkwhale / bandwagon album as statusable
This commit is contained in:
tobi
2025-03-24 11:56:42 +01:00
committed by GitHub
parent 4af8d1a2cb
commit 27171a78de
131 changed files with 26449 additions and 3098 deletions

View File

@ -434,9 +434,10 @@ func (c *Converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab
return nil, gtserror.SetMalformed(err)
}
// Status was sent to us or dereffed
// by us so it must be federated.
// Status was sent to us or dereffed by
// us so it must be federated and not local.
status.Federated = util.Ptr(true)
status.Local = util.Ptr(false)
// Derive interaction policy for this status.
status.InteractionPolicy = ap.ExtractInteractionPolicy(
@ -446,9 +447,11 @@ func (c *Converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab
// Set approvedByURI if present,
// for later dereferencing.
approvedByURI := ap.GetApprovedBy(statusable)
if approvedByURI != nil {
status.ApprovedByURI = approvedByURI.String()
if ipa, ok := statusable.(ap.InteractionPolicyAware); ok {
approvedByURI := ap.GetApprovedBy(ipa)
if approvedByURI != nil {
status.ApprovedByURI = approvedByURI.String()
}
}
// Assume not pending approval; this may