Provide id in announce activity
This commit is contained in:
parent
b780ea336c
commit
d70e27a865
|
@ -1,4 +1,5 @@
|
||||||
export default (object: any) => ({
|
export default (id: string, object: any) => ({
|
||||||
type: 'Announce',
|
type: 'Announce',
|
||||||
|
id,
|
||||||
object
|
object
|
||||||
});
|
});
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue