Uses activitypub mixin in relationship models
plus tests
This commit is contained in:
parent
e8ef8f7101
commit
2a0af0138d
4 changed files with 167 additions and 22 deletions
|
@ -129,7 +129,7 @@ def handle_follow(activity):
|
|||
relationship = models.UserFollowRequest.objects.create(
|
||||
user_subject=user,
|
||||
user_object=to_follow,
|
||||
relationship_id=activity['id']
|
||||
remote_id=activity['id']
|
||||
)
|
||||
except django.db.utils.IntegrityError as err:
|
||||
if err.__cause__.diag.constraint_name != 'userfollowrequest_unique':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue