Skip to content

Commit

Permalink
✔ Fix User Feed ~
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Nov 8, 2023
1 parent 20aede5 commit cbd4f70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/fansubid/server/main.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/api/controllers/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,11 @@ export class UserController {
}
},
{
...((user?.verified || user?.username === req.params['username'] || (user && this.gs.isFreeTime())) ? {
// Verified User & User Itself Can See Private Berkas
} : {
private: false
}),
name: ILike(`%${req.query['q'] ? req.query['q'] : ''}%`),
user_: {
username: ILike(req.params['username']),
Expand Down

0 comments on commit cbd4f70

Please sign in to comment.