revert: recent edit on note edit

This commit is contained in:
Mar0xy 2023-10-06 18:28:30 +02:00
parent d3b9e82192
commit 220442be39
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -365,7 +365,7 @@ export class NoteEditService implements OnApplicationShutdown {
}); });
const note = new MiNote({ const note = new MiNote({
id: this.idService.genId(new Date(oldnote.createdAt!)), id: oldnote.id,
createdAt: new Date(oldnote.createdAt!), createdAt: new Date(oldnote.createdAt!),
updatedAt: data.updatedAt ? data.updatedAt : new Date(), updatedAt: data.updatedAt ? data.updatedAt : new Date(),
fileIds: data.files ? data.files.map(file => file.id) : [], fileIds: data.files ? data.files.map(file => file.id) : [],
@ -622,6 +622,7 @@ export class NoteEditService implements OnApplicationShutdown {
//#region AP deliver //#region AP deliver
if (this.userEntityService.isLocalUser(user)) { if (this.userEntityService.isLocalUser(user)) {
(async () => { (async () => {
note.id = `https://dev.joinsharkey.org/notes/${note.id}`;
const noteActivity = await this.renderNoteOrRenoteActivity(data, note); const noteActivity = await this.renderNoteOrRenoteActivity(data, note);
/* // /* //