test: fedi note edit 2

This commit is contained in:
Mar0xy 2023-10-06 19:00:41 +02:00
parent 9de86e9d49
commit bc5bc64d55
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 145 additions and 1 deletions

View file

@ -625,6 +625,7 @@ export class NoteEditService implements OnApplicationShutdown {
if (this.userEntityService.isLocalUser(user)) {
(async () => {
const noteActivity = await this.renderNoteOrRenoteActivity(data, note);
(note as any).updated
const dm = this.apDeliverManagerService.createDeliverManager(user, noteActivity);
// メンションされたリモートユーザーに配送
@ -746,7 +747,7 @@ export class NoteEditService implements OnApplicationShutdown {
const content = data.renote && data.text == null && data.poll == null && (data.files == null || data.files.length === 0)
? this.apRendererService.renderAnnounce(data.renote.uri ? data.renote.uri : `${this.config.url}/notes/${data.renote.id}`, note)
: this.apRendererService.renderUpdate(await this.apRendererService.renderNote(note, false), user);
: this.apRendererService.renderUpdate(await this.apRendererService.renderUpNote(note, false), user);
return this.apRendererService.addContext(content);
}