logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 3d566279cb84aba6d07eaadebda6c059f2a58657
parent: 0077fc26df2982720e5fb278af6540a47859386f
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Sat, 10 Sep 2016 19:18:17 +0200

Fix formatter return block

Diffstat:

Mapp/lib/formatter.rb3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb @@ -37,8 +37,7 @@ class Formatter acct = Account::MENTION_RE.match(match)[1] mention = mentions.find { |mention| mention.account.acct.eql?(acct) } - return match if mention.nil? - mention_html(match, mention.account) + mention.nil? ? match : mention_html(match, mention.account) end end