#dev 2018-04-23

2018-04-23 UTC
eli_oat joined the channel
#
jacky.wtf
edited /website-analytics (+2) "/* Matomo */"
(view diff)
[eddie] joined the channel
#
[eddie]
That’s awesome [cleverdevil]! You have to start somewhere
renem, snarfed, AngeloGladding and [eddie] joined the channel
#
[eddie]
!tell aaronpk I’m thinking about adding embedded reply context in the Micropub request that you make when you like, reply or bookmark a post in Indigenous. The reason for this is some stuff won’t be able to have reply contexts from my site if the content came from anything but h-feed.
#
Loqi
Ok, I'll tell them that when I see them next
#
[eddie]
!tell aaronpk my question is, would that break existing implements, so should it be hidden behind a settings flag?
#
Loqi
Ok, I'll tell them that when I see them next
#
[eddie]
!tell aaronpk Of course that would only happen if the user’s Micropub supports JSON format
#
Loqi
Ok, I'll tell them that when I see them next
[mrkrndvs], cweiske, tantek, [chrisaldrich] and barpthewire joined the channel
#
loqi.me
created /david.shanske.com (+35) "prompted by tantek and redirect added by tantek"
(view diff)
[pfefferle] joined the channel
tantek joined the channel
#
loqi.me
created /tantek.com (+28) "prompted by tantek and redirect added by tantek"
(view diff)
#
vanderven.se martijn
edited /podcast (+1048) "/* Brainstorming */ Section: How to create a subscribe link"
(view diff)
[kevinmarks] and Mandrake joined the channel
#
vanderven.se martijn
edited /podcast (+201) "/* How to create a subscribe link */ WordPress recommends the itpc scheme"
(view diff)
Mandrake and DenSchub joined the channel
#
jonnybarnes.uk
edited /Woodwind (+87) "Site seems to be owned by somene else now"
(view diff)
schmarty1, jjuran and Jack joined the channel
#
@cathieleblanc
Working on #IndieAuth for my new #IndieWeb site. Had to completely delete the web site from my Twitter profile and then add it again in order to get the rel=me to be recognized by IndieAuth.
(twitter.com/_/status/988358258300768256)
Cathie and eli_oat joined the channel
#
@cathieleblanc
The problem with #IndieAuth signin for #IndieWeb was that I had mismatches between http and https. Need to be consistent!
(twitter.com/_/status/988375735982350336)
eli_oat, [jgmac1106] and DenSchub joined the channel
#
deeden.co.uk
edited /Microsub-spec (-31) "Update Monocle tests link to Aperture"
(view diff)
[kevinmarks], swentel and DenSchub joined the channel
#
petermolnar
note to self: if the post is in the future, don't send webmentions...
#
cweiske
fortunetelling webmentions
#
petermolnar
I missed and if self.is_future: walk away condition
#
cweiske
reminds me of the magic letter sorting machine in "going postal"
#
petermolnar
the way I handle future posts is that I render them in advance, but they are excluded from sitemap, categories, etc, so unless you know the exact url, it's supposed to be hidden
jeremycherfas joined the channel
#
aaronpk
argh, the subtome follow button doesn't actually have way to give you the RSS feed URL itself
#
Loqi
aaronpk: [eddie] left you a message 7 hours, 39 minutes ago: I’m thinking about adding embedded reply context in the Micropub request that you make when you like, reply or bookmark a post in Indigenous. The reason for this is some stuff won’t be able to have reply contexts from my site if the content came from anything but h-feed.
#
Loqi
aaronpk: [eddie] left you a message 7 hours, 38 minutes ago: my question is, would that break existing implements, so should it be hidden behind a settings flag?
#
Loqi
aaronpk: [eddie] left you a message 7 hours, 37 minutes ago: Of course that would only happen if the user’s Micropub supports JSON format
#
cweiske
aaronpk, http://cweiske.de/tagebuch/ - see the follow button
#
cweiske
the feed URL is the href of the "follow" link
#
aaronpk
that looks fine on yours
#
cweiske
I took care of offering a non-js link value
#
aaronpk
ah nice, so that's not the default?
#
cweiske
no, it's not the default
#
cweiske
I commented on that 3 years ago :)
#
sknebel
nice! I wonder if you can have it do something when it fails to load the subtome-JS? (uBlock didn't like it, but of course at that point the click has already been captured and cancelled...)
#
cweiske
the onclick JS can return true/false to control event propagation
#
cweiske
so it could theoretically "return true" to keep the href working in error cases
#
sknebel
yeah. problem is that it doesn't know if the inserted script loads properly in error cases
#
sknebel
that's always an issue with selective blocking
#
cweiske
global var definition checking that's defined inside the js to load?
#
sknebel
maybe. but in this case the script is only loaded on click, and the event handler can't wait for it to complete. an option might be to extend it that the included script has an onerror(?) handler that then does something, e.g. show a "failed to load subtome script, click here for direct link to feed" around the button?
#
sknebel
or redirect to the feed url
AngeloGladding, iasai, snarfed and [grib] joined the channel
#
[grib]
Anyone ever try uploading an image to a micropub media endpoing from the Workflow app on iOS? I can't quite figure out how to fill out the form that "Get URL Content" form to allow it
#
aaronpk
yea! I have that set up
#
aaronpk
it was a trick
#
skippy
can anyone help me understand the CORS implications / requirements of https://github.com/jjdelc/grumble ?
#
Loqi
skippy: Zegnat left you a message 1 day, 2 hours ago: Hopefully http://microformats.org/wiki/microformats2-json#properties will answer all your questions about how to put properties in a mf2 JSON format.
#
Loqi
[jjdelc] grumble: Micropub client
#
[grib]
Awesome, thanks
#
aaronpk
new indielogin.com is starting to look good
[snarfed] joined the channel
#
[snarfed]
[aaronpk]++ ! not launched yet?
#
Loqi
aaronpk has 138 karma in this channel (1622 overall)
#
aaronpk
nope not yet
#
aaronpk
I decided to do a separate pass through the project where I focus on writing clear error messages, so that's next
#
aaronpk
for now it just aborts with a text error so I can test the functionality and won't be tempted to launch it ahead of having good errors :)
#
skippy
[snarfed]: that doesn't really tell me much. Or if it is supposed to, I'm not figuring it out.
#
skippy
moreover, I'm unsure why I need CORS if I've installed grumble on the same server as my Micropub endpoint? There's no cross-origin request going on there: it's all the same domain.
[pfefferle] joined the channel
#
Zegnat
If it is all on the same domain, there should not be any CORS implications, no
[jgmac1106] joined the channel
#
ben_thatmustbeme
is it messing up with a www vs non www-?
Mandrake and [kevinmarks] joined the channel
leg, [miklb] and [matthilt] joined the channel
#
ben_thatmustbeme
hmm, okay, that would have been a major issue, haven't run job processor in almost a year
#
ben_thatmustbeme
lots of referrers to parse, a number of webmentions to process
dougbeal|mb1 joined the channel
#
www.svenknebel.de
edited /PubSubHubbub (+0) "fix double redirect"
(view diff)
KartikPrabhu, tantek, snarfed and [grib] joined the channel
#
[grib]
[aaronpk] look is like your method been working all this time but nothing is being returned (from Known). Getting closer...
dougbeal|iOS joined the channel
#
[grib]
*looks like
#
aaronpk
sorry what is working?
#
[grib]
Uploading images to the Micropub endpoint from Workflow
#
@nhoizey
↩️ My current Jekyll build time is more about 2500 seconds… 😭 Jekyll Assets for CSS and JS, my plugin for images with Cloudinary, plugins for YouTube videos, plugin for Webmentions, etc.
(twitter.com/_/status/988455647573405698)
#
aaronpk
oh good!
#
Loqi
[11ty] eleventy: A simpler static site generator. An alternative to Jekyll. Transforms a directory of templates (of varying types) into HTML.
#
tantek
what is eleventy
#
Loqi
It looks like we don't have a page for "eleventy" yet. Would you like to create it? (Or just say "eleventy is ____", a sentence describing the term)
#
tantek
is anyone here using it KevinMarks?
#
[kevinmarks]
nhoizey said he was trying it
#
Loqi
[11ty] eleventy-import-disqus: A manual process to import existing exported disqus.xml content into an eleventy blog.
[miklb] joined the channel
#
tantek
snarfed, no matter, you have github.com/bridgy :D
#
snarfed
tantek++ thanks to you!
#
Loqi
tantek has 29 karma in this channel (429 overall)
#
snarfed
a username in a silo is still a wonderful thing to be
#
snarfed
(something like that, forgot the exact quote i'm paraphrasing)
#
tantek
jmac, in addition to the manual WM entry textfield, the second textfield (presumably for a Vouch URL) could be created/enabled by JS dynamically upon entering a URL (onblur) in the first, and possibly even quickly checking it with your server's auto-approve domains/webmentions list first and providing that feedback with a nice green "send webmention" button.
cweiske joined the channel
#
Loqi
[cweiske] #10 micropub-android: Missing element "scope" in authorization_endpoint response
#
cweiske
I get "Could not verify authorization: Missing element "scope" in authorization_endpoint response" from your app
#
cweiske
but the spec says the auth response does only include "me"
#
aaronpk
something else is fishy here
#
aaronpk
the android app should not be trying to verify the authorization code, it should talk directly to the token endpoint to get the access token using the authorization code
snarfed joined the channel
#
@nitinthewiz
Turning off Disqus comments on my WP blog has meant that I get, on average, 10 spam comments a day. Worth it to support Webmentions and see twitter Likes on my blogposts?
(twitter.com/_/status/988469263898824704)
#
jmac
tantek: That does sound like a a good UX pattern, but I have difficultly imagining a reality where a visitor would be succinctly asked to provide a vouching URL, and then the visitor subsequently providing one.
#
jmac
Like, I wouldn't even know how to have the webpage meaningfully phrase the question!
#
sknebel
PSA: yet another drupal security pre-annoucement: https://www.drupal.org/psa-2018-003
#
skippy
I'm still struggling to get Grmble to work on my test site. https://skippy.rocks/microclient/ is where I've installed the source of Grumble; but I get no login prompt there.
#
skippy
does that work for anyoen else, by any chance?
#
aaronpk
i see some JS errors in the console
#
aaronpk
looks like it's expecting you to define the client ID
#
skippy
oh, looks like it demands to be at the root of the domain, rather than in a sub dir, too.
swentel joined the channel
#
tantek
jmac - "how to have the webpage meaningfully phrase the question!" - yes! great UX question and definitely worthy of some brainstorming and experimentation!
#
skippy
https://github.com/jjdelc/grumble doesnt mention anything about client ID, or client.js...
#
Loqi
[jjdelc] grumble: Micropub client
#
cweiske
aaronpk, "5.4 Authorization Code Verification" says "client makes a POST request to the authorization endpoint to verify the authorization code and retrieve the final user profile URL. "
#
cweiske
this is what's happening I think
#
aaronpk
section 5 is authentication, not authorization
#
aaronpk
so if the app is trying to get a token so it can post comments, that's authorization
#
cweiske
"5.1 Discovery" asks the client to discover the authORIZATION endpoint, not the authentication endpoint
#
cweiske
so I guess the exception about authorization_endpoint is because of that
#
aaronpk
yes the "authorization endpoint" is used for both
#
aaronpk
which is mildly confusing
#
aaronpk
3. Authentication .... 3.1 Authentication using the Authorization Code Flow ... 3.1.2 Authorization Endpoint
#
Loqi
[skpy] #38 Scopes during identification?
#
Loqi
[cweiske] #14 Can't authenticate with commentpara.de: Missing element "scope" in authorization_endpoint response
#
Zegnat
selfauth is usually correct. So sounds like grumble is doing an id request and sending scope anyway
#
skippy
shouldn't selfauth just ignore the scope? i mean, a client could pass any old junk it wants in the request; selfauth should only act on that about which it cares?
KartikPrabhu joined the channel
#
Zegnat
Because it is about authentication (and in part because I am a stickler) selfauth is pretty strcit
#
sknebel
generally not a good idea with security stuff
#
Zegnat
Also helps to test implementations
#
Zegnat
switches to computer to check selfauth source
#
skippy
"be liberal in what you accept, and strict in what you transmit".
#
aaronpk
how'd that URL get created with no response_type
#
aaronpk
it's missing response_type=code, so selfauth thinks it's an ID request
#
sknebel
what does the indieauth.com callback url do there?!
#
aaronpk
yeah i am confused about that first URL
tantek left the channel
#
Zegnat
skippy, except when it comes to security, I rather exit early as soon as I see anything is fishy ;)
#
aaronpk
the client_id is set to indieauth.com too
tantek joined the channel
#
sknebel
skippy: can you reproduce how you got that url?
#
skippy
where I then select "IndieAuth"
#
aaronpk
i think something is cached. try clearing your cache on skippy.rocks.
#
aaronpk
when i type in skippy.rocks to that page i get taken to the correct place
#
aaronpk
but also i keep getting JS errors from grumble and have to delete the cache between attempts
[jgmac1106] joined the channel
#
skippy
yes, that seems to have fixed things. thank you.
#
aaronpk
*whew*
snarfed joined the channel
#
pstuifzand
It seems I added a verification step that's not needed
#
pstuifzand
It's a POST to the auth endpoint with code, redirect_uri and client_id
#
aaronpk
yeah clients don't need to do that, the client just exchanges the code for an access token at the token endpoint
#
aaronpk
mind sharing how you ended up thinking that was a required step? I'd like to clean up the docs around that
#
pstuifzand
I guess I followed the sections in the spec. I didn't notice section 5 and 6 are about different things
[matthilt] joined the channel
#
aaronpk
ah interesting
#
pstuifzand
What is section 5 used for ?
#
aaronpk
for things like logging in to the wiki
#
aaronpk
when the app just wants to know who logged in, but isn't trying to do micropub
#
pstuifzand
ok, so perhaps if you want to have a private section on a website
#
aaronpk
yep definitely
#
swentel
where is section 5 and 6 ? /developers page seems fine though
#
Loqi
swentel: tantek left you a message 22 hours, 22 minutes ago: add yourself to https://indieweb.org/irc-people so that you show up in the logs with a photo and linked to your website!
KartikPrabhu joined the channel
#
pstuifzand
yes that is what is was referring to
#
swentel
oh wow, that's a nice page :)
#
aaronpk
it's very thorough
#
realize.be
edited /IRC_People (+92) "/* Nicknames */"
(view diff)
#
tantek
swentel while you're here, I think our Drupal page might be out of date or possibly confusing to new folks looking to use Drupal to interact with the IndieWeb. I tried to do a little editorial cleanup (putting your module first in the list as "current"), but it could really use just a little help with updates (per your recommendations) to the "How to" section: https://indieweb.org/Drupal#How_to
#
swentel
yes, a lot of those modules are pretty much outdated
#
swentel
LinkBack is the only one that's actively maintained
#
tantek
feel free to remove or move them to a "Past" section
#
swentel
I'll do that
#
swentel
I'll talk on the next DrupalCon about IndieWeb normally in september
#
tantek
awesome!
snarfed joined the channel
#
tantek
swentel, thanks to your plugin and dries's blog posts, I've also bumped Drupal up to the top subsection of the Projects page, where I did still note that we could use better documentation for how to install and set up Drupal as an IndieWeb friendly personal site: https://indieweb.org/projects#Drupal
snarfed joined the channel
#
swentel
yeah, I had been thinking about moving that up too this week, but since I'm very new, I didn't want to rush in and start changing all wiki's heh
#
tantek
that page still needs a lot of work but the least I could do was bump Drupal up since all the recent progress
#
pstuifzand
I removed the verification step and everything still works :)
#
tantek
also feel free to ask (either here or #indieweb-meta) if you're ever unsure about changing / editing any wiki page
#
swentel
ok will do, thanks :)
#
tantek
we often ask each other to review major edits
#
Loqi
[tantek] aaronpk: WDYT of the https://indieweb.org/projects update? improvement? good direction? shall I keep going?
#
realize.be
edited /Drupal (+0) "/* IndieWeb Tools */"
(view diff)
#
realize.be
edited /projects (-24) "/* Drupal */"
(view diff)
#
swentel
used {{realize.be}}
#
swentel
seems nicer as a link :)
#
realize.be
edited /Drupal (-23) "/* Kristof De Jaeger */"
(view diff)
#
cweiske
swentel++ for indigenous-android
#
Loqi
swentel has 3 karma in this channel (7 overall)
#
cweiske
the direct reply in the share menu works fine
#
swentel
cool :)
#
cweiske
only that the URL is focused could be better
#
swentel
could use an update on the actual description of the feature on that screen, it's a bit weird
#
swentel
oh, yeah, the keyboard that pops up?
#
swentel
it shouldn't really do that right
#
cweiske
when I reply from the browser, indigenous pops up and in the reply screen the URL field has focus
#
cweiske
so I have to tap the text field first before I can type my reply
#
swentel
yeah, has been bothering me too
#
swentel
*creating an issue*
snarfed joined the channel
#
swentel
I'm actually going let the other post types be exposed too
#
swentel
configurable of course
#
swentel
because it might make sense to paste selected text in a note for instance
[eddie] and j12t joined the channel
#
eddiehinkle.com
edited /Netflix (+300) "/* Your Viewing History */ +manual export"
(view diff)
#
skippy
my micropub endpoint and my media endpoint share the same URL. How can I determine whether any individual POST is a single file to the media endpoint, versus a JSON or form encoded post of non-media content?
#
skippy
should I make my media endpoint a separate URL?
snarfed and [kevinmarks] joined the channel
#
[kevinmarks]
That's probably safer
tantek joined the channel
#
sknebel
skippy: it uses a different content type, so should be easy to decide?
#
sknebel
oh wait, multipart is also allowed for normal requests
#
sknebel
then you'd have to look at the names of the fields too
#
sknebel
but a fileupload to the media endpoint is always going to be in the "file" field and won't have a "h" field
KartikPrabhu, sebsel, tantek and j12t joined the channel
#
skippy
to make sure I understand: in PHP at least, a media-only would have $_FILES['file'] and no $_POST['h'], right?
#
skippy
whereas a multi-part post with media would have both?
[jgmac1106] joined the channel
#
sknebel
not sure how that maps to PHP, sorry
#
sknebel
I'd guess so
#
skippy
yes, i have confirmed it. thank you.
gRegorLove, leg, leg1 and leg2 joined the channel
#
sknebel
does anyone know offhand what happens if a sysadmin has disabled some php functions (e.g. to not allow people to start random processes on shared hosting) and your script contains one?
#
skippy
it likely wont do anything.
#
skippy
it might error out, but probably not.
#
skippy
oh man, the micropub spec says media endpoints accept ONLY "file", while multipart uploads to non-media endpoints can use "photo" or "video" or any other standard property. :(
#
skippy
is Indigenous for Android converting photos to png on the client side before uploading them? I'm uploading JPEGs and my server appears to be seeing PNGs.
[chrisaldrich] joined the channel
#
swentel
skippy, hmm yes, I don't even know why on earth I'm doing that
#
swentel
it doesn't make sense
#
swentel
that should be jpg
#
swentel
or at least check the photo type and decide on that
#
swentel
but 99% will be jpg anyway (at least for a photo)
#
swentel
ok, created an issue for that, will fix that tomorrow
#
aaronpk
sknebel: the idea with the media endpoint is it has no idea what the files are or what they will be used for, so it's always just "file"
chrisaldrich joined the channel
#
aaronpk
whereas with a micropub endpoint, it's adding a file to some specific h-entry vocabulary, like photo or video or audio
#
aaronpk
the media endpoint isn't creating a post, it's just creating a file that will be later used in a post
#
sknebel
you probably meant to highlight skippy
#
aaronpk
sk[tab]
#
aaronpk
yes skippy
#
aaronpk
overeager autocomplete
#
tantek.com
edited /Netflix (+791) "expand dfn, note past features, subheadings for how to, how to pessos"
(view diff)
[miklb] joined the channel
#
@ChrisAldrich
↩️ Today, with the help of Webmention and tools like http://Brid.gy, I've just passed the 9,000 reactions mark (and added many new friends in the process)! http://boffosocko.com/2018/04/23/9000-comments-and-reactions/
(twitter.com/_/status/988543380387840000)
#
@EddieHinkle
@johnbrayton Adding Microsub servers would be an excellent addition to Unread! Microsub is a client-Server communication spec that allows for people to host their own RSS feeds and use different clients to see the data: https://indieweb.org/Microsub-spec
(twitter.com/_/status/988546941687562241)
[eddie] joined the channel
#
[eddie]
What is Unread?
#
Loqi
It looks like we don't have a page for "Unread" yet. Would you like to create it? (Or just say "Unread is ____", a sentence describing the term)
#
[eddie]
Unread is an RSS reader that supports different backend syncing services. They are considering adding support for Microsub servers.
#
loqi.me
created /Unread (+158) "prompted by [eddie] and dfn added by [eddie]"
(view diff)
#
Loqi
ok, I added "https://micro.blog/johnbrayton/507115" to a brand new "See Also" section of /Unread https://indieweb.org/wiki/index.php?diff=47167&oldid=47166
#
loqi.me
edited /Unread (+57) "[eddie] added "https://micro.blog/johnbrayton/507115" to "See Also""
(view diff)
#
Loqi
[johnbrayton] @EddieHinkle Thank you for the suggestion. I was not aware of Microsub. I will look into this and consider it for a future version of Unread.
#
[eddie]
Microsub++
#
Loqi
microsub has 3 karma in this channel (4 overall)
#
aaronpk
i just realized that if i have physical oauth tokens to give out to people, i should make them do an oauth dance first
#
KartikPrabhu
aaronpk: you should spec it out ;)
#
aaronpk
put your right hand in, put your right hand out, put your right hand in, then you shake it all about
#
KartikPrabhu
do the oauthy dancey, do the oauthy dancey
#
KartikPrabhu
and that's what it's all about
[jgmac1106] and [miklb] joined the channel
#
skippy
i'm still fuzzy as to how a micropub posted entry would reference an attached photo in the body of said entry at time of composition.
#
skippy
Say I'm composing something in Indigenous for Android, and I attach a photo. That photo will be in the properties, but then how would I display it wihitn my post body?
#
KartikPrabhu
skippy: the photo url will be in the properties presumably
#
aaronpk
do you mean from the server's perspective?
[tantek] joined the channel
#
aaronpk
i'm trying to understand the question
#
aaronpk
there are two things
#
skippy
sure. Let me back up.
#
aaronpk
for photo posts, where the photo is considered to be separate from the text content, the client sends the "content" property with the text and the "photo" property with either the URL of the previously-uploaded image or the multipart file upload
#
aaronpk
for blog posts that contain embedded images, the client would send "content" as html, with <img> tags with the src set to the URLs it got from uploading the photos to the media endpoint
#
skippy
say I'm using Indigenous (or whatever) that sends h-entry AND photo as multi-part form submission. I compose a new article. This article has a title, and body text. I also add an image. The image gets uploaded along with the text, so it has no URL until the server processes it.
#
skippy
so I can't link to it from the body of the text in my entry.