#social 2018-07-02

2018-07-02 UTC
bblfish joined the channel
#
aaronpk
dansup: how are you using https://github.com/99designs/http-signatures-guzzlehttp? It doesn't look like it supports RSA signatures
#
Loqi
[99designs] http-signatures-guzzlehttp: Guzzle 6 support for 99designs http-signatures library
kaniini joined the channel
#
aaronpk
where does mastodon/activitypub get the profile photo from?
#
nightpool[m]
icon
#
nightpool[m]
and `image` is the background header
#
aaronpk
hm I think I thought "image" was the profile photo at first
#
aaronpk
how hard does it cache profiles?
#
aaronpk
is there a way to force it to update the profile info?
#
aaronpk
here's my actor object, does this look right? https://aaronparecki.com/2018/07/01/17/
#
Loqi
[Aaron Parecki] aaronpk.json
#
nightpool[m]
mmmmm i think just putting the url into the search box will re-fetch it
#
nightpool[m]
aaronpk: that object looks legit to me
#
aaronpk
k I think I just need to trigger it to fetch my profile again then
#
aaronpk
searching doesn't seem to do that
#
nightpool[m]
try using the webfinger addresses
#
aaronpk
I'm typing "@aaronpk@aaronparecki.com" into the search box
#
nightpool[m]
ah
#
nightpool[m]
then I'd suggest trying the opposite, putting https://aaronparecki.com/aaronpk into the search bar
#
Loqi
Aaron Parecki
#
nightpool[m]
i can never remember which one works so I just use both haha
#
aaronpk
that returns "503"
#
nightpool[m]
are you actually serving the json there?
#
nightpool[m]
at the id location?
#
nightpool[m]
503 does sound like an error
#
nightpool[m]
fwiw this is what I see:
#
nightpool[m]
when using the webfinger address
#
aaronpk
yeah if you send the accept header it returns json
#
aaronpk
it clearly worked once because it's showing my face as the background image
#
aaronpk
um that's a localhost URL
#
nightpool[m]
??
#
nightpool[m]
weird.
#
nightpool[m]
i just used matrix's built in thing
#
nightpool[m]
the bridge must be fucked
#
aaronpk
does it send "application/json" in the accept header?
#
aaronpk
actually if it sends "application/activity+json" it'll get the JSON response too
#
nightpool[m]
it does
#
nightpool[m]
i dunno i'll take a look at the logs in the morning
#
nightpool[m]
seems to be working now though using webfinger
#
aaronpk
hey it is just a caching thing!
#
aaronpk
I just replied to one of your toots and it worked!
#
nightpool[m]
cool!
#
nightpool[m]
no idea why the direct uri resolution is borked but ¯_(ツ)_/¯
#
aaronpk
caching is hard
#
nightpool[m]
(i didn't get a notification because it didn't Mention me, fyi)
#
aaronpk
oh weird
#
nightpool[m]
I see the reply now if I go to your profile or the post in question though
#
aaronpk
do I have to say "@nightpool" in the toot or include a hyperlink to your full "https://cybre.space/@nightpool" URL?
#
nightpool[m]
aaronpk: the important thing is the tags array
#
nightpool[m]
one sec there's a good section in the as2 spec about this
#
nightpool[m]
the href is cosmetic and can basically be whatever you want
#
nightpool[m]
the tags array is what's machine readable
#
aaronpk
but the content still has to have that string or no?
#
nightpool[m]
it's not required
#
nightpool[m]
because anyone can use whatever microsyntax they want
#
aaronpk
so I could just add the tags array and leave content as is?
#
nightpool[m]
yeah
#
nightpool[m]
it would be a little weird for mastodon users to see a notification without getting tagged but if it's in reply to a post it's probably not that bad
#
nightpool[m]
gets a little more complicated when you're trying to notify all the people who are interested in a thread—then you'd want to have it in the content, so users can remove others who shouldn't be notified.
#
nightpool[m]
Up To You Though
#
nightpool[m]
if it becomes a ux problem that people are Mentioning others without including them in the contet that's on us to resolve probably
bblfish, xmpp-social, fr33domlover, vasilakisfil, timbl, bblfish_, tantek, jankusanagi_, JanKusanagi, jankusanagi__ and saranix joined the channel
#
cwebber2
> “I resent the control corporations have over people and their everyday lives. I hate the surveillance society we have accidently brought upon ourselves,” says Amy Guy, a coder from Scotland who helped build a platform called ActivityPub to connect decentralized Web sites.
#
aaronpk
now let's see if I can "like" a post
#
aaronpk
worked!
#
aaronpk
aw, mastodon doesn't show the list of people that liked a post?
#
nightpool[m]
you can view it in the web interface
#
nightpool[m]
but not from the static page
#
aaronpk
attempts to find the post in the web interface
#
nightpool[m]
just put the url into the search bar :P
#
aaronpk
hm, I think the "like" wasn't federated to mastodon.xyz
#
aaronpk
I mean mastodon.social
#
aaronpk
mastodon.xyz shows the count incremented but mastodon.social does not
#
nightpool[m]
what instance was the post on?
#
nightpool[m]
likes only get sent to the instance they were created on
#
aaronpk
I copied the example from the activitypub spec. do I need to add more magic to make it work?
#
nightpool[m]
was the post on mastodon.xyz?
#
nightpool[m]
then that's expected behavior
JanKusanagi joined the channel
#
aaronpk
well it worked then
#
nightpool[m]
woo!
#
aaronpk
do I need to tag the person in order for them to see the notification?
#
nightpool[m]
for the like? no
#
jaywink[m]
doesn't mastodon forward likes to other instances that have the original post?
#
nightpool[m]
no
#
nightpool[m]
we forward replies
#
jaywink[m]
but replies are sent?
#
nightpool[m]
but forwarding likes never seemed very useful.
#
aaronpk
would appreciate if someone takes a look at this https://github.com/tootsuite/mastodon/issues/7926
#
Loqi
[aaronpk] #7926 Microformats markup on spoiler posts is wrong
#
aaronpk
alright, I can at least now comment and like activitypub posts from my site, and receive replies. I'm also following a few people in my reader Monocle now by following mastodon's Atom feeds.
#
nightpool[m]
aaronpk: where's the current mf spec?
#
nightpool[m]
trying to understand what p-name should be used for
#
Loqi
[Tantek Çelik] h-entry is a simple, open format for episodic or datestamped content on the web. h-entry is often used with content intended to be syndicated, e.g. blog posts. h-entry is one of several open microformat standards suitable for embedding data in HTML. ...
#
Loqi
[Tantek Çelik] h-entry is a simple, open format for episodic or datestamped content on the web. h-entry is often used with content intended to be syndicated, e.g. blog posts. h-entry is one of several open microformat standards suitable for embedding data in HTML. ...
#
aaronpk
where "note" means tweet/toot/post without title
#
nightpool[m]
right
#
aaronpk
I thought it was interesting that the spoiler warning view ends up making toots look essentially like a note with a title
#
nightpool[m]
yeah that's basically how we represent it in AP
#
nightpool[m]
the spoiler is the "summary" and the content is the rest of the post
#
aaronpk
that makes sense
#
aaronpk
also a semi-recent change in the microformats parsing spec means that you can now safely completely leave off the "name" class if there are other microformats properties present
#
aaronpk
it used to be that the parser would try to make an implied name, which ended up causing weird issues, so it was dropped in certain cases
#
aaronpk
point is, if you want, you could also just remove the p-name
#
nightpool[m]
the problem is that if we move p-name to the spoiler item, then there's no p-name if there's no spoiler
#
nightpool[m]
so i think maybe just dropping it makes the most sense
#
aaronpk
oh yeah that's true. you'd have to add an additional else case if you wanted the p-name still
#
aaronpk
shoot, I think the ruby parser isn't updated with the new p-name rules tho
#
aaronpk
so yeah in the case where there is no spoiler text the best thing is to put the p-name class on the same element as e-content
#
aaronpk
how do I acknowledge a follow? I did what I thought the spec said but it apparently didn't work even though mastodon.social sent back a 202
#
nightpool[m]
202 just means it was parsed correctly
#
nightpool[m]
activities are processed asycn
#
nightpool[m]
async
#
aaronpk
so 202 basically says the signature worked then?
#
nightpool[m]
yeah
#
aaronpk
so I tried sending a JSON object with type=Accept, actor=my URL, object=https://mastodon.social/a1ae6622-4944-4e7b-8507-50d18e24bef8 which is the value I got for the "id" of the Follow activity
#
nightpool[m]
ah yeah
#
nightpool[m]
mastodon is being a little wonky here. it expects you to embed a follow object
#
nightpool[m]
because it thinks of them as somewhat ephemeral
#
nightpool[m]
there's no real reason what you did shouldn't work, it's just that we've never really needed to before
#
aaronpk
see this is why multiple implementations improve things ;-)
#
aaronpk
so I need to make the "object" basically the same Follow object I got before? so it'll have id, type, actor and object properties itself?
#
nightpool[m]
yeah
#
aaronpk
wow mastodon.social is super slow right now
#
aaronpk
of course the *one* other instance I try to go sign up on is using the old http sig code
#
nightpool[m]
lol
#
aaronpk
looks like 2.3.3 expects the "algorithm" key in the header line
#
aaronpk
but i'm confused about this line https://github.com/tootsuite/mastodon/blob/master/app/controllers/concerns/signature_verification.rb#L30 which seems to require exactly 3 properties in the signature line
#
aaronpk
will that fail if I add the algorithm?
#
aaronpk
cause then it'll have 4... keyId=,headers=,algorithm=,signature=
#
aaronpk
ohhhh that's counting something different lol nvm
#
nightpool[m]
no no
#
aaronpk
that's just splitting key=value
#
nightpool[m]
that's requiring three things in the rege-
#
nightpool[m]
yeah
#
nightpool[m]
dropping signature was a pretty recent change in the httpsig spec haha
#
aaronpk
oh did the spec drop it?
#
aaronpk
how do you know what algorithm it's signed with then?
#
nightpool[m]
they made it optional yeah
#
nightpool[m]
the idea is that the keyid specifies somehow
#
nightpool[m]
using out-of-band metadata
#
nightpool[m]
sorry my computer's lagging out a bit :(
#
aaronpk
guess I have to still send it for now tho
#
nightpool[m]
yeah, we still send it too
#
aaronpk
I *think* I acknowledged the follow
#
nightpool[m]
woo!
#
nightpool[m]
turns out my computer was probably overheating
#
aaronpk
lol mastodon.social keeps timing out
#
aaronpk
poor server
#
technomancy
wow what the heck; they still haven't closed registrations?
#
nightpool[m]
they close it when stuff is bursty
#
technomancy
there should be a disclaimer in the signup process that "signing up on this instance means you're agreeing to be part of a load-test of the underlying software"
#
nightpool[m]
mm. normally it's pretty responsive.
#
nightpool[m]
i wonder if this is because of the vanityfair article cwebber2 linked
#
nightpool[m]
i pinged gargron about the timeouts
bblfish joined the channel
#
aaronpk
is "content" always HTML?
#
nightpool[m]
there's a contentType but it's html by default iirc
#
nightpool[m]
in mastodon it's always html
#
aaronpk
weird, I can't get my reply to show up in the notifications
#
aaronpk
I tried doing the Mention tag thing
#
aaronpk
and also adding a link in the content
#
Loqi
[Aaron Parecki] toot.json
#
nightpool[m]
i mean, that all looks right
bblfish joined the channel
#
aaronpk
waves to cwebber2
#
aaronpk
is following cwebber2 in his shiny new reader now
#
cwebber2
hi aaronpk
#
cwebber2
aaronpk: oh nice :)
#
nightpool[m]
aaronpk: i'm looking at the mastodon API now, and it looks like all three of those created valid mention records
#
nightpool[m]
so I have no idea why they're not showing up in notifications
#
nightpool[m]
maybe refresh? haha
#
aaronpk
no luck
#
nightpool[m]
ohhh
#
aaronpk
that's a good sound
#
nightpool[m]
you also have to include them in your 'to' audience.
#
aaronpk
oh wow
#
nightpool[m]
this is probably to prevent things from breaking the other way around, when you mention someone and didn't meant to include them
#
nightpool[m]
we can probably fix that for public/unlisted visibility posts.........
#
aaronpk
*that* worked!
#
aaronpk
nightpool++
#
Loqi
nightpool has 15 karma
#
aaronpk
oh hey mastodon.social finally accepted my follow acknowledgment
#
aaronpk
is it intentional that you only see the followers on the same instance?
#
nightpool[m]
yeah it doesn't fetch remote followers or anything
#
nightpool[m]
especially since you don't have an advertised followers collection :P
#
aaronpk
if it would parse it I might consider making one :)
#
nightpool[m]
well, it uses the count at least :P
#
aaronpk
well next I have to actually deliver my posts to people who are following me. but that sounds like a lot more work than what i've done so far
#
nightpool[m]
it's not particularly hard
#
nightpool[m]
you can optimize it by de-duplicating the sharedInbox routes if they exist
#
aaronpk
I figured that out
#
nightpool[m]
but otherwise it's just `followers.each{|f| deliver(activity, f.inbox)}`
#
aaronpk
am I supposed to keep ppls' inboxes up to date somehow? or can I assume it never changes?
#
nightpool[m]
however you conceptualize that in your code
#
nightpool[m]
mmm
#
nightpool[m]
it's pretty safe to assume it never changes
#
nightpool[m]
if you run into an error, you can try re-fetching the actor json
#
aaronpk
how do I avoid a bunch of stale followers eventually?
#
nightpool[m]
theoretically people will also send you Update activities
#
nightpool[m]
stale in which sense?
#
aaronpk
instances go down, etc
#
nightpool[m]
iirc, mastodon kicks them out after about a month of unsuccessful deliveries
#
nightpool[m]
one sec there's a bit about this in the ap spec
#
nightpool[m]
let me see if I can find it
#
nightpool[m]
mastodon's current behavior is "stop delivering to inboxes, but don't do anything to the followers collection"
#
nightpool[m]
which is maybe somewhat sketch, but if you come back online, i think there's a way to get us to start delivering to you again.
#
nightpool[m]
so we don't want to remove you entirely.
timbl joined the channel
#
aaronpk
alright, now why is mastodon showing only a link to my photo instead of expanding it?
#
nightpool[m]
bad type maybe?
#
aaronpk
oh I think I did image/jpg instead of image/jpeg
#
aaronpk
it's kind of annoying that I have to specify the type since browsers just deal with it when they get the url
#
aaronpk
i'm already saying it's an image using the "Image" object, that should be enough
#
aaronpk
sweet, image/jpeg worked
#
aaronpk
it seems mastodon is not using the published date of the object, it's showing the date the server received the activity. is that intentional?
#
aaronpk
sure wish I knew how to clear the cache on mastodon.social 😂 my profile is still missing my picture
#
nightpool[m]
normally resolving the url fixes it
#
nightpool[m]
don't know why it's not working in your case.
#
aaronpk
oh nvm on the published date. looks like 2.3.3 has that behavior but 2.4.x works like I expect
#
nightpool[m]
should be using the received date in both instances .....
#
nightpool[m]
sorry, the date the server recieved it
#
nightpool[m]
er. unless i'm misunderstanding this code, which is possible
#
nightpool[m]
oh nevermind
#
nightpool[m]
i'm an idiot
#
nightpool[m]
yeah if you send a message it will use the published time
#
nightpool[m]
but the snowflake will be based on the current date
#
aaronpk
well if you have any thoughts on how to get my profile updated on mastodon.social it would be appreciated
#
nightpool[m]
I'll take a look
#
aaronpk
how does that "remote follow" form work? are there docs on that?
#
nightpool[m]
it's an old gnu social feature
#
nightpool[m]
can't remember where the docs are
#
Loqi
[strk] #1665 remote subscribe to GNUSocial account fails
#
nightpool[m]
it uses the http://ostatus.org/schema/1.0/subscribe relation in the webfinger response
#
aaronpk
and then it just redirects the user there?
#
nightpool[m]
yeah
#
nightpool[m]
after substituting in the webfinger uri for the
#
nightpool[m]
sent a long message: nightpool[m]_2018-07-02_19:31:01.txt <http://localhost:8008/_matrix/media/v1/download/cybre.space/zaUYgJbTQFVurmJCwZYzdNhm>
#
nightpool[m]
s/for the/in the template/
bblfish, timbl, tantek, cybrematrix, nightpool[m], zauberstuhl[m] and csarven[m] joined the channel
#
aaronpk
boom now I have the remote subscribe button https://aaronparecki.com/aaronpk
#
Loqi
Aaron Parecki
#
dansup
aaronpk: Wicked!
bblfish joined the channel
#
tantek
aaronpk++
#
Loqi
aaronpk has 105 karma in this channel (1663 overall)
bblfish_ joined the channel
#
JanKusanagi
he's way more loved elsewhere!
#
aaronpk
any idea what "there was an error looking up the remote account" could mean? from mastodon 2.4.0, but it worked in 2.3.0 and 2.4.2
bblfish joined the channel
#
nightpool[m]
aaronpk: hard to diagnose without a traceback. which server is it?
#
aaronpk
mastodon.technology
#
nightpool[m]
aaronpk: in a quick overview i can't see anything specifically that changed from 2.4.0 to 2.4.2 that would impact it.....
#
aaronpk
hm k maybe it's some sort of https error or something
#
nightpool[m]
did you fix the mime type problem?
#
aaronpk
yeah, image/jpeg vs image/jpg
#
nightpool[m]
oh, I meant the application/json vs application/activity+json one
#
aaronpk
oh I didn't know that was a probelm
#
nightpool[m]
oh yeah sorry I said something earlier but it might have been while you were away:
#
nightpool[m]
sent a long message: nightpool[m]_2018-07-02_22:26:41.txt <http://localhost:8008/_matrix/media/v1/download/cybre.space/yArkwwYhsiEOHEzqSWgZTDdt>
#
aaronpk
oh, that's coming through as a localhost URL again
#
nightpool[m]
lol
#
nightpool[m]
huh
#
nightpool[m]
i'm just not seeing these messages on the irc side at all
#
nightpool[m]
that's frustrating
#
nightpool
aaronpk: i figured it out
#
nightpool
you're not serving it with the correct mime type
#
nightpool
you're serving application/json but it needs to be one of application/activity+json or application/ld+json; profile="https://www.w3.org/ns/activitystreams"
#
Loqi
[Amy Guy] ActivityStreams 2.0 Terms
#
nightpool
^^^ those were the messages
#
aaronpk
gotcha. this is my profile URL?
#
nightpool[m]
yeah
#
nightpool[m]
`test` test
#
nightpool[m]
aosdjfoajsdofjasodfjoasjdfaosdjfoajsdofjasodfjoasjdfaosdjfoajsdofjasodfjoasjdfaosdjfoajsdofjasodfjoasjdf profile="https://www.w3.org/ns/activitystreams"
#
Loqi
[Amy Guy] ActivityStreams 2.0 Terms
#
nightpool[m]
hmm. something to figure out another day I guess
#
nightpool[m]
at least I can fix those uris
#
aaronpk
cool, I think I fixed it
#
nightpool[m]
can you re-fetch your profile on mastodon.social now to fix the avatar?
#
aaronpk
maybe if mastodon.social would load 😂
#
aaronpk
is just searching supposed to fix it?
bblfish joined the channel
#
nightpool[m]
aaronpk: searching the url, yes
#
aaronpk
huh then still no luck
#
nightpool[m]
weird
#
aaronpk
super weird cause I even saw it request my profile photo in my server logs
#
nightpool[m]
worked on cybrespace (filled in the new background you had added)
#
aaronpk
oh nice
#
nightpool[m]
oh maybe refresh or something then
#
nightpool[m]
could be a caching issue
#
nightpool[m]
(the new sw cache is sometimes brutal)
#
aaronpk
hm no, but it did remove my background image (which used to be my face because I got "icon" and "image" wrong originally)
#
aaronpk
oh hey it has my background now! no image yet...
#
aaronpk
there it is!
#
aaronpk
I guess it was a caching thing!
tantek, bblfish, cybrematrix, jaywink[m], zauberstuhl[m], csarven[m] and nightpool[m] joined the channel
#
nightpool[m]
ping
#
Loqi
pong
#
nightpool[m]
sent a long message: nightpool[m]_2018-07-02_23:35:36.txt <https://matrix.cybre.space/_matrix/media/v1/download/cybre.space/rpPNPlgAsUBxoYuMJHTXeTJI>
the_frey joined the channel