Skip to content

Commit

Permalink
Fix filters in streaming channels with hashtags option
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriha-chan committed Dec 4, 2023
1 parent 4c7a235 commit 64a8add
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class GlobalTimelineChannel extends Channel {

if (note.renote && note.text == null && (note.fileIds == null || note.fileIds.length === 0) && !this.withRenotes) return;

if (note.tags && !this.withHashtags) return;
if (note.tags.length > 0 && !this.withHashtags) return;

// Ignore notes from instances the user has muted
if (isInstanceMuted(note, new Set<string>(this.userProfile?.mutedInstances ?? []))) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class HomeTimelineChannel extends Channel {

if (note.renote && note.text == null && (note.fileIds == null || note.fileIds.length === 0) && !this.withRenotes) return;

if (note.tags && !this.withHashtags) return;
if (note.tags.length > 0 && !this.withHashtags) return;

// ๆตใ‚ŒใฆใใŸNoteใŒใƒŸใƒฅใƒผใƒˆใ—ใฆใ„ใ‚‹ใƒฆใƒผใ‚ถใƒผใŒ้–ขใ‚ใ‚‹ใ‚‚ใฎใ ใฃใŸใ‚‰็„ก่ฆ–ใ™ใ‚‹
if (isUserRelated(note, this.userIdsWhoMeMuting)) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class HybridTimelineChannel extends Channel {

if (note.renote && note.text == null && (note.fileIds == null || note.fileIds.length === 0) && !this.withRenotes) return;

if (note.tags && !this.withHashtags) return;
if (note.tags.length > 0 && !this.withHashtags) return;

// ๆตใ‚ŒใฆใใŸNoteใŒใƒŸใƒฅใƒผใƒˆใ—ใฆใ„ใ‚‹ใƒฆใƒผใ‚ถใƒผใŒ้–ขใ‚ใ‚‹ใ‚‚ใฎใ ใฃใŸใ‚‰็„ก่ฆ–ใ™ใ‚‹
if (isUserRelated(note, this.userIdsWhoMeMuting)) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class LocalTimelineChannel extends Channel {

if (note.renote && note.text == null && (note.fileIds == null || note.fileIds.length === 0) && !this.withRenotes) return;

if (note.tags && !this.withHashtags) return;
if (note.tags.length > 0 && !this.withHashtags) return;

// ๆตใ‚ŒใฆใใŸNoteใŒใƒŸใƒฅใƒผใƒˆใ—ใฆใ„ใ‚‹ใƒฆใƒผใ‚ถใƒผใŒ้–ขใ‚ใ‚‹ใ‚‚ใฎใ ใฃใŸใ‚‰็„ก่ฆ–ใ™ใ‚‹
if (isUserRelated(note, this.userIdsWhoMeMuting)) return;
Expand Down

0 comments on commit 64a8add

Please sign in to comment.