#social 2018-07-07

2018-07-07 UTC
bitbear, timbl, tantek, xmpp-social and pippo joined the channel
#
fr33domlover
"A node object must be a JSON object. All keys which are not IRIs, compact IRIs, terms valid in the active context, or one of the following keywords must be ignored when processed"
#
fr33domlover
So can a node object have keys that are blank node identifiers?
#
fr33domlover
Spec generally suggests that yes (generalized RDF), playground seems to allow that, but that one line omits blanks it seems
#
fr33domlover
Hmmm JSON-LD 1.1 doesn't seem to change that line either
cwebber2, jeremy, timbl_, vasilakisfil and vasilakisfil__ joined the channel
#
ahihi
i'm testing my api using mastodon (hosted on someone else's server) and it doesn't show my posts in the toots view. how to debug this?
#
ahihi
do i need to set up my own mastodon instance to see what it's doing, or is there an easier way?
#
nightpool[m]
ahihi: what do you mean by "toots view"?
#
nightpool[m]
hmm. What response are you getting from the server when you post the activities?
#
ahihi
i only have this outbox so far: https://apub.foldplop.com/_outbox
#
ahihi
trying to view the existing posts with mastodon by searching my user@host
#
aaronpk
afaik mastodon doesn't actually fetch posts from the outbox, you have to deliver them to the mastodon user's inbox
#
ahihi
oh..
#
nightpool[m]
yeah you have to actually send the activities to the server before it knows about them
#
ahihi
it does seem to fetch the post count from the outbox, so i figured it would take the posts as well
#
nightpool[m]
nah, that's just so the numbers are correct
#
nightpool[m]
people love numbers
#
aaronpk
oh is that how that works?
#
aaronpk
adds a minimal outbox
#
aaronpk
I didn't actually build an outbox for my site cause it turns out nobody was using it
#
ahihi
:D
#
aaronpk
but if it's pulling counts from the outbox... then I will add that property :D
#
ahihi
so if someone just looks up my profile (w/o following), how do they get my posts? where do i send the activities?
#
aaronpk
they have to follow you first
#
aaronpk
tbh it seems a bit weird that mastodon doesn't show someone's posts until you follow them. I do think it should fetch the latest few from the outbox to show them before following
#
ahihi
it does show them when i try looking up other users
#
ahihi
is that just because someone on my instance already follows them?
#
aaronpk
I think so yeah
#
ahihi
aha alright
#
ahihi
many thanks
#
aaronpk
wow it takes two requests to get posts out of an outbox?
#
dansup
depends on how the outbox is implemented
#
aaronpk
oh great lol
#
dansup
pleroma has inline orderedcollection
#
aaronpk
so if "first" is a URL, then you have to go fetch it. but it might also be an object, in which case the posts are there?
#
dansup
yeah
#
aaronpk
since apparently mastodon doesn't, do other implementations actually use the outbox posts?
#
dansup
Misskey does the same as pleroma too. https://misskey.xyz/users/57d01a501fdf2d07be417afe/outbox
#
aaronpk
i'm not sure what i'm supposed to get out of that medium post
#
aaronpk
do any of these implementation *consume* the list of posts in someone's outbox, or do they all rely on inbox notifications to get new posts?
#
dansup
inbox notifications for S2S, C2S probably uses outbox more.
#
dansup
I use outbox to import posts for remote followers that don't exist but that is unlike mastodon or pleroma
#
aaronpk
can someone who is not already following me plz search for my profile and tell me if it shows the number of posts on my profile now? @aaronpk@aaronparecki.com
#
aaronpk
I think mastodon is caching it and I am running out of mastodon accounts to test with
#
ahihi
it says 41K
#
aaronpk
thanks
timbl joined the channel
#
aaronpk
found a new thing in activitypub I need to implement apparently
#
nightpool[m]
hm/
#
nightpool[m]
?
#
aaronpk
lemme see if I can find it in the spec first
#
aaronpk
i've been able to be followed as well as reply to people without implementing that so far
#
aaronpk
but I guess when you plug in one of my posts into the mastodon search box, it tries to fetch the post to show it as a preview? I *think* that's the section of the spec that covers that?
#
aaronpk
okay well that didn't work
#
aaronpk
oh i'm missing @context maybe that's it
#
aaronpk
yep that was it
#
dansup
aaronpk: You can add .json to mastodon statuses too. https://mastodon.social/@pixelfed/100331369480345396
#
Loqi
[pixelfed] Direct Messages. A simulated conversation between @mike and @dansup
#
aaronpk
does mastodon fetch the .json URLs tho?
#
aaronpk
when you paste a post's URL into the search?
#
aaronpk
I didn't see that request being made to my server so I assume not
#
dansup
thats correct
#
dansup
they use the AP method iirc
fr33domlover, fr33domlover1 and fr33domlover2 joined the channel
#
nightpool[m]
aaronpk: the json urls are just a convenience for debugging
#
nightpool[m]
ruby handles them automatically with how it handles mime types
#
aaronpk
they are certainly more convenient than content negotiation
fr33domlover3 joined the channel
#
nightpool[m]
`apcurl () { curl -H "Accept: application/activity+json" "$@" | jq; }`
fr33domlover4 joined the channel
#
aaronpk
an example of someone confused by not being able to find my post from an instance that was not already following me https://mastodon.social/@xuv/100335631264029001
#
Loqi
[Julien Deswaef] @aaronpk PS: I should mention that I started following you from the other instance. But still could not see your post before searching for it.
fr33domlover, fr33domlover1, fr33domlover2, fr33domlover3, fr33domlover4 and timbl joined the channel