1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-03 09:18:46 +09:00

ActivityPub Renote/Replyで 対象Noteを添付しないようにする

This commit is contained in:
mei23 2018-08-24 14:52:53 +09:00
parent 5ba36efcd2
commit 9502586c8b

View File

@ -239,8 +239,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(data.renote.uri ? data.renote.uri : await renderNote(data.renote), note)
: renderCreate(await renderNote(note));
? renderAnnounce(data.renote.uri ? data.renote.uri : `${config.url}/notes/${data.renote._id}`, note)
: renderCreate(await renderNote(note, false));
return packAp(content);
}