prevent trolling
This commit is contained in:
parent
313126b6b1
commit
30f99d3797
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue