Provide id in announce activity

This commit is contained in:
syuilo 2018-08-17 02:37:20 +09:00
parent b780ea336c
commit d70e27a865
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
export default (object: any) => ({ export default (id: string, object: any) => ({
type: 'Announce', type: 'Announce',
id,
object object
}); });

View File

@ -235,7 +235,7 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
async function renderActivity(data: Option, note: INote) { async function renderActivity(data: Option, note: INote) {
const content = data.renote && data.text == null const content = data.renote && data.text == null
? renderAnnounce(data.renote.uri ? data.renote.uri : await renderNote(data.renote)) ? renderAnnounce(note._id.toHexString(), data.renote.uri ? data.renote.uri : await renderNote(data.renote))
: renderCreate(await renderNote(note)); : renderCreate(await renderNote(note));
return packAp(content); return packAp(content);