mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-09 09:52:10 +00:00
Mark objects as not deleted when received via apub (fixes #2507)
This commit is contained in:
parent
cb753b045f
commit
82dcd44a03
|
@ -202,7 +202,7 @@ impl ApubObject for ApubComment {
|
|||
removed: None,
|
||||
published: note.published.map(|u| u.naive_local()),
|
||||
updated: note.updated.map(|u| u.naive_local()),
|
||||
deleted: None,
|
||||
deleted: Some(false),
|
||||
ap_id: Some(note.id.into()),
|
||||
distinguished: note.distinguished,
|
||||
local: Some(false),
|
||||
|
|
|
@ -160,7 +160,7 @@ impl ApubObject for ApubPerson {
|
|||
display_name: person.name,
|
||||
banned: None,
|
||||
ban_expires: None,
|
||||
deleted: None,
|
||||
deleted: Some(false),
|
||||
avatar: person.icon.map(|i| i.url.into()),
|
||||
banner: person.image.map(|i| i.url.into()),
|
||||
published: person.published.map(|u| u.naive_local()),
|
||||
|
|
|
@ -217,7 +217,7 @@ impl ApubObject for ApubPost {
|
|||
locked: page.comments_enabled.map(|e| !e),
|
||||
published: page.published.map(|u| u.naive_local()),
|
||||
updated: page.updated.map(|u| u.naive_local()),
|
||||
deleted: None,
|
||||
deleted: Some(false),
|
||||
nsfw: page.sensitive,
|
||||
stickied: page.stickied,
|
||||
embed_title,
|
||||
|
|
|
@ -149,7 +149,7 @@ impl ApubObject for ApubPrivateMessage {
|
|||
content: read_from_string_or_source(¬e.content, &None, ¬e.source),
|
||||
published: note.published.map(|u| u.naive_local()),
|
||||
updated: note.updated.map(|u| u.naive_local()),
|
||||
deleted: None,
|
||||
deleted: Some(false),
|
||||
read: None,
|
||||
ap_id: Some(note.id.into()),
|
||||
local: Some(false),
|
||||
|
|
|
@ -102,7 +102,7 @@ impl Group {
|
|||
removed: None,
|
||||
published: self.published.map(|u| u.naive_local()),
|
||||
updated: self.updated.map(|u| u.naive_local()),
|
||||
deleted: None,
|
||||
deleted: Some(false),
|
||||
nsfw: Some(self.sensitive.unwrap_or(false)),
|
||||
actor_id: Some(self.id.into()),
|
||||
local: Some(false),
|
||||
|
|
Loading…
Reference in a new issue