Skip to content

Commit

Permalink
fix channel links on history page
Browse files Browse the repository at this point in the history
  • Loading branch information
akinwale committed May 27, 2020
1 parent 83a41ca commit 3283b3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/io/lbry/browser/model/Claim.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ public static Claim fromViewHistory(ViewHistory viewHistory) {
Claim signingChannel = new Claim();
signingChannel.setClaimId(viewHistory.getPublisherClaimId());
signingChannel.setName(viewHistory.getPublisherName());

LbryUri channelUrl = LbryUri.tryParse(String.format("%s#%s", signingChannel.getName(), signingChannel.getClaimId()));
signingChannel.setPermanentUrl(channelUrl != null ? channelUrl.toString() : null);
if (!Helper.isNullOrEmpty(viewHistory.getPublisherTitle())) {
GenericMetadata channelValue = new GenericMetadata();
channelValue.setTitle(viewHistory.getPublisherTitle());
Expand Down

0 comments on commit 3283b3a

Please sign in to comment.