fix: allow users with a private profile to view their own posts

add: channels/messages models
This commit is contained in:
trisua 2025-04-24 19:06:30 -04:00
parent 0c814e95d7
commit 9e6c5c9726
6 changed files with 94 additions and 1 deletions

View file

@ -202,7 +202,7 @@ impl DataManager {
let user = self.get_user_by_id(owner).await?;
// check relationship
if user.settings.private_profile {
if user.settings.private_profile && user.id != user_id {
if user_id == 0 {
continue;
}