diff options
| author | Marie <marie@kaifa.ch> | 2024-02-19 10:47:42 +0100 |
|---|---|---|
| committer | Marie <marie@kaifa.ch> | 2024-02-19 10:47:42 +0100 |
| commit | 10bfc616706e2903e3a7fd2b461ccfff71b09029 (patch) | |
| tree | 852f49cd59c678d5a28bba755e0d75255b139c3a /packages/backend/src/core/NoteCreateService.ts | |
| parent | merge: Bridged error message for when you try search for a post and it fails ... (diff) | |
| parent | Fix(frontend): オートコンプリートが出るべき状況で出ない... (diff) | |
| download | sharkey-10bfc616706e2903e3a7fd2b461ccfff71b09029.tar.gz sharkey-10bfc616706e2903e3a7fd2b461ccfff71b09029.tar.bz2 sharkey-10bfc616706e2903e3a7fd2b461ccfff71b09029.zip | |
merge: upstream
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
| -rw-r--r-- | packages/backend/src/core/NoteCreateService.ts | 8 |
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); |