Fix Announce Activity

This commit is contained in:
mei23 2018-08-17 06:40:08 +09:00
parent 7a8d252f63
commit a89c206572
3 changed files with 20 additions and 8 deletions

View file

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