prevent trolling

This commit is contained in:
MeowcaTheoRange 2024-09-06 01:42:30 +00:00
parent 313126b6b1
commit 30f99d3797

View file

@ -605,7 +605,7 @@ app.get('/blurbs/check', async (req, res) => {
const relationLink = dom.window.document.querySelector( const relationLink = dom.window.document.querySelector(
`[rel=me][href="https://abtmtr.link/blurbs/#${blurbFromId.id}"]` `[rel=me][href="https://abtmtr.link/blurbs/#${blurbFromId.id}"]`
); );
if (relationLink != null) { if (relationLink != null && blurbFromId.verified != 1) {
await db await db
.updateTable('blurbs') .updateTable('blurbs')
.set({ .set({
@ -635,7 +635,7 @@ app.get('/blurbs/check', async (req, res) => {
}) })
}); });
} }
} else { } else if (relationLink == null) {
await db await db
.updateTable('blurbs') .updateTable('blurbs')
.set({ .set({