mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 17:53:07 +02:00
Provide id in announce activity
This commit is contained in:
parent
b780ea336c
commit
d70e27a865
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
export default (object: any) => ({
|
||||
export default (id: string, object: any) => ({
|
||||
type: 'Announce',
|
||||
id,
|
||||
object
|
||||
});
|
||||
|
|
|
@ -235,7 +235,7 @@ 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(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));
|
||||
|
||||
return packAp(content);
|
||||
|
|
Loading…
Reference in a new issue