Explicitly set AP post as public. Closes #2112

This commit is contained in:
Gabe Kangas
2022-11-21 12:11:54 -08:00
parent e64dd2d206
commit c2a7d9f50b
+5
View File
@@ -173,6 +173,11 @@ func SendPublicMessage(textContent string) error {
activity, _, note, noteID := createBaseOutboundMessage(textContent)
note.SetActivityStreamsTag(tagProp)
if !data.GetFederationIsPrivate() {
note = apmodels.MakeNotePublic(note)
activity = apmodels.MakeActivityPublic(activity)
}
b, err := apmodels.Serialize(activity)
if err != nil {
log.Errorln("unable to serialize custom fediverse message activity", err)