Fix Announce Activity
This commit is contained in:
parent
7a8d252f63
commit
a89c206572
3 changed files with 20 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue