Added stash creation. Added dialog framework.
This commit is contained in:
@@ -53,7 +53,7 @@ export async function fetchUser(userId, options = {}, reqUser) {
|
||||
const stashes = await knex('stashes')
|
||||
.where('user_id', user.id)
|
||||
.modify((builder) => {
|
||||
if (reqUser?.id !== user.id) {
|
||||
if (reqUser?.id !== user.id && !options.includeStashes) {
|
||||
builder.where('public', true);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user