From 75b14124f2d1ca6dc56ed6393f866b9240aa79fc Mon Sep 17 00:00:00 2001 From: Johann150 Date: Wed, 1 Feb 2023 11:30:53 +0100 Subject: [PATCH] server: improve variable naming --- packages/backend/src/server/web/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/server/web/index.ts b/packages/backend/src/server/web/index.ts index d126d2650..85ad59f3a 100644 --- a/packages/backend/src/server/web/index.ts +++ b/packages/backend/src/server/web/index.ts @@ -324,15 +324,15 @@ router.get('/notes/:note', async (ctx, next) => { if (note) { try { // FIXME: packing with detail may throw an error if the reply or renote is not visible (#8774) - const _note = await Notes.pack(note); + const packedNote = await Notes.pack(note); const profile = await UserProfiles.findOneByOrFail({ userId: note.userId }); const meta = await fetchMeta(); await ctx.render('note', { - note: _note, + note: packedNote, profile, avatarUrl: await Users.getAvatarUrl(await Users.findOneByOrFail({ id: note.userId })), // TODO: Let locale changeable by instance setting - summary: getNoteSummary(_note), + summary: getNoteSummary(packedNote), instanceName: meta.name || 'FoundKey', icon: meta.iconUrl, themeColor: meta.themeColor,