#dev 2025-05-18

2025-05-18 UTC
grufwub, NaomiAmethyst, github247, barnaby, PsyLok, GuestZero_, CycloN, srazkvt and srxl joined the channel
#
perryflynn
regarding micropub: du I have to implement form and json format? will I break support for some client if I just implement JSON for example? the rfc document is not clear to me.
#
perryflynn
> All Micropub requests to create posts are sent as UTF-8 x-www-form-urlencoded, multipart/form-data [HTML5], or [JSON]-encoded HTTP requests. Responses typically do not include a response body, indicating the needed information (such as the URL of the created post) in HTTP headers.
#
doesnm
perryflynn: some uses form, some json. So you will break
#
perryflynn
doesnm: ok. for a standard which is called "micropub" it's a little bit annoying that I have to implement two different formats...
barnaby joined the channel
#
immibis
activitypub is even worse
barnaby and PsyLok joined the channel
#
perryflynn
I added docker support to micropublish. Would be happy if one could check the PR and give feedback: https://github.com/barryf/micropublish/pull/122
#
Loqi
[preview] [perryflynn] #122 Add Docker support and more flexibility for dev settings
ttybitnik, [Schepp], [schmarty], pfych, btrem, PsyLok, barnaby, NaomiAmethyst, bugliker, bterry and [qubyte] joined the channel
#
rosipov
<footer class="site-footer h-card">
#
rosipov
so, how do I ignore something in h-card? Specifically my footer is effectively an h-card right now, but it has a webring in it which I don't like
#
rosipov
<data class="u-url" href="{{ "/" | relative_url }}"></data>
#
rosipov
<div class="wrapper">
#
rosipov
<h2 class="footer-heading">{{ site.title | escape }}</h2>
#
rosipov
<div class="footer-col-wrapper">
#
rosipov
<div class="footer-col" style="margin-bottom: 0px;">
#
rosipov
<p class="h-card p-note">{{- site.description | escape -}}</p>
#
rosipov
</div>
#
rosipov
<div class="footer-col">
#
rosipov
<a href="https://xn--sr8hvo.ws/previous">←</a>
#
rosipov
<a href="https://xn--sr8hvo.ws">IndieWeb webring</a> πŸ•ΈπŸ’
#
rosipov
<a href="https://xn--sr8hvo.ws/next">β†’</a>
#
rosipov
</div>
#
rosipov
oh god I'm sorry for the spam, I didn't expect my client to do this
#
osteophage
Could you define a different div for the h-card?
#
aaronpk
you need to add `p-name` to the element that has the value you want in the name, right now it's inferring the name from the full contents of the h-card
#
[tantek]
there is no need to explicitly ignore. everything is ignored by default except for the elements with property class names
#
aaronpk
`<h2 class="footer-heading p-name">`
#
[tantek]
an h-card is for a person or organization though, not a site title (unless your site title is literally your name)
#
aaronpk
it is in this example
#
rosipov
[tantek] it actually is :)
#
rosipov
aaronpk ah I see
#
rosipov
IWDiscord I guess I didn't want to create a dedicated space for h-card so I just reused some info I had in the footer
#
rosipov
maybe I should make hidden h-card
#
aaronpk
no you're on the right track using the visible data that's already there
#
aaronpk
not quite
#
rosipov
cool, thanks - playing around with that
#
rosipov
aaronpk ++
#
Loqi
aaronpk has 49 karma in this channel over the last year (118 in all channels)
#
[tantek]
rosipov++ for making use of the data that's already there on the page!
#
Loqi
rosipov has 1 karma in this channel over the last year (3 in all channels)
barnaby joined the channel
#
perryflynn
wuhu create/update/delete via micropub works. converting the form request to json was not that bad in the end. when I am done with syndication and maybe a media endpoint it's finally ready that I could share the code on github.
[social], [aciccarello], [Murray] and balintm joined the channel