diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-11-17 15:05:58 +0100 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-11-17 15:05:58 +0100 |
| commit | 55ef4c4d93d02e5c02f776e8dbfeb0a66e7d5bbd (patch) | |
| tree | bf5c32c469bcd4385c6cbd7774992b8a91802dae /packages/backend/src/core/NoteCreateService.ts | |
| parent | fix: pinned being set to null causing errors in masto api (diff) | |
| download | sharkey-55ef4c4d93d02e5c02f776e8dbfeb0a66e7d5bbd.tar.gz sharkey-55ef4c4d93d02e5c02f776e8dbfeb0a66e7d5bbd.tar.bz2 sharkey-55ef4c4d93d02e5c02f776e8dbfeb0a66e7d5bbd.zip | |
upd: completely change handling of `indexable`
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
| -rw-r--r-- | packages/backend/src/core/NoteCreateService.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index fb20a22691..3a75c37bb1 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -223,7 +223,7 @@ export class NoteCreateService implements OnApplicationShutdown { username: MiUser['username']; host: MiUser['host']; isBot: MiUser['isBot']; - isIndexable: MiUser['isIndexable']; + noindex: MiUser['noindex']; }, data: Option, silent = false): Promise<MiNote> { // チャンネル外にリプライしたら対象のスコープに合わせる // (クライアントサイドでやっても良い処理だと思うけどとりあえずサーバーサイドで) @@ -384,7 +384,7 @@ export class NoteCreateService implements OnApplicationShutdown { username: MiUser['username']; host: MiUser['host']; isBot: MiUser['isBot']; - isIndexable: MiUser['isIndexable']; + noindex: MiUser['noindex']; }, data: Option, silent = false): Promise<MiNote> { // チャンネル外にリプライしたら対象のスコープに合わせる // (クライアントサイドでやっても良い処理だと思うけどとりあえずサーバーサイドで) @@ -642,7 +642,7 @@ export class NoteCreateService implements OnApplicationShutdown { username: MiUser['username']; host: MiUser['host']; isBot: MiUser['isBot']; - isIndexable: MiUser['isIndexable']; + noindex: MiUser['noindex']; }, data: Option, silent: boolean, tags: string[], mentionedUsers: MinimumUser[]) { const meta = await this.metaService.fetch(); @@ -873,7 +873,7 @@ export class NoteCreateService implements OnApplicationShutdown { } // Register to search database - if (user.isIndexable) this.index(note); + if (!user.noindex) this.index(note); } @bindThis @@ -882,7 +882,7 @@ export class NoteCreateService implements OnApplicationShutdown { username: MiUser['username']; host: MiUser['host']; isBot: MiUser['isBot']; - isIndexable: MiUser['isIndexable']; + noindex: MiUser['noindex']; }, data: Option, silent: boolean, tags: string[], mentionedUsers: MinimumUser[]) { const meta = await this.metaService.fetch(); @@ -972,7 +972,7 @@ export class NoteCreateService implements OnApplicationShutdown { } // Register to search database - if (user.isIndexable) this.index(note); + if (!user.noindex) this.index(note); } @bindThis |