mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-25 22:29:45 +00:00
Load post comments
This commit is contained in:
@@ -133,4 +133,12 @@ impl Post {
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
/// Check out whether a post is targeting a user page or not
|
||||
pub fn is_on_user_page(&self) -> bool {
|
||||
match &self.target_page {
|
||||
PostPageKind::PAGE_KIND_USER(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user