-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use resolve for OG metadata #6787
Conversation
I'm still not sure how to test this... |
Nice thanks ✌️ |
web/src/html.js
Outdated
const thumbnail = value && value.thumbnail && value.thumbnail.url; | ||
const mediaType = source && source.media_type; | ||
const mediaDuration = media && media.duration; | ||
const creationTimestamp = meta && (meta.creation_timestamp || 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should do value.release_time --> creation time --> 0
. We've been using release time, which works for newer claims.
@@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). | |||
- Improve twitter share _community pr!_ ([#6690](https://github.com/lbryio/lbry-desktop/pull/6690)) | |||
- Update lighthouse search api _community pr!_ ([#6731](https://github.com/lbryio/lbry-desktop/pull/6731)) | |||
- Update sockety api _community pr!_ ([#6747](https://github.com/lbryio/lbry-desktop/pull/6747)) | |||
- Use resolve for OG metadata instead of chainquery _community pr!_ ([#6787](https://github.com/lbryio/lbry-desktop/pull/6787)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure where the error is, but Embed OG's aren't showing up (it's showing the fallback).
Example embed: https://odysee.com/$/embed/eevblog-1412-argon-ion-laser-teardown!/1fe325659bf8d791f72e02bb614a942fa4b571bf?r=5yqd2A3cQ59DhkNRYTJq3BApzdcr7KSn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The embed url doesn't use :
or #
to separate the id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding this .replace('\/', '#');
fixes the issue. Not sure if this will work on all cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as embed url is always $/embed/name/id
^^
Is there any other urls that uses |
Tom mentioned that anywhere we use However, I noticed that |
Same issue with embed urls. parseURI fails to detect the claim id, because there is no '#' Line 246 in be4c75c
|
This is actually the equivalent of:
Instead of:
See: #6812 |
I don't think the redirection issue has nothing todo with the changes on this pull request. |
caeb7d2
to
c85e448
Compare
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
Closes #6780
Closes #6464
Closes #6812