summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authorokayurisotto <okayurisotto@proton.me>2023-07-08 07:08:16 +0900
committerGitHub <noreply@github.com>2023-07-08 07:08:16 +0900
commitd84796588c1472334ddaf696a817f015c245ce44 (patch)
tree45caa2d8659d35b90bc3f36170e764aa5eb90b70 /packages/backend/src/core/NoteCreateService.ts
parentperf(backend): Improve performance of FetchInstanceMetadata (#11128) (diff)
downloadsharkey-d84796588c1472334ddaf696a817f015c245ce44.tar.gz
sharkey-d84796588c1472334ddaf696a817f015c245ce44.tar.bz2
sharkey-d84796588c1472334ddaf696a817f015c245ce44.zip
cleanup: trim trailing whitespace (#11136)
* cleanup: trim trailing whitespace * update(`.editorconfig`) --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 1c8491bf57..fb36ca3b6a 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -672,7 +672,7 @@ export class NoteCreateService implements OnApplicationShutdown {
// Register to search database
this.index(note);
}
-
+
@bindThis
private isSensitive(note: Option, sensitiveWord: string[]): boolean {
if (sensitiveWord.length > 0) {
@@ -758,7 +758,7 @@ export class NoteCreateService implements OnApplicationShutdown {
@bindThis
private index(note: Note) {
if (note.text == null && note.cw == null) return;
-
+
this.searchService.indexNote(note);
}