[mastodon-client] Add note.user joins to all timeline queries
This commit is contained in:
parent
b1d3e1d05f
commit
60a6e08c0b
1 changed files with 7 additions and 2 deletions
|
@ -81,7 +81,9 @@ export class TimelineHelpers {
|
|||
if (local) query.andWhere("note.userHost 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);
|
||||
if (user) {
|
||||
|
@ -113,6 +115,7 @@ export class TimelineHelpers {
|
|||
)
|
||||
.andWhere(`note.userId IN (${listQuery.getQuery()})`)
|
||||
.andWhere("note.visibility != 'specified'")
|
||||
.leftJoinAndSelect("note.user", "user")
|
||||
.leftJoinAndSelect("note.renote", "renote")
|
||||
.setParameters({ listId: list.id });
|
||||
|
||||
|
@ -148,7 +151,9 @@ export class TimelineHelpers {
|
|||
if (local) query.andWhere("note.userHost 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);
|
||||
if (user) {
|
||||
|
|
Loading…
Reference in a new issue