Community Unpin Fix
This commit is contained in:
parent
a0d414a091
commit
c7f1988cc2
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ impl Bot {
|
||||||
let post_list: GetPostsResponse = serde_json::from_str(post_list_json.as_str()).unwrap();
|
let post_list: GetPostsResponse = serde_json::from_str(post_list_json.as_str()).unwrap();
|
||||||
|
|
||||||
for post_view in post_list.posts {
|
for post_view in post_list.posts {
|
||||||
if &post_view.community.id != meta_community && post_view.post.featured_local {
|
if &post_view.community.id != meta_community && ( ( pin_scope == PostFeatureType::Local && post_view.post.featured_local ) || ( pin_scope == PostFeatureType::Community && post_view.post.featured_community ) ) {
|
||||||
let remove_local_pin = FeaturePost {
|
let remove_local_pin = FeaturePost {
|
||||||
post_id: post_view.post.id,
|
post_id: post_view.post.id,
|
||||||
featured: false,
|
featured: false,
|
||||||
|
|
Loading…
Reference in a new issue