From d7b4c67953b3ccc04b812690a83b9b0c0e7d5e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 14 Sep 2024 16:40:22 +0200 Subject: [PATCH] Fix config when set to empty string --- app/controllers/well_known_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/well_known_controller.rb b/app/controllers/well_known_controller.rb index cb0c018..af9ffc4 100644 --- a/app/controllers/well_known_controller.rb +++ b/app/controllers/well_known_controller.rb @@ -12,7 +12,7 @@ class WellKnownController < ApplicationController if params[:name] == "_" if domain == Setting.primary_domain # pubkey for the primary domain without a username (e.g. kosmos.org) - res = { names: { "_": Setting.nostr_public_key_primary_domain || Setting.nostr_public_key } } + res = { names: { "_": Setting.nostr_public_key_primary_domain.presence || Setting.nostr_public_key } } else # pubkey for the akkounts domain without a username (e.g. accounts.kosmos.org) res = { names: { "_": Setting.nostr_public_key } }