diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-07-13 04:39:15 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-07-16 05:22:51 +0300 |
commit | 3c02a1f067b718e2d1806b65eef5bc9d9f446757 (patch) | |
tree | 9b01787a9656ad4bad4481d330e67a3aa2a20723 /app | |
parent | a9ae84f3a6b269247c68c172548b186bb643bf60 (diff) |
Remove unused translation fallback
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/notifier_helper.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/helpers/notifier_helper.rb b/app/helpers/notifier_helper.rb index e7a05af5f..9f268bd79 100644 --- a/app/helpers/notifier_helper.rb +++ b/app/helpers/notifier_helper.rb @@ -7,11 +7,7 @@ module NotifierHelper # @param opts [Hash] Optional hash. Accepts :length parameters. # @return [String] The formatted post. def post_message(post, opts={}) - if post.respond_to? :message - post.message.try(:plain_text_without_markdown).presence || post_page_title(post) - else - I18n.translate "notifier.a_post_you_shared" - end + post.message&.plain_text_without_markdown.presence || post_page_title(post) end # @param comment [Comment] The comment to process. |