summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2024-02-19 19:06:30 +0000
committerMarie <marie@kaifa.ch>2024-02-19 19:06:30 +0000
commite248e412872dc76ec13f4e0258f4af91dc09cafa (patch)
treeb7a7ef817b62215352cf895aad87c758af833008 /packages/backend/src/core/NoteCreateService.ts
parentrename to get it applied after upstream changes (diff)
parentmerge: Merge upstream from 19th Feburary (!428) (diff)
downloadsharkey-e248e412872dc76ec13f4e0258f4af91dc09cafa.tar.gz
sharkey-e248e412872dc76ec13f4e0258f4af91dc09cafa.tar.bz2
sharkey-e248e412872dc76ec13f4e0258f4af91dc09cafa.zip
fix: merge conflict
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 0d032011b6..5a5930a8f6 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: syuilo and other misskey contributors
+ * SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -438,10 +438,8 @@ export class NoteCreateService implements OnApplicationShutdown {
}
}
- if (!user.host) {
- if (this.utilityService.isKeyWordIncluded(data.cw ?? data.text ?? '', meta.prohibitedWords)) {
- throw new NoteCreateService.ContainsProhibitedWordsError();
- }
+ if (this.utilityService.isKeyWordIncluded(data.cw ?? data.text ?? '', meta.prohibitedWords)) {
+ throw new NoteCreateService.ContainsProhibitedWordsError();
}
const inSilencedInstance = this.utilityService.isSilencedHost(meta.silencedHosts, user.host);