#dev 2021-02-25

2021-02-25 UTC
ben_thatmustbeme joined the channel
gRegorLove joined the channel
#
@LapilapL
Grow the IndieWeb with Webmentions! Lapilap lap, news goes wild. Laplap
(twitter.com/_/status/1364856788273811457)
#
@nunodonato
@ambrwlsn90 Hi! just read your blog post on webmentions. Can I DM you regarding that? (I'm building a social network based on RSS and very much aligned with the indieweb concept http://www.kalaksi.com ) thanks!
(twitter.com/_/status/1364860402178400256)
jimpick_ and aaronpk_ joined the channel
#
sknebel
what is nginx?
#
Loqi
Nginx is one of the two commonly used HTTPd server projects (Apache being the other) https://indieweb.org/Nginx
#
sknebel
nginx << https://blog.detectify.com/2020/11/10/common-nginx-misconfigurations/ - some interesting pitfalls in configuring nginx
#
Loqi
ok, I added "https://blog.detectify.com/2020/11/10/common-nginx-misconfigurations/ - some interesting pitfalls in configuring nginx" to the "See Also" section of /Nginx https://indieweb.org/wiki/index.php?diff=74714&oldid=48205
#
aaronpk_
Wow I'm gonna have to look at that nginx post
#
nunod
I see your webmention.rocks websites will be very useful in testing out my implementation :)
[Murray] joined the channel
#
aaronpk
I'll have to take a look at what you're planning, but that's one way to do it yes
#
aaronpk
if you can't determine what user the webmention is for based on the target URL
#
nunod
well for now I can because the posts have a "/user_slug/" type of url
#
nunod
but maybe in the future it wont...
#
aaronpk
I did that with webmention.io to make it easier to sort webmentions
#
nunod
ok I guess I need to get my hands dirty and begin implementing something
KartikPrabhu joined the channel
#
nunod
this is definitely much aligned with the values of my "open social network"
#
nunod
and yet, probably the effects of such implementation and all the time it requires will be minimal since its not so much used anywhere else :/
#
aaronpk
Not sure what you mean
#
aaronpk
if you support webmention then you'll already be able to interop with the whole micro.blog and pine.blog networks too
#
aaronpk
not to mention everyone's personal websites and Wordpress sites
#
nunod
does wordpress support it out-of-the-box? I thought you need to install a plugin
#
aaronpk
yea thru a plugin
#
nunod
yeah, so what I mean is that its a feature that will remain mostly invisible because its adoption is fairly small :)
#
aaronpk
It only will if you keep thinking that way :-D
#
nunod
like I said, its very much aligned with the values I want to promote, so I will commit to implement it
#
nunod
who knows, it might help :)
#
@jpcaruana
Mon petit serveur LastCrusader envoie désormais des webmentions à toutes les cibles concernées :) Pas mal de chemin parcouru depuis le lancement de ce petit projet ! (https://jp.caruana.fr/notes/2021/02/24/mon-petit-serveur-lastcrusader/)
(twitter.com/_/status/1364960446676090889)
[Rose], [scojjac] and [schmarty] joined the channel
#
[schmarty]
(* business accounts only, your app must be registered and vetted by their dev program, none of this is actually attainable by an individual etc etc)
#
sknebel
"business account of Schmarty's Jokes Inc, run by Schmarty's Catpix LLC"
[tw2113_Slack_] joined the channel
#
[tw2113_Slack_]
pspspspspspsps
[tantek] joined the channel
#
alex11
lol of course business account only
#
alex11
fuck you
#
alex11
we're so 'privileged' that you've 'graciously' 'allowed' this
jamietanna joined the channel
#
jamietanna
aaronpk interestingly I'm seeing my local authorization flow not working with Micropub.rocks :thinking: when the auth code is returned, it seems to just wait.. oddly it works on the live site, so not sure what's up
#
aaronpk
is it unable to make a request to your local site for some reason?
#
jamietanna
So I'm using my live IndieAuth server, only thing local is .rocks
#
jamietanna
looks like my server is rejecting it :thinking: when adding debug statements in, I see I return an `invalid_grant`
[KevinMarks] joined the channel
#
jamietanna
actually that may be me replaying it by refreshing
#
jacky
hm, I wonder if this is related to a bug I've been having with telegrpah
#
jacky
*telegraph
#
jamietanna
brb dinner time
[tantek], [fluffy], [arush] and [tw2113_Slack_] joined the channel
#
jamietanna
aaronpk sorted it!
#
jamietanna
it's that when running as `php` there's only one worker for requests, so when we then hit the `publish_streaming`, it leads to having no workers to be able to serve those requests
#
jamietanna
I've commented out that method's body for now, but may mean we need to i.e. have a `docker-compose.yml` or some other setup i.e. with FPM
#
aaronpk
oh huh
#
aaronpk
yea i've never run it with the built in server, i run it behind nginx on my laptop
#
jamietanna
it's cool :) that was fun debugging!
#
jamietanna
so now the next problem is I've logged in and I'm seeing on the Server Tests page the literal strings ``` insert('partials/server-test-row', ['num'=>$i, 'tests'=>$tests, 'endpoint'=>$endpoint]); } ?> ```
#
jamietanna
whereas they should be interpolated, right?
#
aaronpk
your php might not have short_tags enabled
#
aaronpk
short_open_tag
#
jamietanna
That's correct! Solved it
Loqi, [arush]1, [fluffy]1, beko_, GWG, djmoch, joshproehl, Seirdy, raucao, strugee, jeremycherfas and [chrisaldrich] joined the channel
#
jamietanna
So for https://github.com/aaronpk/micropub.rocks/pull/87 I've got it working the base test working, but looking at what to do next - few questions
#
Loqi
[jamietanna] #87 WIP: New test case for multiple authentication methods being sent
#
jamietanna
Firstly, should we be checking it's an OAuth2-compliant error (with the `www-authenticate` header)? or is that a bit overkill for the folks who are implementing Micropub?
#
jamietanna
Secondly, should this also be a client test (I'd say yes?) to validate that clients are being well-formed?
#
jacky
https://noctule.jacky.wtf/s/8iNYXRNecigXrgp a rough peek of what I'm getting Fortress to look like
#
jacky
most of that wouldn't be stored in the db - just a cache layer b/c there's no reason (yet) to keep it longer than that
#
jacky
but I _really_ want that 'log' of actions
#
aaronpk
jamietanna: yeah i don't think we ever required specific www-authenticate errors in micropub
#
aaronpk
and yeah probably a good idea to add a corresponding test to check clients
[scojjac] joined the channel
#
jamietanna
oooh that's awesome jacky++ - such a nice way of presenting it to the user
#
jacky
definitely got the idea from Google's dashboard of things
#
jacky
the timeline will require some kind of feedback from a Micropub endpoint to get those payloads
#
jamietanna
I was thinking of having an "audit" of when tokens were issues / introspected as that's pretty straightforward, but having a view from resource servers would be cool
KartikPrabhu and [schmarty] joined the channel
#
jacky
yeah!
#
jamietanna
struggling to get .rocks running locally with Nginx+FPM, anyone able to give me a hand? D:
nekr0z joined the channel
#
jacky
I don't have a lot of experience doing that locally
fredcy_ joined the channel
#
jamietanna
been a while since I've PHP'd tbh
#
[KevinMarks]
I use MAMP locally on the mac
#
jamietanna
I think I'll leave it till tomorrow, but would be good to know how to replace the `php -S 127.0.0.1:8080 -t public` with FPM
[snarfed], gRegorLove, [cleverdevil] and benwerd joined the channel
#
@RobertHaisfield
↩️ I think some combo of http://Hypothes.is and WebMentions could be a really formidable combination here, and maybe some way to upvote/downvote. Then I could have a sort of ranking for all of my pages of most upvoted and most opened.
(twitter.com/_/status/1365084236961615873)
#
jacky
from those logs, it looks like your Mastodon account didn't give Bridgy the needed permissions
#
jacky
did you first give Brid.gy permission to publish on Twitter on Mastodon?
#
jacky
what's the URL for the page on Brid.gy?