From a07b4369abcaa6a5f16bd1c646abcaaa72e72428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sun, 23 Jun 2024 17:33:34 +0200 Subject: [PATCH] Hide njump link for users without pubkey --- app/views/admin/users/show.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb index 4184e31..55ae328 100644 --- a/app/views/admin/users/show.html.erb +++ b/app/views/admin/users/show.html.erb @@ -205,7 +205,9 @@ ) %> + <% if @user.nostr_pubkey.present? %> <%= link_to "Open profile", "https://njump.me/#{@user.nostr_pubkey_bech32}", class: "btn-sm btn-gray" %> + <% end %> <% end %>