Skip to content

Commit

Permalink
削除済みピン留め投稿はAPで列挙しないように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed May 28, 2019
1 parent 3817fca commit c1126e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/activitypub/featured.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async (ctx: Router.IRouterContext) => {

const pinnedNotes = await Promise.all(pinnedNoteIds.filter(ObjectID.isValid).map(id => Note.findOne({ _id: id })));

const renderedNotes = await Promise.all(pinnedNotes.map(note => renderNote(note)));
const renderedNotes = await Promise.all(pinnedNotes.filter(note => note != null && note.deletedAt == null).map(note => renderNote(note)));

const rendered = renderOrderedCollection(
`${config.url}/users/${userId}/collections/featured`,
Expand Down

0 comments on commit c1126e4

Please sign in to comment.