#dev 2020-08-01

2020-08-01 UTC
geoffo and [tw2113] joined the channel
#
jacky
undelete should be easier than a delete tho from an editor's perspective tbh
#
jacky
(not from the micropub endpoint tbh)
[arush] and [tw2113] joined the channel
#
[tw2113]
Jacky I’m suddenly reminded of a time when i pasted a base64 encoding of some aspect of jQuery, into an IRC room
#
jacky
lmfaooo
#
jacky
TikTok << Downloader tool for one's TikTok profile https://www.fyp.rip/
#
Loqi
ok, I added "Downloader tool for one's TikTok profile https://www.fyp.rip/" to the "See Also" section of /TikTok https://indieweb.org/wiki/index.php?diff=71778&oldid=70987
#
aaronpk
That's so cool
nickodd, [fluffy], dckc, dhanesh95, moppy and vika_nezrimaya joined the channel
#
vika_nezrimaya
Oh no. I am completely infuriated
#
vika_nezrimaya
Why the heck a styled div and input don't look the same with the EXACT SAME border settings?
swentel joined the channel
#
vika_nezrimaya
This is impossible, this is literally impossibl
#
vika_nezrimaya
I tell you, I am using the exact same CSS that the inspector shows to me as a UA stylesheet
#
vika_nezrimaya
which means that the UA stylesheet is... WRONG?
#
vika_nezrimaya
How is this possible?!
#
vika_nezrimaya
This is impossible...
#
vika_nezrimaya
I am completely lost and I do not understand how styling an item with the exact same CSS as a browser stylesheet will result in a different result.
[KevinMarks] joined the channel
#
[KevinMarks]
Inputs have different default styles in different browsers
#
vika_nezrimaya
But I even set `appearance: textfield`, `appearance: searchfield` and generally everything I could do!
#
vika_nezrimaya
wait
#
vika_nezrimaya
oh no it didn't work again :c
#
vika_nezrimaya
maybe I need more coffee?
#
hirusi[m]
Is there a way for me to check if a Micropub endpoint supports the slug extension?
#
vika_nezrimaya
As far as I know, your only way is to hope it does. If it doesn't, it simply ignores the "mp-slug" command and does its own thing with the URL.
#
[KevinMarks]
You can see if your slug is in the location returned after posting, but I don't think you can check in advance
#
hirusi[m]
Thanks, Kevin. I thought so too... The only thing to do would be to remember it for every user, which is not fun.
#
hirusi[m]
vika_nezrimaya: Thanks, I'm relying on that hehe
#
vika_nezrimaya
I definitely need more coffee. Several attempts to parse rel-urls from a page, including a JS library (which doesn't work with ES6 modules yet) and two endpoints with CORS not configured, all obviously failed
[jgmac1106] and [grantcodes] joined the channel
#
[grantcodes]
hirusi: there is an experimental query for supported properties. But probably only implemented by 1 or 2 people
#
jacky
you can check for what properties a Micropub endpoint support by checking if `mp-slug` or `slug` is in `?q=config` https://micropub.spec.indieweb.org/#configuration
#
sknebel
jacky: that's not mentioned at that link?
#
jacky
it's not but IIRC extensions would show up there, no?
#
jacky
or am I misunderstanding what q=config can do?
#
sknebel
they could, but nothing says they do afaik
#
hirusi[m]
Yeah, I don't see anything there, and I didn't expect to
#
hirusi[m]
If this is the case, wiki needs to be updated and projects will need to be informed
#
hirusi[m]
grantcodes: you have in fact left a comment about this in oct 2019 :)
#
hirusi[m]
> Then there are lots of other things that may not be supported but are not necessarily dangerous - eg. mp-slug, category etc etc. So it would still be nice to be able so remove redundant UI components in micropub clients.
#
hirusi[m]
This is exactly my use case.
nickodd joined the channel
#
@VincentTunru
Just realised that I never really shared that I wrote a small npm package to send #WebMentions a while ago. It's automatically tested against the full https://webmention.rocks test suite, work in both Node and the browser, and includes type definitions. https://www.npmjs.com/package/webmen
(twitter.com/_/status/1289585902893912066)
[tb] joined the channel
#
[tb]
Is the the `q=config` endpoint on a Micropub server supposed to allow unauthenticated requests? The spec seems to indicate it should be authenticated just the same as any other request, but I was racking my brain as to why iA Writer couldn't connect to my server this morning and then realized upon inspecting the request that it's not even sending the token that I gave it in its initial `/micropub?q=config` request
#
hirusi[m]
Is syndicated content supposed to carry a link to the original content page (our sites) - or is that optional?
#
aaronpk
[tb]: oh that's interesting. yeah it's supposed to be authenticated
#
[tb]
I shot them an email about it
#
aaronpk
hirusi[m]: including a link back to the original is helpful in many cases, but on sites like twitter there's a pretty big split on opinions on whether it's a good idea
[KevinMarks] joined the channel
#
[KevinMarks]
If the original fits in a tweet anyway, then for people who click through expecting more, they're disappointed.
#
[tb]
I suppose I'll just keep developing my server to spec — I'd really like to use iA Writer directly in my workflow but not the end of the world
#
hirusi[m]
yeah, my idea when writing notes would be to keep it under 280 or 500 depending on if im syndicating to just mastodon, or twitter as well.
#
[KevinMarks]
Also, if you set up the twitter/fb preview metadata, then the link can e d up showing the tweet text again
#
hirusi[m]
KevinMarks: YES!!
#
hirusi[m]
but how is it configured? is this happening in my case because I'm using brid.gy to syndicate?
#
hirusi[m]
i.e. link back being included
#
[KevinMarks]
And if you put it in the title and the content, you get 3 copies of it, and a link to the same text again
#
hirusi[m]
Wow, thank you! I just thought this was necessary and it was really turning me off.
#
[tb]
Oh wow iA Writer's team responded to me right away, they said that the `Authorization` header should indeed be getting sent in the `q=config` request so now I'm about to jump down the rabbit hole and see what in my chain of things is stripping that header lol
#
aaronpk
oops heh
#
aaronpk
hirusi[m]: yeah i stopped including the link in my tweets a while ago for all the reasons [KevinMarks] mentioned
#
aaronpk
hm is this documentedon the wiki...
#
aaronpk
there are some reasons *to* include the link... https://indieweb.org/POSSE#Why_Link_To_Your_Original
#
aaronpk
seems like we need a "Why Not" section :)
#
[tb]
This is strange though... what would be stripping an Authorization header lol
#
[tb]
Ngrok isn't getting it in its own request inspector so the only culprit upstream from there would be CloudFlare
#
aaronpk
[tb]: cloudflare seems like a likely culprit...
#
[tb]
(My local dev environment is my Rails app served up from my machine through Ngrok and then put behind CloudFlare so I can simulate the production environment more closely)
KartikPrabhu and [chrisaldrich] joined the channel
#
hirusi[m]
aaronpk: thanks aaron, lots of stuff to go through.
KartikPrabhu joined the channel
#
[tb]
Hrm I don't think I believe them now... made a manual curl request that followed the same signal path and the Authorization header was not stripped
#
aaronpk
Can you try bypassing cloudflare?
#
[tb]
Hehe I was just trying that actually and since the ngrok direct CNAME is a self-signed cert, iA Writer gives me an SSL error and asks me if I want to proceed anyway, but then does nothing if I hit Ok lol
#
[tb]
This is turning into more of a rabbit hole than I wanted now though and I'd much rather be refactoring the awful looking Ruby code that I wrote for my Micropub prototype server
#
GWG
[chrisaldrich] in the WordPress Popup is talking about the idea of webmentions to original posts from syndicated copies on sites that may or may not support webmentions. Interesting idea
[Chaitanya] joined the channel; nickodd left the channel
#
lahacker
aaronpk you had mentioned maybe doing things differently with webmention.io had you started fresh today -- did that extend to XRay?
#
aaronpk
i'm happy with the input and output of XRay. (the code needs some refactoring but i don't really care about that)
#
aaronpk
i ended up actually making webmention.io use XRay for parsing, so its .jf2 URLs are all actually XRay's output
#
aaronpk
but even more than that, I'm not sure I would launch a standalone webmention receiver API service again. I'd want it to include more UI around it, possibly integrated with a reader, things like that
#
lahacker
ah, gotcha
#
lahacker
before i put my PHP cap back on maybe you can point me to the correct places --
#
lahacker
does https://github.com/aaronpk/XRay/blob/master/lib/XRay/Formats/Mf2.php parse html->mf2 and then mf2->jf2?
#
lahacker
or is there somewhere else that takes the output from their and turns it into jf2
#
aaronpk
that Mf2 class is the one that does all the logic of authorship and such
#
aaronpk
the data that it returns ends up being jf2 format
#
lahacker
does it ever wind up in the intermediate parsed mf2 format?
#
lahacker
i think that expects the parsed mf2.. ok i got it
#
lahacker
thanks
#
aaronpk
yeah the input to that function is parsed mf2
#
aaronpk
the HTML class parses the HTML and turns that into mf2 json
leg and geoffo joined the channel
#
GWG
The thing that takes mf2 json and outputs the cleaned up simplified jf2 is called a what?
#
lahacker
GWG class method?
#
GWG
No, it isn't a parser...
#
GWG
It's more what you call that type of code
KartikPrabhu joined the channel
#
lahacker
ah
#
lahacker
that's a good question -- i feel like i'm unearthing some untouched documentation on this matter of post-processing
#
lahacker
interpreter, translator, ..
#
aaronpk
transmogrifier :D
#
lahacker
hah
#
lahacker
i love how strangely familiar that word was at first sight
[KevinMarks] joined the channel
#
[KevinMarks]
A munger?
#
lahacker
ah, yes, forgot about that one
[Chaitanya] joined the channel
#
[KevinMarks]
I remember sending citations in to the OED for munger in the 1990s
sp1ff and Toomim joined the channel