mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-30 23:26:44 -06:00
fix(edit): tweak note update to
This commit is contained in:
parent
5e322e52f3
commit
728c8c6eb8
1 changed files with 8 additions and 4 deletions
|
@ -594,15 +594,19 @@ export class ApRendererService {
|
|||
}
|
||||
|
||||
@bindThis
|
||||
public renderUpdateNote(object: string | IPost, note: { id: MiNote['id'], userId: MiNote['userId'] }): IUpdate {
|
||||
return {
|
||||
public renderUpdateNote(object: IPost, note: { id: MiNote['id'], userId: MiNote['userId'] }): IUpdate {
|
||||
const activity: IUpdate = {
|
||||
id: `${this.config.url}/notes/${note.id}#updates/${new Date().getTime()}`,
|
||||
actor: this.userEntityService.genLocalUserUri(note.userId),
|
||||
type: 'Update',
|
||||
to: ['https://www.w3.org/ns/activitystreams#Public'],
|
||||
object,
|
||||
published: new Date().toISOString(),
|
||||
object,
|
||||
};
|
||||
|
||||
if (object.to) activity.to = object.to;
|
||||
if (object.cc) activity.cc = object.cc;
|
||||
|
||||
return activity;
|
||||
}
|
||||
|
||||
@bindThis
|
||||
|
|
Loading…
Reference in a new issue