diff --git a/packages/backend/src/remote/activitypub/models/person.ts b/packages/backend/src/remote/activitypub/models/person.ts index 5a4c1d8ed..689aeccd2 100644 --- a/packages/backend/src/remote/activitypub/models/person.ts +++ b/packages/backend/src/remote/activitypub/models/person.ts @@ -27,7 +27,7 @@ import { db } from '@/db/postgre.js'; import { fromHtml } from '@/mfm/from-html.js'; import { Resolver } from '@/remote/activitypub/resolver.js'; import { apLogger } from '../logger.js'; -import { isCollectionOrOrderedCollection, isCollection, IActor, getApId, getOneApHrefNullable, IObject, isPropertyValue, getApType, isActor } from '../type.js'; +import { isCollectionOrOrderedCollection, isCollection, IActor, getApId, getOneApHrefNullable, IObject, isPropertyValue, getApType, isActor, isPost } from '../type.js'; import { extractApHashtags, extractEmojis } from './tag.js'; import { resolveNote } from './note.js'; import { resolveImage } from './image.js'; @@ -462,7 +462,7 @@ async function updateFeatured(userId: User['id'], resolver: Resolver) { // Resolve and register Notes const limit = promiseLimit(2); const featuredNotes = await Promise.all(items - .filter(item => getApType(item) === 'Note') // TODO: Noteでなくてもいいかも + .filter(item => isPost(item)) .slice(0, 5) .map(item => limit(() => resolveNote(item, resolver))));