1
0
Fork 0

Merge pull request #236 from mouse-reeve/relationship-activitypub

Uses activitypub mixin in relationship models
This commit is contained in:
Mouse Reeve 2020-10-16 11:04:14 -07:00 committed by GitHub
commit 43c6b9880a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 167 additions and 22 deletions

View file

@ -129,7 +129,7 @@ def handle_follow(activity):
relationship = models.UserFollowRequest.objects.create(
user_subject=actor,
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':