-
- let featured_changed = Page::is_featured_changed(&old_post, &self.stickied);
- let locked_changed = Page::is_locked_changed(&old_post, &self.comments_enabled);
- Ok(featured_changed || locked_changed)
- }
-
- pub(crate) fn is_featured_changed<E>(
- old_post: &Result<ApubPost, E>,
- new_featured_community: &Option<bool>,
- ) -> bool {
- if let Some(new_featured_community) = new_featured_community {
- if let Ok(old_post) = old_post {
- return new_featured_community != &old_post.featured_community;
- }
- }
-
- false