tweak timelines

This commit is contained in:
syuilo
2023-10-04 16:43:24 +09:00
parent 6ebea82dba
commit ca515d5a7e
3 changed files with 12 additions and 3 deletions

View File

@@ -3,8 +3,8 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
export function isUserRelated(note: any, userIds: Set<string>): boolean {
if (userIds.has(note.userId)) {
export function isUserRelated(note: any, userIds: Set<string>, ignoreAuthor = false): boolean {
if (userIds.has(note.userId) && !ignoreAuthor) {
return true;
}