From 5d5e36a2c2d7d30663dae4267d00da734cff2005 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Thu, 30 May 2019 21:32:35 -0400 Subject: [PATCH] short_url and canonical_url returned from wallet server use original claim name instead of normalized --- lbrynet/wallet/server/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/wallet/server/db.py b/lbrynet/wallet/server/db.py index c06e042e8..f1deeca27 100644 --- a/lbrynet/wallet/server/db.py +++ b/lbrynet/wallet/server/db.py @@ -286,7 +286,7 @@ class SQLDB: CASE WHEN :release_time IS NOT NULL THEN :release_time ELSE :timestamp END, CASE WHEN :normalized NOT IN (SELECT normalized FROM claimtrie) THEN :height END, CASE WHEN :height >= 262974 THEN :height+2102400 ELSE :height+262974 END, - :normalized||COALESCE( + :claim_name||COALESCE( (SELECT shortest_id(claim_id, :claim_id) FROM claim WHERE normalized = :normalized), '#'||substr(:claim_id, 1, 1) ) @@ -446,7 +446,7 @@ class SQLDB: WHEN is_channel_signature_valid AND :is_channel_signature_valid THEN canonical_url WHEN :is_channel_signature_valid THEN (SELECT short_url FROM claim WHERE claim_hash=:channel_hash)||'/'|| - normalized||COALESCE( + claim_name||COALESCE( (SELECT shortest_id(other_claim.claim_id, claim.claim_id) FROM claim AS other_claim WHERE other_claim.normalized = claim.normalized AND other_claim.channel_hash = :channel_hash AND