Added stash creation. Added dialog framework.

This commit is contained in:
2024-03-26 04:14:42 +01:00
parent 9de289a0fb
commit 68b9658ba6
9 changed files with 377 additions and 82 deletions

View File

@@ -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);
}
})