summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/UtilityService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-05-29 22:20:21 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-05-29 22:20:21 -0400
commit979c7628b1d2b21bd9dd9d13ec0110bde883f074 (patch)
treeece2afb731c98725b8bfaa8f6eb123ef7a7d688e /packages/backend/src/core/UtilityService.ts
parentimplement SkBadgeStrip (diff)
downloadsharkey-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.ts9
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;