mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 17:35:44 +01: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',
|
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 a new issue