disabled pbs for quote mode

This commit is contained in:
Miodec 2021-02-06 05:27:14 +00:00
parent b043a7e164
commit 08a45e5425
2 changed files with 8 additions and 0 deletions

View file

@ -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 {

View file

@ -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 {