1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Load post comments

This commit is contained in:
2020-07-05 19:32:28 +02:00
parent a3bb9685ea
commit 27e3dedf51
11 changed files with 140 additions and 4 deletions

View File

@@ -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,
}
}
}