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
HackerNews links don't work #393
Comments
|
You are right, but there isn't enough data. We may have to figure out how to find some. |
|
Same issue on Lemmy - for example https://lemmy.one/post/78196 |
|
This is the same issue as with hackernews, lemmy does not really use WebSemantics: http://php.microformats.io/?url=https%3A%2F%2Flemmy.one%2Fpost%2F78196 |
|
Anyone want to read the HTML and see if there is something we can extract of any type? |
|
@edent do lemmy and hackernews support Webmentions or have you simply tried to send them manually? |
|
@pfefferle I was submitting them manually to my site. That's where I saw the error. Looking through the HTML of both HN & Lenny, I can see the links to my site. Is there something specific I should be looking for? |
|
There is a bug in 5.0.0 that does not parse the meta-headers correctly. Maybe we wait until 5.1.0 is released to re-check. |
|
It's still a problem of what data could we extract to render a preview. |
|
Sorry to chime in like this. :-S That's what IndieBlocks does, too. Set a default name (either "Anonymous" or the page's host name) and content. Then if there are microformats, we turn those into something more meaningful. Shouldn't be too hard to do something similar here. I'd be happy to look into it, and maybe submit a PR. What I do for" default" mentions (and replies, etc.) is, where possible, actually use the code that WP uses for pingbacks, set the comment to something like "[...] some text linking back to this article [...]" and otherwise fall back to "mentioned this" or something. Not saying Webmention should do the same, but that could perhaps be an option, too. |
|
I think we can add something simple.. just was trying to avoid Anonymous as it looks like less useful info. I think Hackernews may be worth a custom rule to find things. |
|
Maybe use the domain host? |
|
Also, LinkedIn (urgh!). Take a URl like this - https://www.linkedin.com/posts/terenceeden_why-im-using-mx-as-a-title-activity-7074702026084884480-jO0C?utm_source=share&utm_medium=member_desktop It doesn't contain the direct link in the HTML, but it is in the JSON+LD as "sharedContent": |
|
The JSON-LD parser had a bug, but should work with the latest PR. |
|
Cool! When there's a new release I'll give it a go and report back. Thanks for all your work on this. |
|
@pfefferle LinkedIn is now working - thanks :-) |
|
Yea, hacker news is a bit tricky, because there are nearly no informations we can use. |
|
There's always the API. https://github.com/HackerNews/API |
|
But I wouldn't see that as part of the plugin! that's too specific! 😳 Any ideas what we could add to make Hackernews at least pingable and not looking too ugly? |
|
Grabbing the text from the |
if properties are not set and to avoid "anonymous". fix #393
|
Result is now {
"published": {
"date": "2023-12-28 19:41:45.864580",
"timezone_type": 3,
"timezone": "UTC"
},
"url": "https://news.ycombinator.com/item?id=35927509",
"author": {
"type": "card",
"name": "news.ycombinator.com"
},
"name": "The new .zip TLD is going to cause some problems | Hacker News",
"site_name": "news.ycombinator.com",
"content": "The new .zip TLD is going to cause some problems | Hacker News",
"response_type": "mention",
"raw": {
"referrer": "origin",
"viewport": "width=device-width, initial-scale=1.0"
}
} |

Tried to submit https://news.ycombinator.com/item?id=35927509 to https://shkspr.mobi/blog/2023/05/the-new-zip-tld-is-going-to-cause-some-problems/
I got the error
The text was updated successfully, but these errors were encountered: