summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-12-23 17:54:29 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-12-23 17:54:29 +0900
commitf43599552fb5764aa3121b083e441d3946c72cd8 (patch)
treed051ce496a37d5d982fa15c5df3f5f6290cac6a1
parentNew Crowdin updates (#12748) (diff)
downloadsharkey-f43599552fb5764aa3121b083e441d3946c72cd8.tar.gz
sharkey-f43599552fb5764aa3121b083e441d3946c72cd8.tar.bz2
sharkey-f43599552fb5764aa3121b083e441d3946c72cd8.zip
fix(backend): renote判定がおかしい
-rw-r--r--packages/backend/src/core/NoteCreateService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 54493612b8..c4fc51847b 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -293,7 +293,7 @@ export class NoteCreateService implements OnApplicationShutdown {
}
// Check blocking
- if (this.isQuote(data)) {
+ if (data.renote && data.text == null && data.poll == null && (data.files == null || data.files.length === 0)) {
if (data.renote.userHost === null) {
if (data.renote.userId !== user.id) {
const blocked = await this.userBlockingService.checkBlocked(data.renote.userId, user.id);