mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-25 22:29:45 +00:00
Start to push notifications
This commit is contained in:
@@ -153,6 +153,11 @@ impl Post {
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Check out whether a post is targeting a group page or not
|
||||
pub fn is_on_group_page(&self) -> bool {
|
||||
matches!(self.target_page, PostPageKind::PAGE_KIND_GROUP(_))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Reference in New Issue
Block a user