mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-01-09 23:29:43 +01:00
Merge branch 'stable' into feature/merge-hotfix
This commit is contained in:
commit
096f122024
2 changed files with 3 additions and 3 deletions
|
@ -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[] = [];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"type": "module",
|
||||
"name": "misskey-js",
|
||||
"version": "2024.11.1-rc",
|
||||
"version": "2025.1.0-dev",
|
||||
"description": "Misskey SDK for JavaScript",
|
||||
"license": "MIT",
|
||||
"main": "./built/index.js",
|
||||
|
|
Loading…
Reference in a new issue