#dev 2024-12-27

2024-12-27 UTC
#
osteophage
As mentioned in #indieweb, I have a question about using Webmention.io. I've got the basic setup done, have a submission form page, and have run a test to make sure that much is working correctly. What I'd like to do next is embed the form directly on a page of my own, on my own site, and that's where I'm stuck.
#
osteophage
To avoid pasting a bunch of code in here, here's a forum thread where I've described the issue, code included: <https://discourse.32bit.cafe/t/embedding-a-webmentions-form/1828>
#
IWDiscord
<o​steophage>
#
osteophage
Anyone have any ideas for how to get that form working?
CRISPR and gRegor joined the channel
#
gRegor
Welcome, osteophage. No javascript is required to send that webmention form. What's the source URL you're entering in the "Where you linked it" form input?
#
osteophage
Thanks! Previously I was testing it with a different set of links, but more recently I tried using that forum thread right there.
#
gRegor
Oh, it looks like the form isn't submitting due to a Content Security Policy on your neocities page
#
gRegor
I see this in Chrome dev console when I try to submit: `Refused to send form data to 'https://webmention.io/osteophage.neocities.org/webmention' because it violates the following Content Security Policy directive: "form-action 'self'".`
#
osteophage
Oh! Is that because of my robots.txt file? Or would that be something else?
#
gRegor
What is Content Security Policy?
#
Loqi
Content-Security-Policy (abbreviated CSP) is an HTTP directive that a site can use to restrict what external resources are retrieved by a browser, to mitigate some XSS and injection attacks https://indieweb.org/Content-Security-Policy
#
gRegor
Not robots.txt. I'm not sure if that's something you can configure with Neocities, or if it's default for everyone
#
osteophage
Oh, okay. Is that something I should ask the head of Neocities about?
#
gRegor
Looks like it's restricted on free plans: https://neocities.org/contact#ccsp
#
osteophage
Ah. Just found discussion of it here, too: <https://dabric.xyz/post/neocities-csp/>
#
osteophage
Well, mystery solved at least. Thanks for the insight!
#
gRegor
Welcome! It won't be as customizable, but you might be able to embed https://webmention.io/osteophage.neocities.org/webmention in an iframe
#
gRegor
Or you can always link people directly to that
#
osteophage
Yeah, linking was what I was gonna do as the alternative. Just wanted to see if I could style it in my own css and save people a click.
#
osteophage
What got me started down this path is that I'm working on something I'm hoping to circulate a little farther than my usual blogging circle, so I wanted to make it as seamless as possible for anyone to let me know about linking back from a site I'm not on -- a perfect use case for this kind of thing.
#
gRegor
Nice. Yeah, those "Did you link to this? Let me know" forms are handy. Especially if they can dynamically include the target link as a hidden field, so they only have to enter their link and click submit.
#
gRegor
Also, heh, I apparently read the title of that one link and got "aromantic" lodged in my brain instead of "aromatic" so was very confused reading the about page talking about scents
#
osteophage
lol, a classic mistake
grufwub joined the channel
#
carrvo[d]
@gRegor Did I understand correctly that content security policy is a header to list the domains/content that the server trusts, so that the browser knows other requests are suspicious?
rossabaker joined the channel
#
carrvo[d]
I have a quick question about the webmentions: how would I gather content with the same tag together like in https://aaronparecki.com/tag/100daysofindieweb ? Is it as simple as sending a webmention to a "tag" URI, who then handles it by adding a back reference (instead of some hashtag aggregator magic)?
#
carrvo[d]
*adding/appending
Guest6, nemonical, ttybitnik, Pixi`, barnaby and [schmarty] joined the channel
#
[schmarty]
carrvo: that's a pretty accurate description of content security policy. It also has rules for whether the browser is to block disallowed requests or to allow them but report them to an given URL
#
[schmarty]
carrvo: I suspect most tag pages are handled internally by a given site's generator or CMS. There have definitely been third-party tag aggregators that work like you described, though.
#
[schmarty]
Loqi may be sleeping.
ttybitnik joined the channel
#
doesnm
[schmarty]: it't like news.indieweb.org AFAIK
#
doesnm
what is indieweb.xyz
#
Loqi
Indieweb.xyz (archived) was a syndication service organized into subs until ~2023-02-26 at least, similar to Reddit, created by Kicks Condor https://indieweb.org/Indieweb.xyz
#
[schmarty]
doesnm: yep, indienews aggregates via webmentions
#
khurtwilliams
[schmarty]: I've sent Webmentions to IndieWebNews but they never show up.
#
[schmarty]
khurtwilliams: maybe the manual submission page can shed some light on why? https://news.indieweb.org/en/submit
#
[schmarty]
if not, maybe aaronpk can help debug. he runs it. 😄
#
aaronpk
the form there should give some helpful information in the response
#
GWG
I'm updating my GitHub actions tests today.
#
GWG
Probably the least exciting thing I could do to my repositories
[jeremycherfas] and parnikkapore_x joined the channel
#
[snarfed]
testing++
#
Loqi
testing has 1 karma over the last year
#
[snarfed]
tests++
#
Loqi
tests has 5 karma in this channel over the last year (6 in all channels)
#
khurtwilliams
When I enter that link at https://news.indieweb.org/en/submit I get
#
IWDiscord
<k​hurtwilliams>
#
khurtwilliams
@[schmarty] you can see my example here: https://islandinthenet.com/the-indieweb-is-whatever-you-want-it-to-be/
#
IWDiscord
<k​hurtwilliams>
#
khurtwilliams
> Error: no_link_found
#
khurtwilliams
[edit] @[schmarty] you can see my example here: https://islandinthenet.com/the-indieweb-is-whatever-you-want-it-to-be/
#
IWDiscord
<k​hurtwilliams>
#
IWDiscord
<k​hurtwilliams>
#
khurtwilliams
> Error: no_link_found
#
khurtwilliams
When I enter that link at https://news.indieweb.org/en/submit I get
#
Loqi
[preview] [Khürt Williams] Linking Indirectly, No Content Shared (LINCS)
#
Loqi
[preview] [Khürt Williams] Linking Indirectly, No Content Shared (LINCS)
#
Loqi
[preview] [Khürt Williams] Linking Indirectly, No Content Shared (LINCS)
#
[schmarty]
khurtwilliams: it looks like this page has both u-category and u-syndication links to https://news.indieweb.org/en (good) but according to the microformats2 parser, the u-syndication isn't inside any h-entry.
#
[schmarty]
khurtwilliams: i don't quite understand what's going on with the parsed category listing. someone with better knowledge of the microformats parser might be able to help. i'm suspicious of having both "u-category u-tag" on the links, and also suspicious of using both "u-category" and rel="tag" 🤔
#
[schmarty]
that's the limit of how i can help at the moment. deferring to aaronpk or gRegor. 😄
#
khurtwilliams
@[schmarty] I ran the website and the page through [IndieWebifyMe](https://indiewebify.me/) and I am using all the IndieWeb plugins. I'll take another look at the theme's files.
#
[schmarty]
khurtwilliams: ah, if you're on wordpress, folks in #indieweb-wordpress might be better equipped to help!
#
[tantek]
Yes the u-syndication needs to be inside the h-entry for it to be a part of it. Otherwise it looks like a random link and it's not clear what entry IndieNews is supposed to syndicate
#
GWG
Okay. Just switching my GitHub actions code to annotation mode is working out so much better. I get a web list of problems to look at.
#
khurtwilliams
@[schmarty] oops. Just realised I was in #indieweb-dev channel. @[tantek] I think I need a closer look at this. Besides the IndieWeb plugins I added some microformats2 markup myself and I think I made a messs of it.
ttybitnik joined the channel
#
doesnm
what is better software for microsub: aperture or ekster?
#
Loqi
It looks like we don't have a page for "better software for microsub: aperture or ekster" yet. Would you like to create it?_U (Or just say "better software for microsub: aperture or ekster is ____", a sentence describing the term)
#
doesnm
oops, sry
#
doesnm
oh, seems aperture not support websub
sebbu2 and gRegor joined the channel
#
gRegor
Hi khurtwilliams, it looks like your theme is using microformats1 hEntry instaed of microformats2 h-entry. That's generally fine, but it means the mf2 properties like u-syndication won't be parsed, if I'm remembering the parsing algorithm correctly. It does appear the `u-syndication` is inside the hEntry, though, so the placement is correct.
#
gRegor
The wordpress channel might be able to help with best practices for upgrading to h-entry
#
gRegor
This does make me think that indiewebify.me should show a warning if it's parsed hEntry via backcompat, because https://indiewebify.me/validate-h-entry/?url=https%3A%2F%2Fislandinthenet.com%2Fthe-indieweb-is-whatever-you-want-it-to-be%2F is saying to add u-syndication, but that's already there. It needs to explain what's happening in a more publisher friendly way.
#
gRegor
Writing up an issue
#
carrvo[d]
[schmarty]++ I am all manual so no CMS. Good to know my headspace in in the right direction!
#
Loqi
[schmarty] has 7 karma in this channel over the last year (29 in all channels)
#
Loqi
[preview] [gRegorLove] #125 Improve validation for mf1 hEntry
#
[tantek]
gRegor ++ good sleuthing and agreed with suggested improvement to indiewebifyme
#
Loqi
gRegor has 30 karma in this channel over the last year (126 in all channels)
[fluffy], ttybitnik and bterry1 joined the channel