Widget slug proper dynamic URLS #20

Merged
prkirby merged 2 commits from widget-slug into master 2020-01-28 05:58:14 +01:00
prkirby commented 2020-01-28 05:57:57 +01:00 (Migrated from github.com)

For the front-end post widget, the LBRY Channel was previously hardcoded as a hotfix.

In this PR:

  • Saving claimID as post meta when post is published to LBRY
  • canonical_url function in LBRY_Daemon to get canonical of any claim ID
  • Dynamic Widget link, with backwards compatibility if Claim ID has not been saved against post

Fixes #15

For the front-end post widget, the LBRY Channel was previously hardcoded as a hotfix. In this PR: - Saving claimID as post meta when post is published to LBRY - canonical_url function in LBRY_Daemon to get canonical of any claim ID - Dynamic Widget link, with backwards compatibility if Claim ID has not been saved against post Fixes #15
kauffj (Migrated from github.com) reviewed 2020-01-28 15:26:06 +01:00
@ -6,3 +11,4 @@
}
?>
<div class="lbry-published-banner">
<h5>Stored Safely on Blockchain</h5>
kauffj (Migrated from github.com) commented 2020-01-28 15:26:05 +01:00

str_replace(['lbry://', '#'], ['open.lbry.com/', ':'], $url);

`str_replace(['lbry://', '#'], ['open.lbry.com/', ':'], $url);`
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrypress#20
No description provided.