[mastodon-client] Don't show DMs in the home timeline

This commit is contained in:
Laura Hausmann 2023-09-29 16:41:46 +02:00
parent 19a990aebb
commit 464c5425fc
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -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);
}
}