Fix new post read/unread handling
This commit is contained in:
@@ -1131,9 +1131,7 @@ fn render_news_post_header(post: &ShowThreadQueryThreadOnNewsPost) -> Node<Msg>
|
||||
let avatar: Option<String> = None;
|
||||
//let avatar: Option<String> = Some(String::from("https://bulma.io/images/placeholders/64x64.png"));
|
||||
let id = post.thread_id.clone();
|
||||
// TODO: plumb this through
|
||||
//let is_unread = has_unread(&msg.tags);
|
||||
let is_unread = true;
|
||||
let is_unread = !post.is_read;
|
||||
let img = render_avatar(avatar, &from);
|
||||
article![
|
||||
C!["media"],
|
||||
|
||||
Reference in New Issue
Block a user