mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[mastodon-client] Don't show DMs in the home timeline
This commit is contained in:
parent
19a990aebb
commit
464c5425fc
1 changed files with 2 additions and 4 deletions
|
@ -44,6 +44,7 @@ export class TimelineHelpers {
|
|||
generateMutedUserRenotesQueryForNotes(query, user);
|
||||
|
||||
query.andWhere("note.visibility != 'hidden'");
|
||||
query.andWhere("note.visibility != 'specified'");
|
||||
|
||||
return PaginationHelpers.execQuery(query, limit, minId !== undefined);
|
||||
}
|
||||
|
@ -74,8 +75,7 @@ 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.renote", "renote");
|
||||
|
||||
generateRepliesQuery(query, true, user);
|
||||
if (user) {
|
||||
|
@ -87,8 +87,6 @@ export class TimelineHelpers {
|
|||
|
||||
if (onlyMedia) query.andWhere("note.fileIds != '{}'");
|
||||
|
||||
query.andWhere("note.visibility != 'hidden'");
|
||||
|
||||
return PaginationHelpers.execQuery(query, limit, minId !== undefined);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue