Failing update activities
There are many activities for Update User
because a link on the user has been updated - the settings update
{'@context': ['https://www.w3.org/ns/activitystreams', 'https://cdn.happy-dev.fr/owl/hdcontext.jsonld'], 'type': 'Update', 'actor': {'type': 'Service', 'name': 'Backlinks Service'}, 'object': {'@type': 'foaf:user', '@id': 'https://api.myserver.com/users/alice/', 'settings': {'@id': 'https://api.myserver.com/settings/1/', '@type': 'sib:usersettings'}}, 'summary': 'https://api.myserver.com/users/alice/ was updated'}
- Note that this is useless information for the receiver - but it's sent because it's a
Follower
of the user Alice. We create a follower on any backlink to getUpdate
s about it. In this case it's superfluous, but if for example I'm being told that theCircle
my user used to be an owner of has a new owner, I want to know - The receiver attempts to create a backlink for the
settings
object and it fails because it hits anIntegrityError
, because of the lack of nesteduser
in the activity for a required key. It's not smart enough to see that the user is actually the parent in the activity