#social 2018-10-23

2018-10-23 UTC
ben_thatmustbeme, up201705417, pantherse, aaronpk, xmpp-social, tantek, vasilakisfil, dmitriz, timbl, vasilakisfil_, dan, dlongley_ and davipeach joined the channel
#
davipeach
hello there
#
davipeach
Im working on a test site to learn ActivityPub and have question if I may?
#
puck
go ahead
#
davipeach
I have logged a follow request from mastodon to my test site
#
davipeach
Im just wondering, as an overarching idea, what I should I so with that info
#
davipeach
save in my db etc
#
davipeach
what are best / accepted practices?
#
davipeach
(im noob to AP)
#
davipeach
:)
#
davipeach
thanks in advance
#
puck
depends. All you need is the ID of the Follow, the actor, and the object. Mastodon only stores that, but some other pieces of software (like Kroeg and some others in development) store the entire object
#
dansup
davipeach: you are using laravel?
#
davipeach
ye
#
dansup
davipeach: nice so am I! Take a look at https://github.com/pixelfed/pixelfed
#
davipeach
nooice
#
davipeach
thanks for that
#
dansup
No problem, let me know if you have any questions!
timbl joined the channel
#
rialtate[m]
puck: I don't know if you already fixed this but I was processing actor Updates and you don't have @context in the updated object
dmitriz joined the channel
#
puck
rialtate[m]: that's not a bug
#
puck
I don't think Mastodon does either
#
rialtate[m]
puck: how is it not a bug? Update MUST send the complete object... Replacing the object with the supplied one would leave you with an incorrect copy
#
puck
no it wouldn't
#
puck
the @context is not part of the object
#
puck
it just tells you how to interpret it
#
rialtate[m]
> <@irc_puck:cybre.space> it just tells you how to interpret it
#
rialtate[m]
That can't be right. You would have to make an assumption that the conext hasnt changed and merge the 2 objects which is precisely what that MUST says not to do.
#
puck
rialtate[m]: the spec also says that it's all JSON-LD and SHOULD include the context, but you're not required to
#
puck
and not only that, but see e.g. example 7
#
puck
the @context is only on the root, but there's another @context in the object that overrides the language to english
#
rialtate[m]
So because json-ld the child object inherits the root context then?
#
puck
yes
xkr47 and Guest84 joined the channel