Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Apr 28, 2020
1 parent a1ae6d9 commit bc5a95d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/api/stream/channels/home-timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default class extends Channel {
public readonly chName = 'homeTimeline';
public static requireCredential = true;

private mutedUserIds: string[] = [];
private hideFromUsers: string[] = [];
private hideFromHosts: string[] = [];
private hideRenoteUsers: string[] = [];
Expand Down Expand Up @@ -86,12 +85,15 @@ export default class extends Channel {
}

// 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する
console.log(1);
if (shouldMuteThisNote(note, this.mutedUserIds, this.hideFromUsers, this.hideFromHosts)) return;
console.log(2);

// Renoteを隠すユーザー
if (note.renoteId && !note.text && !note.fileIds?.length && !note.poll) { // pure renote
if (oidIncludes(this.hideRenoteUsers, note.userId)) return;
}
console.log(3);

if (this.excludeForeignReply && note.replyId) {
if (!(
Expand Down

0 comments on commit bc5a95d

Please sign in to comment.