Skip to content
Snippets Groups Projects
Commit 0a4e1614 authored by dakkar's avatar dakkar
Browse files

merge: 2024.11.2, for real (!846)

View MR for information: TransFem-org/Sharkey!846
parents 4c0bbddd 5ef24836
No related branches found
No related tags found
No related merge requests found
{
"name": "sharkey",
"version": "2024.11.1",
"version": "2024.11.2",
"codename": "shonk",
"repository": {
"type": "git",
......
......@@ -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[] = [];
......
{
"type": "module",
"name": "misskey-js",
"version": "2024.11.1-rc",
"version": "2024.11.2",
"description": "Misskey SDK for JavaScript",
"license": "MIT",
"main": "./built/index.js",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment