parse funkwhale / bandwagon album as statusable

This commit is contained in:
tobi 2025-03-23 16:27:10 +01:00
commit c1fd23438d
8 changed files with 171 additions and 43 deletions

View file

@ -76,7 +76,8 @@ func IsStatusable(typeName string) bool {
ObjectEvent,
ObjectPlace,
ObjectProfile,
ActivityQuestion:
ActivityQuestion,
ObjectAlbum:
return true
default:
return false
@ -226,11 +227,13 @@ type Statusable interface {
WithTo
WithCc
WithSensitive
WithConversation
WithContent
WithAttachment
WithTag
WithReplies
}
type InteractionPolicyAware interface {
WithInteractionPolicy
WithApprovedBy
}
@ -589,10 +592,6 @@ type WithSensitive interface {
SetActivityStreamsSensitive(vocab.ActivityStreamsSensitiveProperty)
}
// WithConversation ...
type WithConversation interface { // TODO
}
// WithContent represents an activity with ActivityStreamsContentProperty
type WithContent interface {
GetActivityStreamsContent() vocab.ActivityStreamsContentProperty