Skip to content

Commit

Permalink
fix(apub): set note visibility to public (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
reesericci authored May 11, 2024
1 parent 10c8145 commit ae27e68
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/apub/src/objects/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ impl Note {
published: published.unwrap_or_else(hatsu_utils::date::now),
updated,
attributed_to: actor.id().into(),
to: vec![Url::parse(&format!("{}/followers", actor.id()))?],
cc: vec![public()],
// to: vec![Url::parse(&format!("{}/followers", actor.id()))?],
// cc: vec![public()],
to: vec![public()],
// Leaving a CC here to retain compatibility, figured I should CC followers instead of public twice
cc: vec![Url::parse(&format!("{}/followers", actor.id()))?],
content,
source: Some(serde_json::to_value(NoteSource::new(source))?),
tag: json.tags.map_or_else(Vec::new, |tags| {
Expand Down

0 comments on commit ae27e68

Please sign in to comment.