Fix no red square for territory posts (#1187)
This commit is contained in:
parent
517aff1da3
commit
0719ec114d
@ -311,6 +311,22 @@ export default {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const [newSubPost] = await models.$queryRawUnsafe(`
|
||||||
|
SELECT EXISTS(
|
||||||
|
SELECT *
|
||||||
|
FROM "SubSubscription"
|
||||||
|
JOIN "Item" ON "SubSubscription"."subName" = "Item"."subName"
|
||||||
|
${whereClause(
|
||||||
|
'"SubSubscription"."userId" = $1',
|
||||||
|
'"Item".created_at > $2',
|
||||||
|
'"Item"."parentId" IS NULL',
|
||||||
|
await filterClause(me, models),
|
||||||
|
muteClause(me))})`, me.id, lastChecked)
|
||||||
|
if (newSubPost.exists) {
|
||||||
|
foundNotes()
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
// check if they have any mentions since checkedNotesAt
|
// check if they have any mentions since checkedNotesAt
|
||||||
if (user.noteMentions) {
|
if (user.noteMentions) {
|
||||||
const [newMentions] = await models.$queryRawUnsafe(`
|
const [newMentions] = await models.$queryRawUnsafe(`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user