#dev 2018-08-17
2018-08-17 UTC
tantek__, Ben6412 and jgmac1106 joined the channel
myth0d7 joined the channel
#
KartikPrabhu notes
#
KartikPrabhu or articles without summaries
#
KartikPrabhu photo post
#
KartikPrabhu likes
#
KartikPrabhu not sure why
#
KartikPrabhu a photo property would be a photo post, a like-of property would be a like; same with bookmarks and reposts
[jgmac1106] joined the channel
#
[jgmac1106] what if add a a phrase under the photo ?
#
KartikPrabhu [jgmac1106]: I only meant it is not necessary
#
KartikPrabhu **may**
#
KartikPrabhu depends on the client
#
gRegorLove It's a good idea to have summary, yes, so if the server doesn't understand the other properties it can at least publish that.
#
gRegorLove There was some discusssion about that at /2018 regarding indiebookclub and m.b
#
gRegorLove I think summary is a good idea. What's the minimal, plaintext version of a post? The answer to that is a good candidate for summary.
#
gRegorLove Hmm, that same conversation included /ptd and I feel like there was some small update to that algorithm that was supposed to be made, but no wiki edit. Can't remember the details now.
Guest85049 joined the channel
#
gRegorLove I think it was about this scenario: https://github.com/microdotblog/issues/issues/92#issuecomment-396084102
#
@severo_bo El futuro de los comentarios (ojala) son las "menciones web".
Estándar oficial W3C, descentralizado, con un concepto genial: comentas un artículo de donde quieres (TW, FB, tu blog) y aparece abajo del artículo original.
Desarrollador/a: aquí está la base
https://aaronparecki.com/2018/06/30/11/your-first-webmention (twitter.com/_/status/1030267105919361024)
mblaney1, Moyst11, renem and [chrisaldrich] joined the channel; mblaney1 left the channel
#
@ChrisAldrich ↩️ Peter Molnar had a recent post with lots of useful advice about running a static IndieWeb site: https://petermolnar.net/running-a-static-indieweb-site/
https://boffosocko.com/2018/08/16/reply-to-kartik-singhal-about-webmention/?replytocom=71313#respond (twitter.com/_/status/1030278967503204355)
KartikPrabhu and mblaney joined the channel
#
mblaney ah. found it after a bit of trawling logs: https://github.com/tantek/post-type-discovery/issues/38
#
gRegorLove Ah, cool!
#
gRegorLove didn't think to scroll further down the github issue he linked, hah
[asuh], KartikPrabhu, themill17, dystopia_, Captain_Beezay, Guest59136, savoir-faire29, [mrkrndvs], and, TripFandango and [iambismark] joined the channel
#
[iambismark] huh… I think I found a bug in hackney (https://github.com/benoitc/hackney, popular erlang http client). hackney resolves the redirect from `https://webmention.rocks/test/23/page` to `https://webmention.rocks/test/23/page/page/<guid>` while curl resolves it to `https://webmention.rocks/test/23/page/<guid>`…
[metbril] and Ishaq2 joined the channel
swordsmanz17 joined the channel
#
@ochtendgrijs Dat ik me maar eens in webmentions en aanverwante technologieën moest gaan verdiepen. (twitter.com/_/status/1030369961825460225)
Xe24, Pugabyte21, [pfefferle], deathrow1, jgmac1106, gidzit, Matrixiumn, anataex and [grantcodes] joined the channel
#
[grantcodes] I had a new microsub idea. Someone else can feel free to build it...
#
[grantcodes] If servers provide the ability to add channels and posts to channels (like aperture does via micropub)
#
[grantcodes] It would be possible to build a "client" that could look through all your posts every day and create a summary of all the links shared that day in its own channel
#
[grantcodes] Or maybe some other clever stuff along that line. Would be cool to have.
#
[grantcodes] And could even recommend stuff that is popular over multiple users.
#
[grantcodes] Would have to be very explicit about how it reads peoples channels and shares to other users
Napsterbater joined the channel
#
[grantcodes] Or it even could end up like the discovery functionality that [cleverdevil] initially discussed for together, but could work across any server and reader 🤔
jgmac1106, basic`8 and [jgmac1106] joined the channel
#
[jgmac1106] [grantcodes] when people were talking about Nuzzel yesterday, this got me thinking what is the IndieWeb version? Sounds alot like you are talking about
#
[jgmac1106] I was thinking about just how indieweb.xyz, worked. If something like that used rel="follow" could I..get a feed of the top five post that had the most interaction in specific tags (channels in your microsub example)
#
[jgmac1106] then we can take your idea one step further could there be some way for different folks to tie in their own smtp or other email solution to own their newsletter?..though I prefer my feeds over newsletters. Stay the F out of my inbox
jeremych_, rory5 and mancha22 joined the channel
#
[jgmac1106] how do I turn this https://jgregorymcverry.com/tag/microcast/feed into a podcast feed?
#
jeremycherfas I use a plugin; that may not suit you.
#
[jgmac1106] ooh okay let me search for plugins
#
jeremycherfas I use blubrry; it give me stats and things for free. Hosting is extra. There might be some that just do the feed.
[kevinmarks] joined the channel
#
[kevinmarks] messing about with glitch: https://satin-increase.glitch.me/
#
[kevinmarks] needs a bit of auth ;
#
[jgmac1106] Kevin I was just meeting with their learning team yesterday and I was saying I can't wait until all the building blocks are there for people to learn how to launch their own Indieeb blog
#
[jgmac1106] they even have some easy database storage tutorials already
#
[jgmac1106] [kevinmarks] I wonder if you can remix [schmarty] kapowski or webring for indieauth
#
[kevinmarks] this was based on the lowdb one
#
[kevinmarks] though it was doing weird amounts of work
#
[jgmac1106] [jimpick] has some .dat projects on there as well. I am working on making one into a simple .dat page that is an h-card
#
[jgmac1106] I want to see if I can just add feed=rss2 on the end
#
jgmac1106 yep…I got this: Client error: `GET https://jgregorymcverry.com/tag/microcast/feed=rss2` resulted in a `404 Not Found` response: <!DOCTYPE html> <html lang="en-US" class="no-js"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=d (truncated...)
#
[jgmac1106] I do wonder if I use the native audio type versus post-kind if that changes anything
#
jeremycherfas I do often wonder how locked in I am to blubrry. Need to consider alternatives and see what it would take to switch.
#
[jgmac1106] yeah I don't want to pay anything, I probably have two listeners and don't care if I get more, hosting audio file on my website is fine\
#
[jgmac1106] not worth 15 a month to me
#
aaronpk https://wordpress.org/plugins/seriously-simple-podcasting/ it's a wordpress plugin, there is no fee
#
[jgmac1106] when you click on new, it says sign up, then you click on pricing and it says 15 a month
#
[jgmac1106] let me try again
#
[kevinmarks] podcast feeds are fussy yes. I did a very hacky one in unmung
#
[kevinmarks] OK, permalinks work in that example now
#
[jgmac1106] okay will make the account and see what happens
#
[jgmac1106] maybe it changed? recently?
#
[jgmac1106] wow...yeah icky
#
[jgmac1106] but I will try it
#
[jgmac1106] I should have seen it...but they hid the dismissal for sure
#
[jgmac1106] okay will play and add mine
#
[jgmac1106] aaronpk++
#
[kevinmarks] I could do hfeed to podcast with a bit of tweaking
eli_oat1 joined the channel
#
[jgmac1106] like all things in WordPress they say its easy: https://codex.wordpress.org/Podcasting
#
[jgmac1106] yeah
kashike0 joined the channel
#
sknebel https://jgregorymcverry.com/tag/microcast/feed at least is a feed with audio files attached that you probably could suscribe to
#
[jgmac1106] yep @sknebel that worked in all my podcast readers, doesn't recognize the featured image as album art though
#
[jgmac1106] so will probably move to using plugin@aaronpk shared
[keithjgrant], [xavierroy], AimHere8 and [grantcodes] joined the channel
#
[grantcodes] Sweet, after seeing [kevinmarks] make a test site on glitch, I set up my micropub endpoint on glitch. And it works! I'm impressed
#
[grantcodes] glitch.com/edit/#!/careful-banana
#
[grantcodes] Also it's like sink by Zegnat kind of since there is no auth required 😛
snarfed joined the channel
#
[keithjgrant] [aaronpk] I think we discovered a while back Omnibear doesn't send the scope somewhere that was optional according to spec, but the null value caused the WordPress plugin to throw
tbbrown joined the channel
iasai joined the channel
#
[keithjgrant] Are scopes sent anywhere to the micropub endpoint, or was this only an auth issue?
#
[keithjgrant] @GWG if you have a chance to paste your Omnibear log to https://github.com/keithjgrant/omnibear/issues/75, that might be helpful
#
[keithjgrant] You might have to reproduce the issue after turning logging on first
ninsei joined the channel
#
[keithjgrant] oh, my mistake in the way I worded that. Cleaned it up a bit
#
[keithjgrant] it should be when requesting the token, right?
GWG joined the channel
GWG joined the channel
#
[keithjgrant] hm
#
[keithjgrant] is it not storing the scope correctly when it falls back to the default?
#
[grantcodes] Don't think it's an issue with my part of the code. micropub-helper only sends a scopes as query parameters on the indieauth url. After that it only ever uses the token.
#
[keithjgrant] [grantcodes], it looks like you don't include the scope when requesting token at https://github.com/grantcodes/micropub/blob/master/src/main.js#L158
#
[keithjgrant] you send it when fetching endpoint urls, if i'm reading that right
#
[grantcodes] Scopes are never sent anywhere
#
[keithjgrant] line 264, in getAuthUrl(), it looks like they're added to the payload. but i'm not sure that means anything in that particular request
#
[keithjgrant] oh, that's not a request
#
[keithjgrant] that's a promise resolving
#
[grantcodes] It adds scopes as query parameters to the auth url
#
[grantcodes] That is the only time micropub-helper touches them. Everything else is just the token
#
[keithjgrant] I definitely don't see them in my network traffic. Even after explicitly passing them into the micropub helper
#
[grantcodes] It wont be in network traffic anywhere
#
[grantcodes] They are used by directing you to https://indieauth.com/auth?me=https%3A%2F%2Fgrant.codes&client_id=https%3A%2F%2Fomnibear.com&redirect_uri=https%3A%2F%2Fomnibear.com%2Fauth%2Fsuccess%2F&response_type=code&scope=post%20create%20delete%20update&state=very-secret-omnibear-state to login
#
[keithjgrant] i was going to ask about that, too. is that superceded by "create" now?
#
[grantcodes] GWG: Yeah it includes post by default
#
[grantcodes] both post and create
#
[grantcodes] Should the micropub endpoint not just ignore it in that case?
#
[grantcodes] It's also an option so onmibear can be set to only request the create scope and not the others
#
[keithjgrant] okay, so scope does NOT need to be sent when requesting the token (not even optionally), correct? If that's the case, Omnibear is doing everything correctly
pavlushka21 joined the channel
#
[keithjgrant] man. I wish I could find the discussion we had a while back on this. We knew the line number in the indieweb plugin that was throwing the error
#
[grantcodes] Could well be something to do with it being sent from frontend js. But that would be strange since the authorization header is sent and works fine with most other endpoints
#
[keithjgrant] The POST includes client_id "https://omnibear.com" (though it's not sent from there; it's sent from the browser), code, grant_type "authorization_code", me "https://keithjgrant.com" (e.g.), redirect_uri "https://omnibear.com/auth/success"
#
[keithjgrant] ok
#
[keithjgrant] ah, ok
#
[grantcodes] I'm going to set up a wp test environment. Where should I install plugins from GWG? Github master branches?
#
[grantcodes] Testing plugins that is
#
[grantcodes] Cool. I'll have a go with them
thomasb9511 joined the channel
#
[grantcodes] Well issue #1 The indieauth plugin didn't work without switching to pretty permalinks
#
[grantcodes] The permalinks thing, may just be my setup to be fair
#
[grantcodes] But I have got the point where I have everything installed and getting error with posting
#
[keithjgrant] Man, I haven't written php in so long
willnorris joined the channel
#
[grantcodes] I've tracked the issue down to static::$scopes being equal to null on line https://github.com/snarfed/wordpress-micropub/blob/master/includes/class-micropub-endpoint.php#L164
#
[keithjgrant] yeah, that state parameter was a placeholder. that needs fixing 😳
#
[grantcodes] Not got that far yet 😛
#
[keithjgrant] ok, found some earlier discussion
#
[keithjgrant] notes the same static::$scope being null
#
[grantcodes] if you are using chrome right click the onmibear popup thing and inspect that and you can see the network requests and everything
#
[keithjgrant] [aaronpk] do you see a "+" beside every log entry, or just a few?
#
[keithjgrant] interesting. it should only be beside those that can be expanded, which isn't many
#
[keithjgrant] "syndication targets retreived" is one that can expand
#
[keithjgrant] same with "note posted successfully"
#
[grantcodes] I can't remember how you inspect that target in firefox GWG it's in there somehow
[tantek] joined the channel
#
[grantcodes] Ok got it
#
[grantcodes] It's not running verify_access_token
#
[grantcodes] I reordered the logic in determine_current_user and it worked
[jgmac1106] joined the channel
#
[grantcodes] Not sure if that is the ideal solution, but it is definitely where there are no scopes set
#
[grantcodes] It returns the user id from the first if block but never stores the scopes
#
[grantcodes] When I moved the lines that set $token and $params to the top of the function it works for me
#
[grantcodes] I don't know how else the scopes are set for other micropub clients, but I would have thought it would happen for all clients
#
[grantcodes] aaronpk: Total default with just the 2 plugins installed
#
[grantcodes] Pretty urls on
#
[grantcodes] Github
#
[grantcodes] master branches
#
[grantcodes] Ohhhhh I know the issue!
#
[grantcodes] I bet if you log out of your wordpress site in the same browser you use omnibear it will work
#
[grantcodes] Other clients are fine because they are sent server side and not logged in as you
#
[keithjgrant] whoa
#
[keithjgrant] does the micropub helper use fetch?
#
[grantcodes] Yes it uses fetch
#
[grantcodes] That is where the issue is for reference
#
[keithjgrant] fetch() should omit cookies by default if we don't tell it to include them
#
[grantcodes] I had the issue in ff and chrome
#
[grantcodes] GWG: Maybe the checks should be skipped but it should still set the scopes maybe?
#
[grantcodes] Even if the user is logged in
#
[grantcodes] Maybe you don't have the issue aaronpk because you used indieauth to log into the wp admin?
#
aaronpk here's what the chrome inspector shows omnibear sent https://i.imgur.com/itjRO3r.png
#
[grantcodes] And the response was fine
#
[grantcodes] Are you logged into the wp admin in that same chrome window?
[eddie] joined the channel
#
[keithjgrant] avocado.lol 😆
#
[keithjgrant] i'm still puzzled why omnibear is sending the cookies in the first place
#
[keithjgrant] different browser versions -> fetch() polyfill running vs native implementation?
#
[keithjgrant] (it would have to be a pretty old browser version to need the polyfill though)
#
[grantcodes] micropub-helper does not attempt to send cookies
#
[grantcodes] http requests in extensions do very funny and magic things
#
[keithjgrant] yeah, they do
#
[grantcodes] ie. In one browser you can read response headers and in another you cant
#
[keithjgrant] i was wondering if the isomorphic-fetch was interfering somehow
#
[grantcodes] Shouldn't be if the browser supports fetch (which is all of them now)
jgmac1106 joined the channel
#
[grantcodes] Only if the micropub and auth endpoints share code I think it would be an issue
snarfed joined the channel
#
[keithjgrant] ugh
kayamm18 joined the channel
snarfed joined the channel
#
[keithjgrant] i'm guess not since the $scope won't be defined
TripFandango joined the channel
mblaney1 and mblaney joined the channel
#
[grantcodes] I'm pretty sure there is another way to provide alternative authentication methods for the rest api.
#
[grantcodes] Could you not use something similar to https://github.com/WP-API/Basic-Auth/blob/master/basic-auth.php
mblaney and mblaney1 joined the channel
#
[grantcodes] Not sure to be honest. I just feel it must be solvable somehow. I can test to see if I get micrpub-helper to make sure it's not sending cookies
#
[keithjgrant] [grantcodes] try the `credentials: 'omit'` thing on the fetch and see what that does
#
[keithjgrant] but i'm worried we're in “browser extensions behave weird” land here
#
[grantcodes] Will do when I have time
mblaney joined the channel
plat_25 joined the channel
#
[keithjgrant] seconded GWG++
#
[keithjgrant] (do I have to begin the message with the handle & ++ ?)
#
[keithjgrant] GWG++
[jgmac1106], [eddie], cheshire_cat, exezin27, mblaney1, mblaney and jgmac1106 joined the channel
mblaney1, ovoldemorto and mblaney joined the channel
gRegorLove, TripFandango, [kevinmarks] and [tantek] joined the channel
#
aaronpk Whoa this thread https://micro.blog/jd/804127
Davnit26, dindon3, tantek__ and [iambismark] joined the channel
#
[iambismark] can micro.blog not thread webmentions between multiple externally hosted blogs? seems technically possible with the correct mf, but i can see the complication…
tantek, [kevinmarks], mblaney1, mblaney and [grantcodes] joined the channel
#
[grantcodes] Ok [keithjgrant] include the new version of micropub-helper and it should post to wordpress fine 🎉
[keithjgrant] joined the channel
#
[keithjgrant] grantcodes++
#
[grantcodes] I tested with my extension so I'll get a release of that out tonight 🙂
mblaney1, mblaney and A_D1 joined the channel
#
@thorkon @schnarfed is there a problem with http://Brid.gy and likes on Instagram? Currently I do only receive comments, but not likes. (twitter.com/_/status/1030571453136216065)
[tantek], [dougbeal] and mblaney1 joined the channel
[iambismark] joined the channel
#
[iambismark] what is PTD
#
Loqi Post 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
#
loqi.me edited /Angelfire (+440) "tantek__ added "https://mastodon.social/@benwerd/100565830403344520" to "See Also"" (view diff)
bradenslen, snarfed, eir26, StephenS24, mblaney and richardjohn joined the channel
matlock, tantek, AbbeyRipstra28 and eli_oat1 joined the channel
#
mblaney tantek we were trying to remember the ptd change discussed at the summit. turns out manton captured it here: https://github.com/tantek/post-type-discovery/issues/38
#
tantek.com edited /Facebook (+221) "/* How to wean yourself from */ use /events/calendar instead of /events for a more *your* events focused view (instead of being distracted by "suggested events") at the top" (view diff)
exio419 and snarfed joined the channel

