Respect visibility in ActivityPub Note/Outbox

This commit is contained in:
mei23
2018-08-21 13:17:37 +09:00
parent 3fb98e808f
commit 4495525705
2 changed files with 4 additions and 3 deletions

View File

@ -83,7 +83,7 @@ export default async (ctx: Koa.Context) => {
if (sinceId) notes.reverse();
const renderedNotes = await Promise.all(notes.map(note => renderNote(note)));
const renderedNotes = await Promise.all(notes.map(note => renderNote(note, false)));
const rendered = renderOrderedCollectionPage(
`${partOf}?page=true${sinceId ? `&since_id=${sinceId}` : ''}${untilId ? `&until_id=${untilId}` : ''}`,
user.notesCount, renderedNotes, partOf,