diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-05-29 22:20:21 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-05-29 22:20:21 -0400 |
| commit | 979c7628b1d2b21bd9dd9d13ec0110bde883f074 (patch) | |
| tree | ece2afb731c98725b8bfaa8f6eb123ef7a7d688e /packages/backend/src/core/UtilityService.ts | |
| parent | implement SkBadgeStrip (diff) | |
| download | sharkey-979c7628b1d2b21bd9dd9d13ec0110bde883f074.tar.gz sharkey-979c7628b1d2b21bd9dd9d13ec0110bde883f074.tar.bz2 sharkey-979c7628b1d2b21bd9dd9d13ec0110bde883f074.zip | |
disable status badge strip in admin-user and instance-info
Diffstat (limited to 'packages/backend/src/core/UtilityService.ts')
| -rw-r--r-- | packages/backend/src/core/UtilityService.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/backend/src/core/UtilityService.ts b/packages/backend/src/core/UtilityService.ts index 170afc72dc..ee17906d55 100644 --- a/packages/backend/src/core/UtilityService.ts +++ b/packages/backend/src/core/UtilityService.ts @@ -68,6 +68,15 @@ export class UtilityService { } @bindThis + public isBubbledHost(host: string | null): boolean { + if (host == null) return false; + + // TODO remove null conditional after merging lab/persisted-instance-blocks + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + return this.meta.bubbleInstances?.includes(host); + } + + @bindThis public concatNoteContentsForKeyWordCheck(content: { cw?: string | null; text?: string | null; |