summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-04-25 11:37:04 +0100
committerdakkar <dakkar@thenautilus.net>2024-04-25 11:44:24 +0100
commit183cf962a02ec1bd3c2690e20ae213be88612a12 (patch)
tree33067cca2aa5fc14b15de4d6de407c7f8d0aff0d /packages/backend/src/core/NoteCreateService.ts
parentre-instate "followed users from muted instances are not muted" (diff)
downloadsharkey-183cf962a02ec1bd3c2690e20ae213be88612a12.tar.gz
sharkey-183cf962a02ec1bd3c2690e20ae213be88612a12.tar.bz2
sharkey-183cf962a02ec1bd3c2690e20ae213be88612a12.zip
sync NoteCreateService.create with .import
again, git merged on the wrong function
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 9b6d4d2901..1f575c083a 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -282,7 +282,7 @@ export class NoteCreateService implements OnApplicationShutdown {
data.visibility = 'home';
}
- if (data.renote) {
+ if (this.isRenote(data)) {
switch (data.renote.visibility) {
case 'public':
// public noteは無条件にrenote可能
@@ -309,7 +309,7 @@ export class NoteCreateService implements OnApplicationShutdown {
}
// Check blocking
- if (data.renote && !this.isQuote(data)) {
+ if (this.isRenote(data) && !this.isQuote(data)) {
if (data.renote.userHost === null) {
if (data.renote.userId !== user.id) {
const blocked = await this.userBlockingService.checkBlocked(data.renote.userId, user.id);