mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 13:39:06 +01:00
[mastodon-client] Add note.user joins to all timeline queries
This commit is contained in:
parent
b1d3e1d05f
commit
60a6e08c0b
@ -81,7 +81,9 @@ export class TimelineHelpers {
|
|||||||
if (local) query.andWhere("note.userHost IS NULL");
|
if (local) query.andWhere("note.userHost IS NULL");
|
||||||
if (!local) query.andWhere("note.channelId IS NULL");
|
if (!local) query.andWhere("note.channelId IS NULL");
|
||||||
|
|
||||||
query.leftJoinAndSelect("note.renote", "renote");
|
query
|
||||||
|
.leftJoinAndSelect("note.user", "user")
|
||||||
|
.leftJoinAndSelect("note.renote", "renote");
|
||||||
|
|
||||||
generateRepliesQuery(query, true, user);
|
generateRepliesQuery(query, true, user);
|
||||||
if (user) {
|
if (user) {
|
||||||
@ -113,6 +115,7 @@ export class TimelineHelpers {
|
|||||||
)
|
)
|
||||||
.andWhere(`note.userId IN (${listQuery.getQuery()})`)
|
.andWhere(`note.userId IN (${listQuery.getQuery()})`)
|
||||||
.andWhere("note.visibility != 'specified'")
|
.andWhere("note.visibility != 'specified'")
|
||||||
|
.leftJoinAndSelect("note.user", "user")
|
||||||
.leftJoinAndSelect("note.renote", "renote")
|
.leftJoinAndSelect("note.renote", "renote")
|
||||||
.setParameters({ listId: list.id });
|
.setParameters({ listId: list.id });
|
||||||
|
|
||||||
@ -148,7 +151,9 @@ export class TimelineHelpers {
|
|||||||
if (local) query.andWhere("note.userHost IS NULL");
|
if (local) query.andWhere("note.userHost IS NULL");
|
||||||
if (!local) query.andWhere("note.channelId IS NULL");
|
if (!local) query.andWhere("note.channelId IS NULL");
|
||||||
|
|
||||||
query.leftJoinAndSelect("note.renote", "renote");
|
query
|
||||||
|
.leftJoinAndSelect("note.user", "user")
|
||||||
|
.leftJoinAndSelect("note.renote", "renote");
|
||||||
|
|
||||||
generateRepliesQuery(query, true, user);
|
generateRepliesQuery(query, true, user);
|
||||||
if (user) {
|
if (user) {
|
||||||
|
Loading…
Reference in New Issue
Block a user