Skip to content

Commit

Permalink
Remove "Summary" from stream's ActivityPub data
Browse files Browse the repository at this point in the history
because it's used by Mastodon as a content warning.
  • Loading branch information
benpate committed Nov 1, 2024
1 parent 44cf609 commit 885300d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/stream_activitypub.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ func (service *Stream) JSONLD(stream *model.Stream) mapof.Any {
result[vocab.PropertyName] = stream.Label
}

/* REMOVED because this is used by Mastodon as a Content Warning
if stream.Summary != "" {
result[vocab.PropertySummary] = stream.Summary
}
} */

if stream.Content.HTML != "" {
result[vocab.PropertyContent] = stream.Content.HTML
Expand Down

0 comments on commit 885300d

Please sign in to comment.