[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);
|
generateMutedUserRenotesQueryForNotes(query, user);
|
||||||
|
|
||||||
query.andWhere("note.visibility != 'hidden'");
|
query.andWhere("note.visibility != 'hidden'");
|
||||||
|
query.andWhere("note.visibility != 'specified'");
|
||||||
|
|
||||||
return PaginationHelpers.execQuery(query, limit, minId !== undefined);
|
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.userHost IS NULL");
|
||||||
if (!local) query.andWhere("note.channelId IS NULL");
|
if (!local) query.andWhere("note.channelId IS NULL");
|
||||||
|
|
||||||
query
|
query.leftJoinAndSelect("note.renote", "renote");
|
||||||
.leftJoinAndSelect("note.renote", "renote");
|
|
||||||
|
|
||||||
generateRepliesQuery(query, true, user);
|
generateRepliesQuery(query, true, user);
|
||||||
if (user) {
|
if (user) {
|
||||||
|
|
@ -87,8 +87,6 @@ export class TimelineHelpers {
|
||||||
|
|
||||||
if (onlyMedia) query.andWhere("note.fileIds != '{}'");
|
if (onlyMedia) query.andWhere("note.fileIds != '{}'");
|
||||||
|
|
||||||
query.andWhere("note.visibility != 'hidden'");
|
|
||||||
|
|
||||||
return PaginationHelpers.execQuery(query, limit, minId !== undefined);
|
return PaginationHelpers.execQuery(query, limit, minId !== undefined);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue