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", "name": "sharkey",
"version": "2024.11.1", "version": "2024.11.2",
"codename": "shonk", "codename": "shonk",
"repository": { "repository": {
"type": "git", "type": "git",
......
...@@ -43,7 +43,7 @@ export class ScheduleNotePostProcessorService { ...@@ -43,7 +43,7 @@ export class ScheduleNotePostProcessorService {
@bindThis @bindThis
private async isValidNoteSchedule(note: MiScheduleNoteType, id: string): Promise<boolean> { private async isValidNoteSchedule(note: MiScheduleNoteType, id: string): Promise<boolean> {
const reply = note.reply ? await this.notesRepository.findOneBy({ id: note.reply }) : undefined; 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; const channel = note.channel ? await this.channelsRepository.findOneBy({ id: note.channel, isArchived: false }) : undefined;
if (note.reply && !reply) { if (note.reply && !reply) {
this.logger.warn('Schedule Note Failed Reason: parent note to reply does not exist'); this.logger.warn('Schedule Note Failed Reason: parent note to reply does not exist');
...@@ -78,7 +78,7 @@ export class ScheduleNotePostProcessorService { ...@@ -78,7 +78,7 @@ export class ScheduleNotePostProcessorService {
const me = await this.usersRepository.findOneBy({ id: data.userId }); const me = await this.usersRepository.findOneBy({ id: data.userId });
const note = data.note; const note = data.note;
const reply = note.reply ? await this.notesRepository.findOneBy({ id: note.reply }) : undefined; 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; const channel = note.channel ? await this.channelsRepository.findOneBy({ id: note.channel, isArchived: false }) : undefined;
let files: MiDriveFile[] = []; let files: MiDriveFile[] = [];
......
{ {
"type": "module", "type": "module",
"name": "misskey-js", "name": "misskey-js",
"version": "2024.11.1-rc", "version": "2024.11.2",
"description": "Misskey SDK for JavaScript", "description": "Misskey SDK for JavaScript",
"license": "MIT", "license": "MIT",
"main": "./built/index.js", "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