forked from mirrors/bookwyrm
Minor formatting changes
This commit is contained in:
parent
e398acf45f
commit
20522cbd11
2 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue