cweiske, leg, [mlopatka], snarfed and [eddie] joined the channel
#[eddie]For a while I had hard-coded my RSS feed to only display certain post types in my micro.blog rss file. But, then I had an idea. I made my rss file show any post that has it’s syndication property set to micro.blog
#aaronpkyou store a syndication property for micro.blog? how do you find the URL?
#[eddie]This didn’t change much until yesterday because I hadn’t changed what types of stuff I posted until I decided I wanted to post *select* watch posts
#[eddie]This new method made it super easy to only share 3 watch posts
#[eddie]Because there is no data driven reason to show certain watch posts, but I did think “I thought this episode was particularly good and want to recommend it”
#[eddie]Hence the ability to just add syndicate to micro.blog
#[eddie]Very happy that the earlier work made it super easy to make that shift
#[eddie]That also means I can add an ownyourswarm filter to add micro.blog syndication to certain posts
#aaronpkdoes this also affect what goes onto your home page then?
#[eddie]It does not. Currently the home page is still running based on existing rules. Although that is run by a featured setting so I could add that (if syndicate to m.blog mark as featured). However I’m still deciding what I want to do with my homepage. I think I’m gonna take it in a different direction
#[eddie]Like I added a media ticker that displays the cover art of my latest watch/listen posts
#[eddie]So I don’t think I would want those posts Ever in the “feed below”
#[eddie]I’m thinking about having a “latest podcast” widget”, maybe shortening how many articles I display and then link to an archive. So I’m almost thinking of building different widgets for type of content rather than a stream
#Loqi[Aaron Parecki] Encountered two blockers working on this:
1) In a simple example of an img tag inside an e-content tag, the parsers are using the img tag as an implied photo property. This seems wrong to me. Example This means XRay sees a post like this as a photo...
loicm joined the channel
#Zegnataaronpk: “since XRay can't be sure exactly what method was used to generate the plaintext value from the original HTML” - DOM’s textContent should be used, IIRC, else the parser is broken.
#aaronpkthat function mostly uses the DOM textContent, but it has special handling for whitespace and certain html tags that weren't being handled right by the plain textContent function
#ZegnatThat sounds really bad. Is there a PHP bug for that?
[colinwalker] joined the channel
#ZegnatEither way, I would still say that when mf2 spec says “textContent” it means textContent per DOM spec. So XRay should be able to be certain of what the parser returns.
#ZegnatIf the parser return does not match with DOM spec’s textContent, that’s a parser bug.
#aaronpkany thoughts on my best path forward with this? I think I have to implement HTML->text conversion in XRay even though the mf2 parser is already doing it
[kevinmarks] joined the channel
#[eddie]I feel like I somehow must have gone crazy. When I wrote the Jf2Post object in Swift, I added a “description” field. But it doesn’t seem that XRay or Microsub return description, they return content…. 😕 is description an older jf2 attribute name?
#Zegnatcweiske DOMDocument says it exposes the DOM API. I would expect that to be the DOM spec. textContent for HTML does not extend on DOM textContent I believe.
#ZegnatIf DOM textContent does not work for microformats specifically, the microformats spec is wrong.
#[kevinmarks]Description is an rss name, ambiguous between summary and content
#[kevinmarks]There was some debate between innerText and textContent I think
gRegorLove, tantek and [xavierroy] joined the channel
#Loqi[aaronpk] #52 Remove images from posts containing a photo
#aaronpkquestion: in a case like <a href=""><img src="..." class="u-photo"></a> where XRay removes the img tag, shouldn't it also remove the <a> tag since the tag is now empty?
tantek, loicm and snarfed joined the channel
#aaronpk^^ that question applies to tantek's posts
#tantekyes I put the u-photo on the a href so it gets the higher resolution version
#snarfedi compared the activitypub POST with another one that succeeded (against a different instance), and the only meaningful differences are a tag and a location
#sknebelI think that's an improvement actually, it was down entirely for a while if I remember right
[cleverdevil], j12t, snarfed and j12t_ joined the channel
#snarfedhi [cleverdevil]! hey i expect you're press savvy...we might try to drum up a press cycle for https://indieweb.org/Webm1m . probably throwing a party in 2w. feel free to ping j12t if you can help!
#tantekI wonder if glennjones was using Letsencrypt or not
#tantekwe seem to see a lot of that (cert expiration) around here
#tantekenough to make me wonder if it is worth documenting as another admin tax
#aaronpkcerts in general yes, but I don't think letsencrypt is a negative example of https at al
#tantekbecause now I have to futz with UI just to see the site
#ZegnatActually, I think Let’s Encrypt monitors for you, which is beautiful. If my renewal (which is set to do it far in advance of the cert lapsing) fails, LE is still going to email me about my certificate running out :)
#LoqiPost Type Discovery specifies an algorithm for determining the type of a post by what properties it has and potentially what value(s) they have, which helps avoid the need for explicit post types that are being abandoned by modern post creation UIs https://indieweb.org/PTD
#ZegnatBut I think I misread the context there, so disregard :)
j12t joined the channel
#aaronpkoh yeah, I should clarify: the problem when there is no alt attribute is that the URL ends up in the content.text value. it is able to dedupe the name/content fine.
j12t_, j12t__, j12t___ and j12t joined the channel
#aaronpkI think i'm going to have to add my own html->text conversion in XRay
#ZegnatI do like the text browser output for plain text, and wouldn’t mind seeing that standardised somewhere, aaronpk. Even within mf2. But it is definitely hard and you will always end up with opinionated choices (and thus people who have to then go and build their own alternatives).
#[kevinmarks]Why don't you dedupe the image after parsing rather than change what you are parsing? Or are you getting 2 different image urls due to thumbnails?
#Loqi[aaronpk] #56 How to remove the img tag from `p-content`
#ZegnatTo be fair, those posts will not result in duplicated photos aaronpk. As the markup author specifically says the content does not contain images by using p-
#aaronpkthen the mf2 parser should not be using the u-photo property inside the p- element?
#aaronpkafaik a p- class does not prevent parsing other elements inside of it
#ZegnatNo, I mean, the markup says: “this post has photo X and content Y, but the author does not want to show the photo within content because they specified to take content as plain text only”
#sknebelthat sounds like different rules for p- and the text version of an e-?
#ZegnatIf the author then also does not provide an actual correct alt value for the img in the p-content, that is the real issue.
#aaronpkso you're saying the image URL shouldn't have been included in the text content value?
#ZegnatWant to hear something fun, sknebel? Those two have different rules for their text content values!
j12t joined the channel
#ZegnatI am saying if the author uses p-content, they also must give the img a proper alt so the URL doesn’t show up.
#ZegnatMaybe mf2 including the URL of an image when no alt is given is unexpected by the user though.
#Loqi[aaronpk] #57 Fails to detect post name if name is included as img alt text
#ZegnatI guess the answer there is that if your deduping depends on alt values (which apparently it does), you are not allowed to remove alt values from the content :P
#ZegnatBut I guess some other blocker will then re-emerge and you get stuck in a loop.
#aaronpkyep, deduping depends on alt values unless the mf2 parser changes to not include those in the plaintext
#sknebelhm. the alt-text seems unnecessary (title is already visible outside)
#aaronpkthe alt text in that markup is absolutely unnecessary
#Loqi[aaronpk] #53 URL of img tag is included in the p-name and content.value
#ZegnatI think in general markup around photos is just going to be hugely varied. Which isn’t going to help. People simply haven’t decided on how to mark up photo posts yet.
#aaronpkand neither is something I can solve without diving into the parser
#aaronpk1) not sure what to do about img URLs in p-content
#aaronpk2) there seems to be an implied photo appearing when I didn't expect it
#aaronpkokay and with that I am done with this for today
#ZegnatI totally see the reason for the URLs. That’s actually one of the small parts I would expect from a plain text browsing experience. But I also see why they are annoying when you get only the mf2 parser output and not the original DOM, because you have no idea of the URL source.
snarfed joined the channel
#sknebelin a sense the difference between "authored as plain text" and "text experience of a HTML document", so maybe a candidate for p- vs e-
#sknebelaaronpk could make an experimental flag for that in php-mf2 and experiment in xray with using it
#[keithjgrant]is anybody using as static site generator to do recipes? I'd love to know if there's a workaround to avoid putting everything in the front matter... I can't figure out how else to make it parseable by my template (to markup p-ingredients, especially)
#aaronpkZegnat: the point is XRay will already show you the url even in a plaintext experience because it's in the u-photo property. I don't want it duplicated in the content still
krup joined the channel
#ZegnatNow the big question aaronpk: what happens when I use the picture element?
#ZegnatAt this point I am just trolling. I am going to drink some tea and read this week's book. Have a good one all!
iasai_, j12t, j12t_ and eli_oat joined the channel
#sknebeldgold: I saw you asking about dathttpd in #dat, did you get anywhere with that/what did you want to do?
#sknebel(at least I hope I remember right that it was you ;))
snarfed, [kevinmarks] and tantek joined the channel
#tantekHmm, not seeing wiki edits here, even the wiki edits that Loqi himself makes