Minor formatting changes

This commit is contained in:
Mouse Reeve 2020-02-23 13:24:23 -08:00
parent e398acf45f
commit 20522cbd11
2 changed files with 7 additions and 4 deletions

View file

@ -207,9 +207,9 @@ def handle_incoming_follow(activity):
relationship_id=activity['id']
)
except django.db.utils.IntegrityError:
# Duplicate follow request. Not sure what the correct behaviour is, but just dropping
# it works for now. We should perhaps generate the Accept, but then do we need to match
# the activity id?
# Duplicate follow request. Not sure what the correct behaviour is, but
# just dropping it works for now. We should perhaps generate the
# Accept, but then do we need to match the activity id?
return HttpResponse()
outgoing.handle_outgoing_accept(user, to_follow, activity)

View file

@ -75,7 +75,10 @@ class UserRelationship(FedireadsModel):
class Meta:
constraints = [
models.UniqueConstraint(fields=['user_subject', 'user_object'], name='followers_unique')
models.UniqueConstraint(
fields=['user_subject', 'user_object'],
name='followers_unique'
)
]
@property