From 790e96b13e7911301dcdd1d2dbf57e8dbaddb057 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Sun, 19 Feb 2017 07:20:59 +0900
Subject: [PATCH] [Client] Refactor: Better function name

---
 src/web/app/common/scripts/get-post-summary.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/web/app/common/scripts/get-post-summary.js b/src/web/app/common/scripts/get-post-summary.js
index 9202fe7b7..b7fe4104c 100644
--- a/src/web/app/common/scripts/get-post-summary.js
+++ b/src/web/app/common/scripts/get-post-summary.js
@@ -1,4 +1,4 @@
-const getPostSummary = post => {
+const summarize = post => {
 	let summary = post.text ? post.text : '';
 
 	// メディアが添付されているとき
@@ -14,7 +14,7 @@ const getPostSummary = post => {
 	// 返信のとき
 	if (post.reply_to_id) {
 		if (post.reply_to) {
-			replySummary = getPostSummary(post.reply_to);
+			replySummary = summarize(post.reply_to);
 			summary += ` RE: ${replySummary}`;
 		} else {
 			summary += ' RE: ...';
@@ -24,7 +24,7 @@ const getPostSummary = post => {
 	// Repostのとき
 	if (post.repost_id) {
 		if (post.repost) {
-			repostSummary = getPostSummary(post.repost);
+			repostSummary = summarize(post.repost);
 			summary += ` RP: ${repostSummary}`;
 		} else {
 			summary += ' RP: ...';
@@ -34,4 +34,4 @@ const getPostSummary = post => {
 	return summary.trim();
 };
 
-module.exports = getPostSummary;
+module.exports = summarize;