Merge pull request #2455 from mei23/mei-0824-apattchobj

ActivityPubで非公開投稿が添付されてしまう件の修正
This commit is contained in:
syuilo 2018-08-25 05:25:14 +09:00 committed by GitHub
commit b8d53a7b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}