Skip to content

Commit bd3701b

Browse files
author
Adrien Kunysz
committed
Don't show Jabber ID for sub-zero karma users.
We already do that for website and Mastodon. No reason to treat Jabber any different.
1 parent dbc19c6 commit bd3701b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/helpers/users_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def homesite_link(user)
3737
def jabber_link(user)
3838
return unless current_account
3939
return if user.jabber_id.blank?
40+
karma = user.account.try(:karma).to_i
41+
return unless karma > 0
4042
link_to("adresse XMPP", "xmpp:" + user.jabber_id)
4143
end
4244

0 commit comments

Comments
 (0)