1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-23 20:24:21 +02:00
This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -20,7 +20,7 @@ export async function addPinned(user: { id: User['id']; host: User['host']; }, n
// Fetch pinee
const note = await Notes.findOne({
id: noteId,
userId: user.id
userId: user.id,
});
if (note == null) {
@@ -41,7 +41,7 @@ export async function addPinned(user: { id: User['id']; host: User['host']; }, n
id: genId(),
createdAt: new Date(),
userId: user.id,
noteId: note.id
noteId: note.id,
} as UserNotePining);
// Deliver to remote followers
@@ -59,7 +59,7 @@ export async function removePinned(user: { id: User['id']; host: User['host']; }
// Fetch unpinee
const note = await Notes.findOne({
id: noteId,
userId: user.id
userId: user.id,
});
if (note == null) {
@@ -68,7 +68,7 @@ export async function removePinned(user: { id: User['id']; host: User['host']; }
UserNotePinings.delete({
userId: user.id,
noteId: note.id
noteId: note.id,
});
// Deliver to remote followers