Merge branch 'develop' into feature/misskey-2024.07

fixing conflicts in `package.json`
This commit is contained in:
dakkar 2024-08-06 10:35:14 +01:00
commit 34c1e9ea2b
12 changed files with 49 additions and 21 deletions

View file

@ -136,6 +136,7 @@ export interface NoteEventTypes {
};
replied: {
id: MiNote['id'];
userId: MiUser['id'];
};
}
type NoteStreamEventTypes = {

View file

@ -833,6 +833,7 @@ export class NoteCreateService implements OnApplicationShutdown {
if (data.reply) {
this.globalEventService.publishNoteStream(data.reply.id, 'replied', {
id: note.id,
userId: user.id,
});
// 通知
if (data.reply.userHost === null) {

View file

@ -82,7 +82,7 @@ export class ApImageService {
url: image.url,
user: actor,
uri: image.url,
sensitive: image.sensitive,
sensitive: !!(image.sensitive),
isLink: !shouldBeCached,
comment: truncate(image.name ?? undefined, DB_MAX_IMAGE_COMMENT_LENGTH),
});

View file

@ -64,8 +64,9 @@ export class InstanceEntityService {
@bindThis
public packMany(
instances: MiInstance[],
me?: { id: MiUser['id']; } | null | undefined,
) {
return Promise.all(instances.map(x => this.pack(x)));
return Promise.all(instances.map(x => this.pack(x, me)));
}
}