diff --git a/docs/changelog.md b/docs/changelog.md index 29ee0ac2dc..ca58780ba9 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -3,6 +3,7 @@ - add ability to specify the search engine used in the search bar MFM - remove auto NSFW media detection - the "Hide NSFW media" config is now per device and per account +- increase the max number of pinned posts from 5 to 15 # v20240216 diff --git a/packages/backend/src/remote/activitypub/models/person.ts b/packages/backend/src/remote/activitypub/models/person.ts index 88ab7dbaa9..9030d3d904 100644 --- a/packages/backend/src/remote/activitypub/models/person.ts +++ b/packages/backend/src/remote/activitypub/models/person.ts @@ -692,7 +692,7 @@ export async function updateFeatured(userId: User["id"], resolver?: Resolver) { const featuredNotes = await Promise.all( items .filter((item) => getApType(item) === "Note") // TODO: Maybe it doesn't have to be a Note. - .slice(0, 5) + .slice(0, 15) .map((item) => limit(() => resolveNote(item, resolver))), ); diff --git a/packages/backend/src/services/i/pin.ts b/packages/backend/src/services/i/pin.ts index 6102df2fa0..3ee4cb4a80 100644 --- a/packages/backend/src/services/i/pin.ts +++ b/packages/backend/src/services/i/pin.ts @@ -35,7 +35,7 @@ export async function addPinned( const pinings = await UserNotePinings.findBy({ userId: user.id }); - if (pinings.length >= 5) { + if (pinings.length >= 15) { throw new IdentifiableError( "15a018eb-58e5-4da1-93be-330fcc5e4e1a", "You cannot pin notes any more.",