X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapub%2Fsrc%2Fprotocol%2Fobjects%2Fpage.rs;h=3aadb20c1a2ba5660e83c03f68c87568a25518e4;hb=9dfd819691676994ac52b000fc4f93dfe72bc2b3;hp=65df30e42e6c9b5c8374fc1538ea2ca39ea85a13;hpb=0ecf256ce32392b53b96a24ddd8f2e4e513281da;p=lemmy.git diff --git a/crates/apub/src/protocol/objects/page.rs b/crates/apub/src/protocol/objects/page.rs index 65df30e4..3aadb20c 100644 --- a/crates/apub/src/protocol/objects/page.rs +++ b/crates/apub/src/protocol/objects/page.rs @@ -137,18 +137,18 @@ impl Page { .dereference_local(context) .await; - let stickied_changed = Page::is_stickied_changed(&old_post, &self.stickied); + let featured_changed = Page::is_featured_changed(&old_post, &self.stickied); let locked_changed = Page::is_locked_changed(&old_post, &self.comments_enabled); - Ok(stickied_changed || locked_changed) + Ok(featured_changed || locked_changed) } - pub(crate) fn is_stickied_changed( + pub(crate) fn is_featured_changed( old_post: &Result, - new_stickied: &Option, + new_featured_community: &Option, ) -> bool { - if let Some(new_stickied) = new_stickied { + if let Some(new_featured_community) = new_featured_community { if let Ok(old_post) = old_post { - return new_stickied != &old_post.stickied; + return new_featured_community != &old_post.featured_community; } }