#dev 2018-09-16

2018-09-16 UTC
renem, mishanti13, Allanis, iasai and [asuh] joined the channel
#
loqi.me
created /PixelFed (+103) "prompted by [asuh] and dfn added by [asuh]"
(view diff)
batfastad16, jeremych_, hugsy0, cb111, [kevinmarks], [jgmac1106] and torkil7 joined the channel
#
torkil7
Аllah iѕ doiᥒg
#
danq.me
edited /checkin (+795)
(view diff)
#
[jgmac1106]
when I add a blogger site to aperture I am given the choice of a microformats feed. Should I assume that is mf1 and I shoudl choose rss?
[christophe] joined the channel
#
sknebel
if I remember right the mf1 on blogger is done properly, so it probably doesn't really matter which you use
#
jeremycherfas
I'm reading a geojson file and everything works fine, but I get an error XML Parsing Error: not well-formed
#
jeremycherfas
Line Number 1, Column : which of course is the very beginning of the file. And yet it seems to parse just fine. Anything I can do? Any need to worry?
barpthewire joined the channel
#
Zegnat
well-formed means something very specific in XML parlance. But if your parser handled the file, don't worry about it.
#
Zegnat
If you are the person producing the file in the first place, you may want to look into producing better XML
#
jeremycherfas
Thanks zegnat. You flatter me ...
#
jeremycherfas
It is actually a geoJSON file, so not sure why XML even matters.
#
sknebel
XML error when parsing *JSON* seems odd
#
jeremycherfas
I'm at the blindly copy paste and try to work out what is going on stage.
#
jeremycherfas
This is what I'm doing `$.getJSON("./early.json", function(data)`
#
jeremycherfas
And then a bunch of stuff to create a geojson object
#
Zegnat
Oh. Who knows what jQuery is doing on getJSON.
#
@jgmac1106
@Xtof @hugo  Ha! I am no developer either. Just sharing some of the tools and history. Webmention Issue on GitHub and Bridgy Fed (http://jgregorymcverry.com/6860-2/)
(twitter.com/_/status/1041309253598957573)
#
Zegnat
throws up a somebody else's problem field.
#
jeremycherfas
Not me, obvs
#
vilhalmer
jquery does some weird stuff to try to emulate an xhr object for all requests that pass through $.ajax so it's possible it tries to unconditionally read as xml to see if it can extract some properties
#
jeremycherfas
Would that be a good thing zegnat?
#
jeremycherfas
Let me test it anyway.
hugogameiro joined the channel
#
jeremycherfas
Zegnat I am a bit lost, because although the alternative appears to read the file (it gives the same malformed error) I cannot seem to find the contents of `var = data`
#
jeremycherfas
Which means that the next part `var geojson = L.geoJson(data, {});` fails.
#
jeremycherfas
Must be doing something wrong.
#
jeremycherfas
So until I have a much better understanding of javascript, I think I need to bumble along the way I am going.
#
vilhalmer
jquery is a handy tool, but in my experience it will prevent you from getting that understanding because it's too magic
#
vilhalmer
(not saying to drop it for this particular project necessarily, just that exploring outside of it is good)
#
jeremycherfas
I'm sure you are right. For now, I would like to get something that works, and then when I have that, learn more so I can simplify it.
[kevinmarks] joined the channel
#
jeremycherfas
I might ... Later (bookmarked)
#
Zegnat
sorry, was doing the dishes. That piece of code on youmightnotneedjquery should be a drop-in replacement for getJSON, yes, and should work in your case (I think).
#
Zegnat
I would recommend something like that over jQuery because it makes it easier to go back later and learn what is happening behind the scenes. Diving into jQuery source code is no fun.
#
sknebel
does the browser console show any errors?
#
@FormationXtof
↩️ l'implémentation des webmentions sur l'instance. Sujet ouvert avec @hugo@masto.pt l'hébergeur de cette instance et qui nous a rejoint sur le canal officiel de discussion #indieweb @hugo@masto.pt nous a rappelé que Mastodon ne supporte pas (2/3)
(twitter.com/_/status/1041325449568182272)
swentel joined the channel
#
Zegnat
sknebel, interesting idea in #indieweb. How easy would it be to subscribe to all toots of an instance and handle WM sending? As an external party?
#
[jgmac1106]
@zegnat I am not picking up any feeds from: https://licit.li/
#
Zegnat
Define “picking up any feeds”
#
[jgmac1106]
I added the link to aperture it said no feeds found
#
[jgmac1106]
I tried the same thing in inoreader
#
Zegnat
Aperture doesn’t support licit.li
#
Zegnat
Innoreader does not support h-feed.
#
[jgmac1106]
do you syndicate anywhere I can follow?
#
Zegnat
(Whether Inoreader supports licit.li I can’t say. Probably not.)
#
Zegnat
I don’t syndicate. But I also do not currently have the ability to post. So you aren’t missing anything.
#
[jgmac1106]
still working on the writing UI?
#
Zegnat
Yes. But had to drop the work on it as some offline tasks came up.
#
vilhalmer
seems like the easiest way to get all toots would be to implement the federation protocol and just appear to have zero users so there's nothing that needs to go the other way
#
Zegnat
You could try selfhosting Aperture and updating its fetching code to gain the ability to subscribe to licit.li, [jgmac1106] ;) Nice challenge on the ownyourdata front
#
vilhalmer
(or maybe one user who follows everyone? not sure)
#
[jgmac1106]
...or you could add a mf or rss feed
#
Zegnat
It already has the h-feed, [jgmac1106]
#
Zegnat
It is the fetching code that just isn’t compatible with my website
#
Zegnat
Not a mf2 or parsing issue
#
[jgmac1106]
okay thx, looking forward to adding you when your UI is finished
#
Zegnat
vilhalmer, I thought Mastodon implemented AP so it would only send toots to followers’ inboxes? So the listening code would have to somehow subscribe to every single user on an instance?
#
vilhalmer
I thought AP was a "secondary" protocol and there was some more mastodon-specific protocol as well
#
vilhalmer
but I don't know details of that so it may still be the case
#
sknebel
you can just query the timeline through the API, no need for any federation
#
[jgmac1106]
@vilhamer I do that with jgmac1106@jgregorymcverry.com never thought people could just follow my account and they have a feed of my stuff
#
sknebel
(assuming you mean the "see everything from a specific instance" thing I mentioned in the main channel)
#
vilhalmer
query would be polling though, right?
#
sknebel
probably
#
Zegnat
Polling isn’t disasterous. Just means WMs aren’t going to be in real time
#
Zegnat
In fact, having a slight slow down on WMs might be good as a DoS counter
#
vilhalmer
good point
#
Zegnat
Might be an interesting IWC thing :)
#
[jgmac1106]
@aarronpk looking at aperture makes me wonder how "public" channels would be so I could share mine
[kevinmarks] joined the channel
#
[kevinmarks]
If you use unmung.com/mastoview you get an h-feed for an instance, but it is only most recent 20
swentel and Padawan-1 joined the channel
#
Zegnat
[kevinmarks], that sounds like I would have to poll it way too often on an active instance if I don’t want to miss tings
KartikPrabhu joined the channel
#
Loqi
[Jeremy Cherfas] Mapping from external JSON
#
jeremycherfas
Happy-ish. Need to reduce the amount of hard coding and use variables instead. Also need to see whether I can get that drop in replacement from zegnat to work.
[christophe] joined the channel
#
[jgmac1106]
@sknebel yeah I am basing my expectation of how I want Mastodon to work based on my experience with bridgy and twitter, i can keep tweets threaded on Twitter and and webmentions threaded on my blog
swentel and AsciiWolf4 joined the channel
#
GWG
swentel++
#
Loqi
swentel has 5 karma in this channel over the last year (14 in all channels)
#
GWG
swentel: Works perfectly now
#
swentel
awesome :)
#
swentel
GWG, are you planning to add q=source in the micropub plugin ?
#
swentel
I've added basic post update support now in indigenous and drupal plugin
barpthewire joined the channel
#
swentel
If I could get a list of posts with some basic filtering out, I can more or less control my site
#
GWG
swentel, it is already in
#
GWG
snarfed added it in a while back and I haven't touched it lately
#
swentel
GWG, oh, so, it should return a list of posts on q=source ?
#
GWG
List, no.
#
swentel
ah only properties of a url
#
GWG
Yes
#
swentel
that's good to test from as well
#
GWG
I might add post lists in a future update
#
GWG
But now, I really want to figure out why some people can't log in
#
GWG
It's why I haven't pushed it
#
GWG
Although the current version has at least as much success as the old one
#
GWG
Not sure that is a good criteria
#
swentel
but it seems more related to the indieauth plugin if I'm reading the issues right
#
GWG
Hard to say
#
GWG
The Indieauth plugin says it got the token but didn't log them in
#
GWG
Stumped
#
swentel
hmm, very weird indeed
#
@pstuifzand
Because of the interfaces in Go it was really easy to connect HTTP microsub frontend of Ekster to the client part of Ek to build a Microsub proxy. That way all API calls of the reader can be passed without CORS headers through the proxy to your own Microsub server.
(twitter.com/_/status/1041389137998348290)
#
GWG
I need to do some tests on jackjamieson's WordPress Microsub stuff as well
gRegorLove, gdott924, the_cuckoo13, Magne`21, leg and [kevinmarks] joined the channel
#
vil.lv
edited /chat-names (+74) "Add myself"
(view diff)
wagle29 and [kevinmarks] joined the channel
#
[kevinmarks]
The mf1 on blogger was done right à décade ago, but if people have custom templates it can go awry. Also, if they use the js;dr templates you will need to fetch it with an extra param to get the static version iirc
#
loqi.me
created /dunk (+20) "prompted by gRegorLove and redirect added by gRegorLove"
(view diff)
Guest68333, [kevinmarks] and noah11 joined the channel