From 08a45e54258c79bc1757ea13fefb165738e41012 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 6 Feb 2021 05:27:14 +0000 Subject: [PATCH] disabled pbs for quote mode --- functions/index.js | 6 ++++++ src/js/db.js | 2 ++ 2 files changed, 8 insertions(+) diff --git a/functions/index.js b/functions/index.js index a05be6a60..8b1ab4b69 100644 --- a/functions/index.js +++ b/functions/index.js @@ -409,6 +409,9 @@ exports.checkNameAvailability = functions.https.onRequest( function checkIfPB(uid, obj, userdata) { let pbs = null; + if (obj.mode == "quote") { + return false; + } if (obj.funbox !== "none") { return false; } @@ -543,6 +546,9 @@ async function checkIfTagPB(uid, obj, userdata) { if (obj.tags.length === 0) { return []; } + if (obj.mode == "quote") { + return []; + } let dbtags = []; let restags = obj.tags; try { diff --git a/src/js/db.js b/src/js/db.js index bf723fb07..2fece1743 100644 --- a/src/js/db.js +++ b/src/js/db.js @@ -263,6 +263,7 @@ export async function db_saveLocalPB( raw, consistency ) { + if(mode == "quote") return; function cont() { try { let found = false; @@ -367,6 +368,7 @@ export async function db_saveLocalTagPB( raw, consistency ) { + if(mode == "quote") return; function cont() { let filteredtag = dbSnapshot.tags.filter((t) => t.id === tagId)[0]; try {