From 07bb8067ae62fffe8857c91c7d9f75ccba16789e Mon Sep 17 00:00:00 2001 From: sousuke0422 Date: Sat, 18 Sep 2021 13:30:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=82=A2=E3=83=B3=E3=83=86=E3=83=8A?= =?UTF-8?q?=E3=81=AE=E6=97=A2=E8=AA=AD=20(#7803)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit from: https://gitlab.com/xianon/misskey/-/commit/a89742319caea378f9cdd70c8ebd83bdf2178ff6 --- src/server/api/endpoints/antennas/notes.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/api/endpoints/antennas/notes.ts b/src/server/api/endpoints/antennas/notes.ts index 3c8a4fbda..1759e95b4 100644 --- a/src/server/api/endpoints/antennas/notes.ts +++ b/src/server/api/endpoints/antennas/notes.ts @@ -1,6 +1,7 @@ import $ from 'cafy'; import { ID } from '@/misc/cafy-id'; import define from '../../define'; +import readNote from '@/services/note/read'; import { Antennas, Notes, AntennaNotes } from '@/models/index'; import { makePaginationQuery } from '../../common/make-pagination-query'; import { generateVisibilityQuery } from '../../common/generate-visibility-query'; @@ -84,5 +85,9 @@ export default define(meta, async (ps, user) => { .take(ps.limit!) .getMany(); + if (notes.length > 0) { + readNote(user.id, notes); + } + return await Notes.packMany(notes, user); });