mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
6個ピン留めできてしまうの修正 (#2804)
This commit is contained in:
parent
832e5d2cda
commit
99fec6da8e
@ -26,7 +26,7 @@ export async function addPinned(user: IUser, noteId: mongo.ObjectID) {
|
||||
|
||||
const pinnedNoteIds = user.pinnedNoteIds || [];
|
||||
|
||||
if (pinnedNoteIds.length > 5) {
|
||||
if (pinnedNoteIds.length >= 5) {
|
||||
throw new Error('cannot pin more notes');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user