Improve readability
This commit is contained in:
		| @@ -313,7 +313,7 @@ class TlContext extends Context { | |||||||
| 			this.emit('updated'); | 			this.emit('updated'); | ||||||
|  |  | ||||||
| 			const text = tl | 			const text = tl | ||||||
| 				.map(post => post.user.name + ': ' + getPostSummary(post)) | 				.map(post => `${post.user.name}\n「${getPostSummary(post)}」`) | ||||||
| 				.join('\n-----\n'); | 				.join('\n-----\n'); | ||||||
|  |  | ||||||
| 			return text; | 			return text; | ||||||
|   | |||||||
| @@ -10,17 +10,17 @@ export default function(notification: any): string { | |||||||
| 		case 'follow': | 		case 'follow': | ||||||
| 			return `${notification.user.name}にフォローされました`; | 			return `${notification.user.name}にフォローされました`; | ||||||
| 		case 'mention': | 		case 'mention': | ||||||
| 			return `言及されました: ${notification.user.name}「${getPostSummary(notification.post)}」`; | 			return `言及されました:\n${notification.user.name}「${getPostSummary(notification.post)}」`; | ||||||
| 		case 'reply': | 		case 'reply': | ||||||
| 			return `返信されました: ${notification.user.name}「${getPostSummary(notification.post)}」`; | 			return `返信されました:\n${notification.user.name}「${getPostSummary(notification.post)}」`; | ||||||
| 		case 'repost': | 		case 'repost': | ||||||
| 			return `Repostされました: ${notification.user.name}「${getPostSummary(notification.post)}」`; | 			return `Repostされました:\n${notification.user.name}「${getPostSummary(notification.post)}」`; | ||||||
| 		case 'quote': | 		case 'quote': | ||||||
| 			return `引用されました: ${notification.user.name}「${getPostSummary(notification.post)}」`; | 			return `引用されました:\n${notification.user.name}「${getPostSummary(notification.post)}」`; | ||||||
| 		case 'reaction': | 		case 'reaction': | ||||||
| 			return `リアクションされました: ${notification.user.name} <${getReactionEmoji(notification.reaction)}>「${getPostSummary(notification.post)}」`; | 			return `リアクションされました:\n${notification.user.name} <${getReactionEmoji(notification.reaction)}>「${getPostSummary(notification.post)}」`; | ||||||
| 		case 'poll_vote': | 		case 'poll_vote': | ||||||
| 			return `投票されました: ${notification.user.name}「${getPostSummary(notification.post)}」`; | 			return `投票されました:\n${notification.user.name}「${getPostSummary(notification.post)}」`; | ||||||
| 		default: | 		default: | ||||||
| 			return `<不明な通知タイプ: ${notification.type}>`; | 			return `<不明な通知タイプ: ${notification.type}>`; | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo