From 5c490e75213f0f876c35ab4fb6cf71eefa3afab7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 28 Dec 2020 23:05:30 +0900 Subject: Bug fix and refactoring --- src/misc/get-note-summary.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/misc/get-note-summary.ts') diff --git a/src/misc/get-note-summary.ts b/src/misc/get-note-summary.ts index 7db8bca3ec..b80da16caf 100644 --- a/src/misc/get-note-summary.ts +++ b/src/misc/get-note-summary.ts @@ -2,7 +2,7 @@ * 投稿を表す文字列を取得します。 * @param {*} note (packされた)投稿 */ -const summarize = (note: any, locale: any): string => { +export const getNoteSummary = (note: any, locale: any): string => { if (note.deletedAt) { return `(${locale['deletedNote']})`; } @@ -50,5 +50,3 @@ const summarize = (note: any, locale: any): string => { return summary.trim(); }; - -export default summarize; -- cgit v1.2.3-freya