mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 10:05:46 +01:00
revert: recent edit on note edit
This commit is contained in:
parent
d3b9e82192
commit
220442be39
1 changed files with 2 additions and 1 deletions
|
@ -365,7 +365,7 @@ export class NoteEditService implements OnApplicationShutdown {
|
|||
});
|
||||
|
||||
const note = new MiNote({
|
||||
id: this.idService.genId(new Date(oldnote.createdAt!)),
|
||||
id: oldnote.id,
|
||||
createdAt: new Date(oldnote.createdAt!),
|
||||
updatedAt: data.updatedAt ? data.updatedAt : new Date(),
|
||||
fileIds: data.files ? data.files.map(file => file.id) : [],
|
||||
|
@ -622,6 +622,7 @@ export class NoteEditService implements OnApplicationShutdown {
|
|||
//#region AP deliver
|
||||
if (this.userEntityService.isLocalUser(user)) {
|
||||
(async () => {
|
||||
note.id = `https://dev.joinsharkey.org/notes/${note.id}`;
|
||||
const noteActivity = await this.renderNoteOrRenoteActivity(data, note);
|
||||
|
||||
/* // フォロワーに配送
|
||||
|
|
Loading…
Reference in a new issue