summaryrefslogtreecommitdiff
path: root/packages/backend/src
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2025-01-01 17:26:31 +0000
committerdakkar <dakkar@thenautilus.net>2025-01-01 17:26:31 +0000
commit0a4e1614eaec1bd2fa3eb1735123c19dcc122f87 (patch)
tree81705951f9fdaeca98a97630412438d380ac4a37 /packages/backend/src
parentmerge: Bump stable version (!842) (diff)
parentbump version (diff)
downloadsharkey-0a4e1614eaec1bd2fa3eb1735123c19dcc122f87.tar.gz
sharkey-0a4e1614eaec1bd2fa3eb1735123c19dcc122f87.tar.bz2
sharkey-0a4e1614eaec1bd2fa3eb1735123c19dcc122f87.zip
merge: 2024.11.2, for real (!846)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/846
Diffstat (limited to 'packages/backend/src')
-rw-r--r--packages/backend/src/queue/processors/ScheduleNotePostProcessorService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/queue/processors/ScheduleNotePostProcessorService.ts b/packages/backend/src/queue/processors/ScheduleNotePostProcessorService.ts
index 62e3d1072f..d823d98ef1 100644
--- a/packages/backend/src/queue/processors/ScheduleNotePostProcessorService.ts
+++ b/packages/backend/src/queue/processors/ScheduleNotePostProcessorService.ts
@@ -43,7 +43,7 @@ export class ScheduleNotePostProcessorService {
@bindThis
private async isValidNoteSchedule(note: MiScheduleNoteType, id: string): Promise<boolean> {
const reply = note.reply ? await this.notesRepository.findOneBy({ id: note.reply }) : undefined;
- const renote = note.reply ? await this.notesRepository.findOneBy({ id: note.renote }) : undefined;
+ const renote = note.renote ? await this.notesRepository.findOneBy({ id: note.renote }) : undefined;
const channel = note.channel ? await this.channelsRepository.findOneBy({ id: note.channel, isArchived: false }) : undefined;
if (note.reply && !reply) {
this.logger.warn('Schedule Note Failed Reason: parent note to reply does not exist');
@@ -78,7 +78,7 @@ export class ScheduleNotePostProcessorService {
const me = await this.usersRepository.findOneBy({ id: data.userId });
const note = data.note;
const reply = note.reply ? await this.notesRepository.findOneBy({ id: note.reply }) : undefined;
- const renote = note.reply ? await this.notesRepository.findOneBy({ id: note.renote }) : undefined;
+ const renote = note.renote ? await this.notesRepository.findOneBy({ id: note.renote }) : undefined;
const channel = note.channel ? await this.channelsRepository.findOneBy({ id: note.channel, isArchived: false }) : undefined;
let files: MiDriveFile[] = [];