chore: accept 15 featured posts
This commit is contained in:
parent
47a170cf47
commit
b665a5bccf
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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))),
|
||||
);
|
||||
|
||||
|
|
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue