From 30f99d379771cfac2b1edb058d800f220fa648a2 Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Fri, 6 Sep 2024 01:42:30 +0000 Subject: [PATCH] prevent trolling --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c388175..39bbcbd 100644 --- a/index.js +++ b/index.js @@ -605,7 +605,7 @@ app.get('/blurbs/check', async (req, res) => { const relationLink = dom.window.document.querySelector( `[rel=me][href="https://abtmtr.link/blurbs/#${blurbFromId.id}"]` ); - if (relationLink != null) { + if (relationLink != null && blurbFromId.verified != 1) { await db .updateTable('blurbs') .set({ @@ -635,7 +635,7 @@ app.get('/blurbs/check', async (req, res) => { }) }); } - } else { + } else if (relationLink == null) { await db .updateTable('blurbs') .set({