#dev 2018-12-05

2018-12-05 UTC
#
aaronpk
but my site lets anything be stored as an array it just only uses the first value for some properties
#
jalcine
!tell [eddie] re: h-card population and micropub, that's cool!
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
off the top of my head, single values for: name, content, published, author, url
#
KartikPrabhu
author is funny
#
KartikPrabhu
multi-author collaborative posts are surely a thing
#
aaronpk
If you look at every social media site a post has only one author
#
aaronpk
multi author posts usually get attributed to the organization
#
aaronpk
this is not a theoretical problem of how to represent something, it's a question of how you want it to show up in a reader, and I can't think of a reader on any platform that shows posts with multiple authors
#
KartikPrabhu
certainly "social media" but certainly not blogs
#
aaronpk
Got any examples?
[kevinmarks] joined the channel
#
KartikPrabhu
My reader (feedly) does show multiple authors obtained via RSS/Atom
#
aaronpk
Any actual examples of a site that publishes that? Would like to see a screenshot
#
Loqi
[Venkatesa Chandrasekaran] Symmetries and charges of general relativity at null boundaries
#
KartikPrabhu
with markup
#
KartikPrabhu
and Loqi only picked first author :P
#
[kevinmarks]
Professional blogs have multiple authors
#
aaronpk
Like I said this is not a question of representing data ideally
#
[kevinmarks]
Also, people do ha e multiple names.
#
aaronpk
[kevinmarks]: can you show me a post that lists multiple authors? Obviously many blogs have multiple authors but usually the post is attributed to just one of them or the organization
#
aaronpk
I give up
#
KartikPrabhu
aaronpk: would you like a reader screenshot?
#
[kevinmarks]
Podcasts are an obvious one
#
aaronpk
yes plz, something other than the site that publishes the data
#
aaronpk
[kevinmarks]: read what I wrote
#
aaronpk
podcast episode authors are the podcast itself
[eddie] joined the channel
#
[eddie]
!tell aaronpk oops by notification I meant webmention
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
[eddie]: uhoh that's not a good sign, does that mean I'm delayed sending webmentions?
#
KartikPrabhu
also [kevinmarks]'s unmung does multi-author too
#
aaronpk
This ship sailed on the internet long ago I don't know why you're trying to argue this
#
[kevinmarks]
<itunes:author>Our Opinions Are Correct</itunes:author> and
#
[kevinmarks]
<itunes:owner>
#
[kevinmarks]
<itunes:name><![CDATA[Annalee Newitz]]></itunes:name>
#
[kevinmarks]
<itunes:email>annalee@gmail.com</itunes:email>
#
[kevinmarks]
</itunes:owner>
#
[kevinmarks]
Hm. That may be an iTunes artefact like the way they fuck up music too.
#
aaronpk
[kevinmarks]: I'm not asking for publishing examples
#
KartikPrabhu
aaronpk: see the uploaded screenshot https://indieweb.org/File:multi-author.png
#
aaronpk
KartikPrabhu: what is the "hep-th updates on arXiv" from?
#
kisik21
Micropub "mp-" properties should be in JSON "properties" mapping, right? just in case
#
KartikPrabhu
arxiv.org a preprint repo for physics academic papers. this is from their RSS/Atom feed
#
aaronpk
Is that like the name of the feed?
#
aaronpk
Okay that's the "organization" thing I was talking about, and listing the actual authors seem to be an enhancement on that. Worth capturing on a page if we already have one about multi authors
#
KartikPrabhu
nope. the post is not by the organisation. the post is by the two authors on a preprint server that sends out updates
#
[kevinmarks]
though they're using dc:creator wiht 2 names as text
#
aaronpk
KartikPrabhu: again this is not about the concept of authorship this is about what you see when you find this post in an interface
#
[kevinmarks]
people putting 2 names into a univalued field is an example of procrustean data representation, not authorship by a temporary hybrid person
#
KartikPrabhu
yup I see: a post on "feed name" by "author1 and author2" not a post by "arxiv"
#
aaronpk
right which I why I said this was a good example
#
KartikPrabhu
the "hep-th on arXiv" is more like a "channel" or "category"
#
aaronpk
what do other RSS readers show for this feed?
#
KartikPrabhu
not sure. I can send you a link to the Atom
#
aaronpk
omfg [kevinmarks]
#
aaronpk
not the point
#
[kevinmarks]
atomCommonAttributes,
#
[kevinmarks]
element atom:feed {
#
[kevinmarks]
(atomAuthor*
#
[kevinmarks]
tomEntry =
#
[kevinmarks]
atomCommonAttributes,
#
[kevinmarks]
element atom:entry {
#
[kevinmarks]
(atomAuthor*
#
aaronpk
This must be what it feels like to be mansplained to
#
[kevinmarks]
yes, lots of posting interfaces are shitty at multiple authors. Not sure why you are advocating that we keep them that way.
#
[kevinmarks]
maybe we should split on 'and'
#
KartikPrabhu
aaronpk: if you'd like to test other readers here is my atom feed from arXiv https://arxiv.org/a/prabhu_k_1.atom
#
KartikPrabhu
Firefox ignores all authors btw but they are present in the source
#
aaronpk
Thanks, gotta run but i will look later
#
KartikPrabhu
:thumbsup:
#
[kevinmarks]
hm, unmung only shows the first too
#
KartikPrabhu
[kevinmarks]: here is a version with collapsed authors in unmung http://www.unmung.com/feed?feed=https%3A%2F%2Farxiv.org%2Fa%2Fprabhu_k_1.atom2
#
KartikPrabhu
of course it shows all because they are in the same element
#
[kevinmarks]
I think feedparser is takig the last author tag for author_detail, but getting it rightin authors
#
[kevinmarks]
`'authors': [{'name': u'Venkatesa Chandrasekaran'}, {'name': u'Eanna E. Flanagan'}, {'name': u'Kartik Prabhu'}]`
#
KartikPrabhu
maybe switch to using "authors" instead
#
[kevinmarks]
seems like a bug fro feedparser
#
kisik21
[kevinmarks]: I've noticed you're using Python 2... is there a reason for it?
#
[kevinmarks]
because appengine standard doesn't support python 3
#
kisik21
oh, right
#
[kevinmarks]
despite google employing almost the entire python dev team
#
kisik21
On my testing instance my posts are represented as mf2 markup, and I think I went overboard with that... /<kind>/<id>.json gets you parsed mf2 JSON directly. I don't think that would be even used by anyone, but still nice to have
#
kisik21
parsed mf2 JSON == the micropub request that created this post in JSON form
#
kisik21
is this even a good feature to have?
[tantek] joined the channel
#
KartikPrabhu
what is multi-author post?
#
Loqi
It looks like we don't have a page for "multi-author post" yet. Would you like to create it? (Or just say "multi-author post is ____", a sentence describing the term)
#
KartikPrabhu
what is author
#
Loqi
authorship is how to determine who the author(s) of a post are https://indieweb.org/author
[eddie] joined the channel
#
[eddie]
!tell aaronpk yeah I think your site was delayed in sending the webmention. I haven’t seen this happen before so I think it’s potentially a temp fluke. But wanted to flag in case you hear about it happening a second time
#
Loqi
Ok, I'll tell them that when I see them next
#
GWG
Should Indieweb.org have a feed?
#
snarfed
GWG: it does: https://indieweb.org/Special:RecentChanges (see the Atom link)
#
snarfed
[kevinmarks] kisik21: app engine standard does now support python 3!
#
snarfed
...just not with the legacy APIs. sigh.
#
GWG
snarfed: I meant an h-feed
#
snarfed
plug it into granary :P
#
GWG
It was more that it has a bunch of h-events. Should they be a feed?
#
snarfed
if you have a consuming use case, maybe
[jgmac1106] joined the channel
#
[jgmac1106]
@gwg how does [pfefferle] make the indie events plugin that appears in the editor?
#
GWG
Granary, I believe
#
aaronpk
GWG: https://indieweb.org/events is a feed of h-events yes
#
Loqi
aaronpk: [eddie] left you a message 58 minutes ago: yeah I think your site was delayed in sending the webmention. I haven’t seen this happen before so I think it’s potentially a temp fluke. But wanted to flag in case you hear about it happening a second time
#
GWG
aaronpk: This was indieweb.org . jackjamieson was trying to use my feed discovery code to get a feed out of it
[asuh] joined the channel
#
GWG
aaronpk: I learned that jf2feed is a registered type, but mf2+json and jf2+json are not
#
aaronpk
Registered where?
#
kisik21
mime-types?
#
GWG
IANA.
#
aaronpk
I don't understand
#
GWG
There's nowhere I can find the other ones mentioned other than the rel-alternate page
[chrisaldrich] joined the channel
#
[chrisaldrich]
[jgmac1106] the pfefferle events thing in the dashboard is a very old school rss widget trick that was removed from core ages ago. If you search around you'll find references and code and can put in almost any rss feed.
[jgmac1106] joined the channel
#
[jgmac1106]
Events are hard
[asuh], [eddie], snarfed, cweiske, Cumlicker, swentel and [jgmac1106] joined the channel
#
sknebel
swentel: another thing, why the hidden p-name thing? posts should either have a visible title (articles) or be notes that do not have a title/have a title thats equivalent to the content
#
swentel
sknebel, in the article markup ?
#
sknebel
if you don't show "Test send!" on your website, why is it marked up so that the receiving site believes its a title and shows e.g. "Swentel replied to this in 'Test Send!': <text>"?
#
swentel
drupal related; by default I can't override the main <h1> title on the canonical page to add a p-name class there
#
swentel
so this is a workaround for default installations
#
swentel
in the future I'm planning to add template overrides
#
swentel
but this makes it so that people who only install modules and do not override stuff can still have the needed markup
#
swentel
I agree it might look a little clumsy
#
sknebel
ah, so it is a copy of what's visible elsewhere on thepage
#
swentel
sknebel, yes
#
sknebel
that makes sense then, thx
#
sknebel
guess the same is true for the publishing time?
#
swentel
indeed
#
[jgmac1106]
@swentel how do people style titles in themes? Only on the h1 element no classes?
#
swentel
there are default classes in core on the h1
#
swentel
and every theme can override that if they want
[eddie] joined the channel
#
swentel
you can even programmatically intervene
#
swentel
so a lot of ways
#
swentel
it's sometimes too flexible :)
#
[jgmac1106]
.... See WordPress... Over flexible
#
[eddie]
jgmac1106 (from the Wordpress channel): my thought essentially is to send a follow post but only if the Micropub server sends that as an accepted post type in the post-type query
#
[jgmac1106]
Eddie what I have been doing for follow post is using an article with who I follow as title... Only way I can get markup in Known
#
[jgmac1106]
So wouldn't that work for WordPress? Or a note with markup?
#
[eddie]
Well it would work as in show the content, but it wouldn’t work with say Bridgy
#
[jgmac1106]
If micropub endpoint does not use post type discovery default to article with markup for follow post
#
[eddie]
Mmmm maybe? I feel like that will lead to unexpected behavior
#
[jgmac1106]
And Bridgy would be to syndicate elsewhere?
#
[eddie]
If I did not have something that supported follow posts I wouldn’t suddenly want my articles feed to be filled with follow posts
#
[eddie]
Bridgy Fed uses follow posts to follow someone in Mastodon/ActivityPub
#
[jgmac1106]
... Ahhh yes good point.... Reason I separated my long form articles for other articles
#
[jgmac1106]
In Known I can't add HTML to notes I gave to use articles
#
[eddie]
Yeah and that works when you are doing it by hand because you know what you’re doing
#
[eddie]
Manual until it hurts 🙂
#
[eddie]
But yeah sending them automatically to people like that I think might end up unexpected
barpthewire joined the channel
#
[eddie]
It’s a good solution to get things to work the way you want right now. Great job!
#
[eddie]
jgmac1106++
#
Loqi
jgmac1106 has 10 karma in this channel over the last year (82 in all channels)
#
[jgmac1106]
Yeah after hacking on idno plugins just came to conclusion "this is a ton of work just to add " u-listen-of"
#
[jgmac1106]
Though others can use plugins so I will return
#
[jgmac1106]
If @gwg made an explicit follow postkind could a micropub client recognize that as it does with other post types?
#
[jgmac1106]
... More worried I am going to finish my blog migration and say, "Maybe I could do this as an SSG or my own CMS using perch... I should migrate away from Known"
#
[jgmac1106]
[eddie] still might steal [chrisaldrich] idea of a faux podcast feed for easy listen posts
[tantek] joined the channel
#
[jgmac1106]
But add 🔊 button if <audio> tag present in Indigineous would be cool feature cc/ @swentel
#
kisik21
The good thing about microformats2 + micropub: easy migration of posts... I've noticed it only now that the only thing I'll need to do to migrate my posts is to just go through my feed and send a micropub request for each post
#
kisik21
because my posts are already microformats2, and Micropub can parse mf2 JSON, it's really easy to migrate
#
kisik21
someone should write a tool for automating that
#
kisik21
maybe me
#
sknebel
kisik21: regarding "the mf2 json being accessible, good idea or not" - depends - as long as it's only public information it is not a problem, but e.g. if you have posts stored that aren't publicly visible, either because they're private or not published yet, or attributes you store but not show it could be an issue
bradenslen joined the channel
#
kisik21
sknebel: examples of attributes I don't wanna show?
#
sknebel
e.g. my site stores my location if I submit it, but doesn'T show it publicly
#
kisik21
and aaronpk is posting the town in his location with each post, and the map on the backdrop... (the latter feels a little bit dangerous)
#
kisik21
aaronpk: do your posts really contain your precise location, but only the city gets shown, or they contain only the city?
#
sknebel
his site receives a constant stream of GPS data, so it knows precisely where he is
#
sknebel
afaik the map in the background is the location with a limited number of digits in the coordinates to make it less precise
#
kisik21
and most of it is obscured by posts
#
sknebel
sure, but fetching the background image alone if I wanted to know where he is would be easy enough :D
#
kisik21
yeah
#
sknebel
now wonders how difficult "map image to location" reversal is to do automatically. probably not that difficult given a known map provider
#
GWG
Eddie, if there is a use case for me moving up post type support...
#
kisik21
I feel like that's OpenStreetMap
#
kisik21
the colors
#
kisik21
they feel openstreetmap-y to me
#
sknebel
heh, that's technically a license violation then
#
kisik21
do they require attribution?
#
kisik21
well, that
#
kisik21
that's either Google or OSM
#
kisik21
but Google Maps have more vibrant colors
#
[jgmac1106]
[aaronpk] is white male, exposing location safer due to privledge
#
Zegnat
His travel maps are OpenStreetMap via Mapbox, and do contain attribution. (That of course doesn’t mean the background map uses the same.)
#
Zegnat
“exposing location safer due to privledge” - that’s for sure. That is a big part of why I am comfortable publishing certain details about myself
#
kisik21
[jgmac1106]: still there are robbers who might wanna track him!
#
GWG
Why Are we talking about stalking aaronpk?
#
Zegnat
We are actually talking about properties that are part of your micropub/post JSON that you may want to keep private ;)
#
Zegnat
But that got lost somewhere in the scrollback, he
#
kisik21
because we started talking about private attributes in mf2 JSON, determined that precise location might be one, and by a pure coincidence aaronpk publishes details about his location on his indieweb site
#
kisik21
I hope his mention counter would not explode ><
#
kisik21
s/would not/won't/
#
GWG
I wasn't serious, just pointing out the disconnect
#
GWG
I have a proposal for hiding my location in defined zones
[Rose], jgmac1106, [Vincent] and [eddie] joined the channel
#
[eddie]
GWG no rush on the post-type query. I was just getting a sense for it. Really for my feature to be useful to people they will need to both support the post-type query AND follow posts
#
GWG
eddie, both pending for me
#
GWG
Have some other things to do first
#
GWG
But the secret is that if you excite me, I do it faster
#
[Vincent]
“if you excite me, I do it faster” - That’s a quote right there lol
#
GWG
Eddie, would you support an extended proposal of mine?
#
Loqi
[aaronpk] #1 Query for supported vocabulary
#
GWG
I want the query to expand to what properties and queries are supported
#
GWG
Right now you have to hope something is supported. Why not ask what extended properties and not show the option if the endpoint doesn't support it?
#
aaronpk
It did explode
#
GWG
Explode?
#
aaronpk
My mention counter lol
#
GWG
Oh.. sorry, lost context
#
GWG
All examples are always...what does aaronpk do?
swentel and snarfed joined the channel
#
petermolnar
kisik21: what's the trouble with jinja2?
#
kisik21
I need to port a lot of Hugo's html/template (go library) templates from my old site to jinja2
#
kisik21
manually
#
petermolnar
jinja2 is different
#
petermolnar
while you can use it the same way, ideally, jinja2 should be used the same way you build inheritance
#
snarfed
i remember porting lots of templates from django to jinja2. only half different...almost worse than entirely different
#
kisik21
thankfully its feature set is similar to html/template (actually, even bigger because it allows for arbitrary Python expressions in templates)
#
petermolnar
I ported PHP Twig to jinja, same problem - half different
#
kisik21
this new site is actually my first serious Flask project
#
kisik21
so I'm a total newbie in Jinja2, the only thing I have is Flask's manuals
#
petermolnar
you'll understand the inheritance thing
aleksip joined the channel
#
swentel
aleksip, it worked! :)
#
swentel
at least, I think that's you who send me something heh
#
aleksip
oh it did! excellent!
[eddie] joined the channel
#
[eddie]
GWG yeah I definitely think those are two important additions (properties like visibility and the query list). We should probably create a separate GitHub issue for those though, I think they will hide under “query for support vocabulary”
#
[eddie]
I’m planning on adding those into my server and then adding them into Indigenous
#
swentel
aleksip, there's only one weird thing, it should have create a comment on my blog post, but it didn't so I might have a bug haha
#
swentel
not in your webmention, on the receiving end something went wrong
#
aleksip
yeah, i was expecting to see the webmention on your page, so that is why i came here :)
#
aleksip
bug report: /admin/content/webmention gives me an error
#
swentel
hmm, interesting
#
swentel
oh aleksip, I see why, I did get the webmention, but not the content
#
aleksip
"PHP message: Uncaught PHP Exception Drupal\Core\Database\DatabaseExceptionWrapper: "Exception in Webmentions[webmentions]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM webmention_entity webmention_entity LIMIT 30 OFFSET 0' at line 1: SELECT FROM {webmention_entity} webmention_en
#
swentel
that table doesn't exist anymore (I changed that recently)
#
aleksip
i had already done some experimentation with a beta version, and just upgraded to beta-1, maybe that might cause some issues?
#
swentel
hmm beta1 ? or rc1 ?
#
aleksip
sorry, rc1
#
swentel
so that table is now 'webmention_received' (I changed that in beta4, was quite breaking release that one :/)
#
swentel
I think
#
swentel
if you delete the view
#
swentel
and the reimport it (just do single import and copy paste the yml)
#
swentel
that it should work again
#
swentel
s/the/then
#
swentel
I also know why it didn't create the comment, you're missing one class on the content, but I'll let you check the view first :)
#
swentel
oooooh
#
swentel
snarfed, I got a follower
[manton] joined the channel
#
snarfed
hey congrats! like, organically?
#
snarfed
everything work ok?
#
swentel
yep, got one through mastodon
#
swentel
came into my notification
#
swentel
A post didn't get through today though
#
swentel
but hard to debug
#
swentel
it's eaten by that stupid 202 from mastodon
#
aleksip
swentel: thanks the view works now!
#
swentel
snarfed, will try again, I had it with another post as well
#
snarfed
thanks! feel free to file issue(s), of course
#
aleksip
well if it is related to an upgrade from beta, maybe not super critical
#
aleksip
so what about that missing class? :)
#
swentel
snarfed, will do some experiments, my notes are fine, this is an article with summary etc
#
swentel
it worked before
#
swentel
so not sure why this is borking
#
snarfed
on all instances? or just some?
#
swentel
it sends it to mastodon.social only afaics
#
swentel
aleksip, ah yes
#
[eddie]
[manton] So the first way of including audio is in an h-feed. I mark up listen posts in an h-feed with an embedded h-cite on my site. I think that is fine because the h-cite is essentially saying this is not my content
#
[eddie]
However, with RSS and JSON Feeds there is no way to say "this is not my content"
#
[eddie]
and I think that is what [chrisaldrich] is doing in Micro.blog
#
[eddie]
that's tricky because there is no way to seperate the two
#
aleksip
swentel, have that open now
#
swentel
aleksip, then find the 'e-content on other textarea fields'. Because, if I'm right, your content is not stored in the 'body' field right ? You need to enter the machine name there of the field that holds that content (my guess is field_content)
#
swentel
snarfed, oh
#
swentel
not it's there
#
swentel
s/not/now
#
swentel
fediverse tsssss ;)
#
swentel
fedbridgy++
#
Loqi
fedbridgy has 1 karma over the last year
#
[eddie]
Because for example if h-feed was consumed by micro.blog and I were building a discover section, I would exclude anything that was within an h-cite
#
aleksip
swentel, you are correct :) that is set now.
#
aleksip
so should i try sending the webmention again now?
#
swentel
aleksip, ok I see the class now, I'm going to reprocess your webmention
#
swentel
and it will show up then
#
snarfed
huh so maybe mastodon just did some blocking async validation
#
[manton]
[eddie] I see. So, the issue is mostly that there's no good way to reference the MP3 file directly, since you're linking to a web page, not an audio file?
#
aleksip
ah, i see
#
swentel
aleksip, you could indeed send another one, but since I'm using the internal endpoint, I can tell it to reprocess it again
#
swentel
I just change the property field (will be an action soon in the view though heh)
#
aleksip
:)
[chrisaldrich] joined the channel
#
swentel
snarfed, no idea, I don't see anything in the code for that matter, so oh well
#
snarfed
heh, np. sorry for the trouble
#
swentel
oh, no worries
#
swentel
this is not your fault
#
swentel
but mastodon being just annoying
#
[manton]
[eddie] Looking at [chrisaldrich]'s feed, looks like there is a "u-listen-of h-cite" in the content HTML.
#
[eddie]
ohhhh that makes sense. So he’s just putting his mf2 in the rss content
#
[eddie]
so you *COULD* parse mf2 from rss content and ignore any h-cites you see. I know that might be a lot of overhead but anyone in the IndieWeb doing listen posts should be using h-cites around their content like that
#
[eddie]
good job [chrisaldrich];)
#
[manton]
I'll consider making that change. It still feels a little wrong to me to include the audio tag, though. If I link to someone's photo, do I include an img tag? Not usually.
#
[manton]
A counter-example is maybe YouTube embeds, which are included inline often.
#
aleksip
swentel, i had left the standard body e-content checkbox on, so there were two e-content classes in the page (did the indieweb module create the div?). unchecked it now.
#
[eddie]
That’s true. Although if you “reposted” a social media post with an image, it would repost the image
#
[eddie]
It just makes sure to attribute the person correctly
#
[eddie]
so I think the biggest danger is the UX around ownership and making sure we show it is not produced by us
#
[eddie]
easier on our own website, trickier when we syndicate into something like Micro.blog
#
swentel
aleksip, oh, yeah, I see the field
#
swentel
is that a node field ?
#
[eddie]
I personally have no chosen to syndicate any listen posts into Micro.blog. I’ve occasionally done a watch post (which is really just the cover art of the tv show or movie and the name of the piece)
#
Loqi
[swentel] Send me a webmention with Drupal!
#
aleksip
swentel :)
#
swentel
ok, let me reply now
#
aleksip
swente, yes it is a node entity reference revisions field
#
swentel
hmm interesting that the class is on there, that probably shouldn't happen
#
swentel
it's outside the h-entry class, so it's not /that/ problematic
#
swentel
but it's weird
#
swentel
ok, you should have a webmention if all went fine
#
swentel
it will be unpulished though, so it needs to be processed
#
swentel
s/so/and
#
swentel
which either happens with cron or drush
#
swentel
whether it creates a comment or not depends on the configuration though
#
aleksip
swentel, hmm, i ran cron but don't see it
#
swentel
aleksip, is there an entry ?
#
swentel
at admin/content/webmention ?
#
aleksip
swentel, yes that is where i looked but "No webmentions received yet."
#
swentel
hmm is there anything in the logs ?
#
aleksip
admin/reports/dblog just says that indieweb_webmention_cron() was started
#
swentel
hmm there should have been an entry already
#
swentel
thinks
#
swentel
aleksip, my guess, but not 100% sure, is that the header tag for webmention is non https
#
swentel
it says http://www.aleksip.net/webmention/receive, but you go to it rewrites to https
#
swentel
so I'm guessing sending trips on that
#
aleksip
ah
#
aleksip
is there an easy way to change the protocol
#
swentel
well, I'm not sure why it says http, proxy thing or so ?
#
swentel
I guess you toggled the 'Expose webmention link tag' checkbox
#
aleksip
yes :)
#
swentel
very interesting
#
aleksip
so maybe i'll just add it manually?
iasai joined the channel
#
swentel
yeah, if you could try that
[Vincent] joined the channel
#
sknebel
rel=canonical etc also point to http://
#
swentel
url is the same, protocol should be https though
#
sknebel
does drupal have a global base_url setting or something?
#
sknebel
that might need to be set to https then
#
aleksip
swentel, manually set in html.html.twig now
#
swentel
ok I see it
#
swentel
will send another one
#
swentel
processing ..
#
swentel
and should be there (fingers crossed)
#
swentel
ah yes, response is better now
#
swentel
got a 202 now
#
aleksip
received! :)
#
swentel
ok cool
#
swentel
before you process it
#
aleksip
not yet... and i think i configured processing on cron run, so it seems it is already processed...
#
swentel
aah hehe
#
aleksip
oops!
#
swentel
no problem
#
swentel
if you click on edit
#
swentel
do you see my content ?
#
swentel
let's first check that
#
aleksip
i do!
#
swentel
awesome
#
swentel
now, let's configure comments
#
aleksip
rsvp and html comment were empty
#
swentel
that's normal
#
swentel
text should be there
#
swentel
something like 'No problem, thanks for testing it out! :)'
#
aleksip
it was there yes!
#
swentel
ok, now, to get comments working (if you want that of course)
#
swentel
there's 2 steps for that
#
aleksip
so i just enable comments? does not seem to be other things i can change?
#
swentel
1. you need to add a webmention reference field on comments. The module comes with a storage field for it (indieweb_webmention)
#
swentel
(although, that might depend on the version you started with maybe)
#
swentel
(good material for my second article hehe)
#
aleksip
done!
#
swentel
ok, step 2
#
swentel
s/got/go
#
swentel
and there enable it, select the right fields (they will probably be ok by default)
#
swentel
and whether you want the comment to be moderated or not
#
swentel
I always moderate
#
swentel
that's safer for now :)
#
aleksip
yes :) done!
#
swentel
edit the webmention
#
swentel
ok, step 3
#
aleksip
edit form open
#
swentel
change 'Type' to 'webmention' and at the bottom, toggle the publishing status so it's unpublished again
#
swentel
type will now say 'entry'
#
swentel
that needs to become 'webmention' again
#
swentel
and together with unpublished is the trigger to (re)process
#
swentel
wait and
#
swentel
in 'Target'
#
swentel
that needs to be the full canonical url
#
swentel
(will streamline that better in the future with a view bulk action)
#
aleksip
it was the full canonical already!
#
swentel
ah hmm
#
swentel
and which protocal ?
#
swentel
because this can matter
#
aleksip
https
#
swentel
interesting
#
swentel
you have a good setup for testing :-)
#
swentel
anyway
#
swentel
it should now create a comment normally
#
aleksip
ok so i ran cron and now it changed back to a published entry
#
aleksip
but no new comment?
#
swentel
and is there a comment in the queue ?
#
aleksip
no...
#
swentel
I think I know why
#
swentel
can you edit again
#
swentel
and the canonical url you have
#
swentel
change the protocal to http://
#
swentel
(why do I keep mistyping that word)
#
swentel
so: protocol to http, type to 'webmention' and unpublish it again
chrisaldrich and [jgmac1106] joined the channel
#
aleksip
swentel, now the type and property changed to no_link_found
#
swentel
of course :(
#
swentel
one second
#
swentel
need to change it on my end
#
swentel
hmm it's on non http://
#
swentel
s/non//
#
swentel
oh man, this is tricky
#
aleksip
i'm afraid i'll have to leave now for about 30-45 min but will be back
#
aleksip
anyway, huge thanks for all the help and of course the module itself!!!
#
swentel
yeah, thanks for testing as well :)
#
swentel
your setup has an interesting challenge which I need to think about whether I can fix that or not ;)
#
swentel
internally, drupal thinks it's on http:// which is why the matching doesn't work right now for creating a comment
#
aleksip
ah, so how do i configure drupal to think it is on https? :)
#
swentel
good question
#
swentel
I swear there was a base_url in D7
#
swentel
but not anymore in D8 it seems
#
swentel
which you can set in settings.php
#
swentel
it does indeed sound like a proxy thing
#
[jgmac1106]
[manton] [eddie] is this correct h-feed for a podcast: view-source:http://stuffedworld.dogzone.jgregorymcverry.com/
#
[eddie]
almost
#
[eddie]
There is an h-entry at the top of the page that shouldnt be an h-entry
#
[eddie]
then the author and name would be on the feed
#
[jgmac1106]
and I agree I would link to the page of the photo and the page of the podcast or podcast episode rather than the media file...unless a repost...but that is different
#
[eddie]
the rest is looking good
#
[jgmac1106]
perfedt will make change after class, thx
#
[eddie]
oh and for the episodes the content “Meet my dolphin friend” is marked up as a summary but is not in the content
benwerd joined the channel
#
[eddie]
content would be show notes, description, etc. So what is marked up as p-summary should actually just be in the content
#
[jgmac1106]
Ahh I see thank you.....really only built the page to apply to Itunes and PocketCast but then realized could end up being a fun thing others want
aleksip and [kevinmarks] joined the channel
#
aleksip
swentel, ok so i'm back and looks like i've lost the log as i'm using a web gateway... :/
#
sknebel
aleksip: chat log? we have them :) https://chat.indieweb.org/dev/
aleksip joined the channel
#
swentel
aleksip, so yeah, we need to figure out how we can tell your drupal install that everything is https, this is the reason why the comment creation currently fails
#
swentel
but it's tricky in D8 :/
#
aleksip
ouch
#
aleksip
but your site is on https too? :)
#
aleksip
you have http working too?
#
aleksip
hmm, this nice web interface keeps telling me it is connecting to the chat room...
#
aleksip
...but seems to work anyway
#
sknebel
huh, I totally hadn't realized that WebSub *only* knows fat pings. thats of course a potential issue for private feeds etc
#
swentel
aleksip, well, remember the webmention url. the protocol was http:// so internally, somehow when building the request, drupal has no idea it's on https
#
swentel
if you look at property="og:url", you also see that the protocal is http
#
swentel
protocOl
#
swentel
my god, I don't know why I keep mistyping that one
#
swentel
there might be one ugly hack though
#
swentel
tricking symfony
#
swentel
by setting following line in settings.php
#
swentel
$server['HTTPS'] = 'on';
#
swentel
that shouldn't result in any problems, I think ...
#
aleksip
:) ok i'll try that!
#
swentel
if you turn it on, I quickly see it in the source for that canonical url if it works
#
aleksip
ok, i have now added that to my site's settings.php
#
aleksip
copypasted from here
#
swentel
hmm, could you clear the cache
#
aleksip
but the /webmention/receive url is now hardcoded in my html.html.twig...
#
aleksip
is that what you expected to change?
#
aleksip
should i remove that and check the box in the module settings again?
benwerd joined the channel
#
aleksip
or is it something else?
#
aleksip
have now cleared the cache
#
aleksip
have now cleared the cache
#
aleksip
have now cleared the cache
#
aleksip
have now cleared the cache
#
aleksip
oh yes the og:url...
#
aleksip
does not seem to have changed... :(
#
aleksip
i use the metatag module, maybe i could set it hardcoded with that?
#
swentel
well, that's not the problem there
#
swentel
so my 'hack' doesn't work
#
swentel
damn :)
#
swentel
maybe we can set trusted hosts / proxy
#
aleksip
how have you set up your own site?
#
aleksip
i'll remove the hack from settings then
#
swentel
well, there's no proxy or so for me
#
aleksip
ah yes
#
swentel
I think that's the thing here
#
aleksip
yes i use a tls termination proxy in nginx
#
swentel
I know settings.php has a lot of options for setting (reverse)proxy
#
swentel
but not sure exactly where to change, or if that's the possible fix
#
sknebel
the pages I posted above looked like you can correct it through setting the right headers in the proxy
#
aleksip
ok, thanks, i'll have a look soon, thanks again for all the help. i could also stop using the proxy for my site if nothing else helps!
#
swentel
feel free to ping me in case it's working
#
swentel
then we can do a reprocess of the mention
jgmac1106, benwerd and jackjamieson joined the channel
#
kisik21
It feels kinda weird that the function to render my h-feeds has more Flask @app.route(<...>) decorators than actual code
iasai, [eddie], snarfed, benwerd, swentel and [kevinmarks] joined the channel
#
[kevinmarks]
[eddie] there is a way to express that you're quoting another feed in Atom - the source stuff. You could import that into rss with a namespace
#
snarfed
also https://github.com/snarfed/granary/issues/137 might help. i gladly accept contributions and PRs!
#
Loqi
[snarfed] #137 RSS input
jackjami_, [Khurt] and snarfed joined the channel
#
kisik21
Today I learned that mf2py can find webmention endpoints for you: mf2py.parse(url=url)["rels"]["webmention"]
#
kisik21
That is amazing
snarfed joined the channel
#
KartikPrabhu
rel-parsing is included in the mf2 parsing
#
aaronpk
do the mf2 libraries also find the endpoint advertised in an http header?
#
KartikPrabhu
no mf2py afaik
#
Zegnat
The parser spec only runs on the document contents, so they don’t look at transport headers
#
Zegnat
As far as I know, that is. PHP also doesn’t keep any headers around even if it was used for the fetch
#
snarfed
but libraries easily could (and arguably should). extracting endpoints from headers is just as well specified as parsing.
#
Zegnat
Only libraries that handle fetching could do that. Do all of them do that? (I specifically do not know about the node and go once)
#
snarfed
no, they could easily accept and inspect headers given to them by the client
snarfed and benwerd joined the channel
#
kisik21
Zegnat: mf2py handles fetching if you pass an URL.
#
Zegnat
snarfed, that is true, that feels outside of the mf2 parsing spec scope though. Parsing things that aren’t part of the document
#
snarfed
again, yes, outside the spec, but well worth doing by *libraries*
#
aaronpk
it's like how the spec for an electrical outlet says how big the prongs are and how far apart, and then a manufacturer building a component that is just the prongs and you have to connect your own electrical wire to it. nobody wants that, people want a complete electrical cord
#
snarfed
wow that's quite an analogy
#
[kevinmarks]
it is how plugs work in the UK though
#
snarfed
or, "batteries included" :P
#
aaronpk
that's maybe a simpler one :)
#
aaronpk
[kevinmarks]: i seriously doubt most people who use electrical devices do that
#
[kevinmarks]
you do get moulded power cables with plugs on, yes, but they still need fuses in, so have moving parts.
#
Zegnat
My problem with adding this to libraries without adding it to the spec is that not all libraries that offer to fetch the data would result in the same output. While when all of them just fetch and then parse the document body according to spec result in compatible output
#
aaronpk
Zegnat: i don't think it's terrible if a library in one language happens to implement multiple specs
#
Zegnat
So it would have to be some sort of opt-in toggle
#
aaronpk
this is still specced behavior, it's just not the microformats spec, it's the link rel parsing spec
#
[kevinmarks]
making mf2py inspect headers if it is fetching is a reasonable feature request, but I'm not sure putting the rels in that structure would be ideal
#
Zegnat
I agree aaronpk. But if it means library1::fetch($url) may report a different URL as the first value for a specific rel than library2::fetch($url) things might become hard to explain
#
snarfed
i don't think anyone proposed injecting header endpoints into rels
#
Zegnat
Ah, that was what I was thinking was being proposed!
#
Zegnat
My apologies then
#
snarfed
libraries' top obligation by far is to do the best, most useful things for their clients. there's little to no obligation to behave the exact same way as other libs in other languages. they should ideally follow specs, yes, but they can and should do other things too, when that's useful
#
snarfed
heh ok
#
[kevinmarks]
mf2py preserving (and potentially parsing) headers seems reasonable
[eddie] joined the channel
#
Zegnat
Preserving and parsing: yes!
#
Zegnat
Inserting them in the rels object (which is otherwise specced by the mf2 parsing spec): only with very clear opt-in.
#
Zegnat
That’s basically my argument :)
#
[eddie]
Hmm yeah that confused me as well
#
[kevinmarks]
the rels part was originally for rel-based microformats like xfn, but it is very handy for endpoints too
#
kisik21
please remind me where is the authorship algo tester on glitch? I forgot the url
#
kisik21
thanks
#
kisik21
Would most h-card implementations in the wild pick up a canonical h-card on my homepage if I markup authorship on a post like this? <a class="u-author h-card u-uid" href="https://fireburn.ru">Vika</a>
#
kisik21
if u-uid property on h-card represents a canonical URL, it probably needs to be picked up by compliant consumers
#
aaronpk
u-uid doesn't do what you think it does there
#
aaronpk
that will turn your h-card into the uid of the thing it's inside
#
kisik21
is this better? <span class="u-author h-card"><a class="u-uid u-url" href="https://fireburn.ru">Vika</a></span>
#
aaronpk
yeah, tho i'm not sure what the uid is trying to accomplish there anyway?
#
kisik21
I want the implementations to grab a canonical h-card
#
aaronpk
does this describe what you're going for? https://indieweb.org/representative_h-card
#
aaronpk
it's subtly different than authorship
#
kisik21
I think my second variant is authorship+representative h-card. If I understand correctly, consumers should go to the u-uid to get full data for an h-card... am I right?
#
aaronpk
that is described as one of the steps in /authorship
#
aaronpk
which is how to find the author of a post
#
kisik21
but I am providing an h-card, which means that an implementation that doesn't process representative h-cards might or might not go to my homepage for an h-card (it depends on whether it will pick either author.value or author.properties.uid)
#
kisik21
s/pick/pick up/
#
kisik21
if it picks up one of these two, my avatar would be shown there. If it doesn't, my h-card would be the bare-bones one.
#
kisik21
so the question boils down to: how frequent is representative h-card support on IndieWeb?
#
aaronpk
well i would say there are a fair number of people who are doing what you describe, having a minimal h-card on their posts but more info available on their home page
#
kisik21
with exact same markup?
#
kisik21
will p3k pick up an h-card like this when showing me in the comment section?
#
aaronpk
yep it uses XRay which has that logic built in
#
aaronpk
you can test by putting one of your post permalinks into https://xray.p3k.app
#
kisik21
that exact markup is not used in production by me
#
kisik21
but it will be soon
#
kisik21
aaronpk: but the fact that XRay supports this probably means this is widespread. How many people use XRay?
#
kisik21
probably almost every PHP project
#
aaronpk
the wordpress plugins do not, but IIRC the drupal one does?
#
snarfed
the vast majority of indieweb users are on wordpress or known, which generally don't use xray
#
GWG
Do you want me to investigate?
[tantek] joined the channel
#
GWG
I am working on Parse This, the parser two out of three projects use on WordPress
#
kisik21
does it use representative h-cards in authorship algorithm?
#
GWG
kisik21, it should
#
kisik21
then we have roughly 66% support for WordPress
#
GWG
But whether I should improve the code is always a question
#
GWG
kisik21, the other implementation should also
#
GWG
I was talking about using the same code for both
#
kisik21
I don't know! for me - it's good if it at least parses my u-author+h-card{u-uid} (like the one a dozen or two messages up)
#
GWG
What is the url I need to check?
#
Loqi
It looks like we don't have a page for "url I need to check" yet. Would you like to create it? (Or just say "url I need to check is ____", a sentence describing the term)
#
GWG
Hate when I trip Loqi
#
kisik21
if you see an author property with an h-card which contains u-uid, retrieve my h-card from u-uid
#
GWG
If not, I will certainly fix it.
#
kisik21
ok! thanks~
#
GWG
I was just fiddling with the code to optionally follow the author uid
#
sknebel
if multiple widely used projects do that, it should probaly be integrated into the authorship algorithm?
#
[tantek]
[jgmac1106] re: "not technically needed for webmentions" - I think you meant "not theoretically needed" - yes the spec has that option of doing / processing such "raw" webmentions but in practice, *technically* microformats *are* needed for user-meaningful webmention interactions
#
[tantek]
aaronpk had a good answer also about this too: https://chat.indieweb.org/2018-12-05/1544015342644700
#
Loqi
[aaronpk] swentel: I made my WebMention intro post primarily about Microformats because that's how you get webmentions to look good, otherwise they aren't terribly interesting. I say stick with that. Helps focus on the user benefit.
#
[tantek]
manton, you are correct about the concerns / pushback about "listen" posts including attachments in RSS or audio elements in HTML.
#
[tantek]
a plain "listen" post should not do anything like that