From e93cd2b5f2d9bc49f8aacfef5e93687c7a457666 Mon Sep 17 00:00:00 2001 From: noellabo Date: Tue, 12 May 2020 09:26:35 +0900 Subject: [PATCH] Improve status title more --- app/lib/rss/serializer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/rss/serializer.rb b/app/lib/rss/serializer.rb index fd56c568c..6f147f424 100644 --- a/app/lib/rss/serializer.rb +++ b/app/lib/rss/serializer.rb @@ -22,9 +22,9 @@ class RSS::Serializer return "#{status.account.acct} deleted status" if status.destroyed? preview = status.proper.spoiler_text.presence || status.proper.text - if preview.length > 30 || preview[0, 30].include?("\n") - preview = preview[0, 30] - preview = preview[0, preview.index("\n").presence || 30] + '…' + if preview.length > 60 || preview[0, 60].include?("\n") + preview = preview[0, 60] + preview = preview[0, preview.index("\n").presence || 60] + '…' end preview = "#{status.proper.spoiler_text.present? ? 'CW ' : ''}“#{preview}”#{status.proper.sensitive? ? ' (sensitive)' : ''}"