summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/UtilityService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-01 17:59:16 +0000
committerHazelnoot <acomputerdog@gmail.com>2025-06-01 17:59:16 +0000
commit8894578b2a0ff30e8b61673f7c079f7f70b684c0 (patch)
tree616f109ef5f0ee44cd0cd0e6488a6819299df586 /packages/backend/src/core/UtilityService.ts
parentmerge: Increase default "max file size" role policy (resolves #1083) (!1078) (diff)
parentfix lint error in admin-user.vue (diff)
downloadsharkey-8894578b2a0ff30e8b61673f7c079f7f70b684c0.tar.gz
sharkey-8894578b2a0ff30e8b61673f7c079f7f70b684c0.tar.bz2
sharkey-8894578b2a0ff30e8b61673f7c079f7f70b684c0.zip
merge: Instance admin UX improvements (!1059)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1059 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <github@yuugi.dev>
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 3098367392..d2e1835038 100644
--- a/packages/backend/src/core/UtilityService.ts
+++ b/packages/backend/src/core/UtilityService.ts
@@ -95,6 +95,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;