Skip to content

Commit

Permalink
solo bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub committed Feb 3, 2024
1 parent a53df81 commit 19b2f85
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/controller/solo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,13 @@ impl OutSolo {
if solo.visibility == 0 {
can_visit = true;
} else if let Some(uid) = current_uid {
if uid == solo.uid {
if uid == solo.uid || User::is_admin(db, uid)? {
can_visit = true;
} else if solo.visibility == 10 {
let k = [&u32_to_ivec(solo.uid), &u32_to_ivec(uid)].concat();
if db.open_tree("user_followers")?.contains_key(k)? {
can_visit = true;
}
} else if User::is_admin(db, uid)? {
can_visit = true;
}
}

Expand Down

0 comments on commit 19b2f85

Please sign in to comment.