#social 2019-06-13

2019-06-13 UTC
vitalyster, xmpp-social and bblfish joined the channel; vitalyster left the channel
#
fr33domlover
o/
#
fr33domlover
When you store activities in actor outboxes, do those activities have an ID field?
#
fr33domlover
I mean do you add an 'id' field before storing
#
fr33domlover
(I guess yes? Otherwise the activity ID never actually gets communicated anywhere?)
#
rialtate[m]
Yes
#
fr33domlover
Thanks rialtate[m]
#
fr33domlover
Just wasn't sure for a moment ^_^
#
rialtate[m]
There's something in the spec about it specifically
#
fr33domlover
Because the only activity I federated was Create Note where the Create was implicitly created by the server :p
#
fr33domlover
Now adding more stuff yay
#
rialtate[m]
Yeah one thing that sometimes makes it easier to think about (in some situations) is to consider many impl to have the client in the server so to speak. Like your client can be a client, or it can be javascript on a webpage served by the server, or it can be logic in the server based on say html form input. The last one being the most common.
#
fr33domlover
rialtate[m], I'm doing the last one (to allow having a non-JS client) but also having a regular C2S implementation on the server, for C2S clients to use
#
fr33domlover
I guess I could hmm split the client-in-the-server part out of the code at some point, maybe eventually ^_^
#
rialtate[m]
Ha. My latest attempt has all AP C2S logic in outbox which gets translated to the native api before execution.
#
fr33domlover
rialtate[m], I guess when you have a native API you need some way for C2S to coexist with it like that; my app doesn't have a native API at all, it just had HTML forms and then I started adding federation, so I'm trying so far to have C2S as the only API and see if it works well that way ^_^
#
rialtate[m]
Interestingly enough, forms is the api ;)
#
rialtate[m]
Took me awhile to arrive at that optimization but it's pretty neat
#
rialtate[m]
writing the translation layer between that and the database right now
bblfish_, aaronpk, bblfish and dsjen joined the channel; vitalyster left the channel