From fff7527694ca81d9c689ee742f8ab51e178a1837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 27 May 2025 17:35:48 +0400 Subject: [PATCH] Don't show njump link when no pubkey set --- 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 0490cea..101a360 100644 --- a/app/views/admin/users/show.html.erb +++ b/app/views/admin/users/show.html.erb @@ -278,7 +278,9 @@ ) %> + <% if @user.nostr_pubkey.present? %> <%= link_to "Open profile", "https://njump.me/#{@user.nostr_pubkey_bech32}", class: "btn-sm btn-gray" %> + <% end %> <% end %>