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({
|
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);
|
||||||
|
|
||||||
/* // フォロワーに配送
|
/* // フォロワーに配送
|
||||||
|
|
Loading…
Reference in a new issue