Indicate pinned posts on user profiles (close #606)

This commit is contained in:
spikecodes
2022-11-14 18:08:44 -08:00
parent 501b47894c
commit 3f3d9e9c3b
4 changed files with 27 additions and 37 deletions

View File

@ -319,7 +319,7 @@ impl Post {
},
flags: Flags {
nsfw: data["over_18"].as_bool().unwrap_or_default(),
stickied: data["stickied"].as_bool().unwrap_or_default(),
stickied: data["stickied"].as_bool().unwrap_or_default() || data["pinned"].as_bool().unwrap_or_default(),
},
permalink: val(post, "permalink"),
rel_time,