refactor bubble-timeline.ts to match global-timeline.ts and local-timeline.ts

This commit is contained in:
Hazelnoot 2025-04-03 22:02:32 -04:00
parent 5ee7049fad
commit 967f31daa7

View file

@ -53,9 +53,10 @@ class BubbleTimelineChannel extends Channel {
if (this.withFiles && (note.fileIds == null || note.fileIds.length === 0)) return;
if (!this.withBots && note.user.isBot) return;
if (!(note.user.host != null && this.instance.bubbleInstances.includes(note.user.host) && note.visibility === 'public' )) return;
if (note.visibility !== 'public') return;
if (note.channelId != null) return;
if (note.user.host == null) return;
if (!this.instance.bubbleInstances.includes(note.user.host)) return;
if (isRenotePacked(note) && !isQuotePacked(note) && !this.withRenotes) return;