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']
|
relationship_id=activity['id']
|
||||||
)
|
)
|
||||||
except django.db.utils.IntegrityError:
|
except django.db.utils.IntegrityError:
|
||||||
# Duplicate follow request. Not sure what the correct behaviour is, but just dropping
|
# Duplicate follow request. Not sure what the correct behaviour is, but
|
||||||
# it works for now. We should perhaps generate the Accept, but then do we need to match
|
# just dropping it works for now. We should perhaps generate the
|
||||||
# the activity id?
|
# Accept, but then do we need to match the activity id?
|
||||||
return HttpResponse()
|
return HttpResponse()
|
||||||
|
|
||||||
outgoing.handle_outgoing_accept(user, to_follow, activity)
|
outgoing.handle_outgoing_accept(user, to_follow, activity)
|
||||||
|
|
|
@ -75,7 +75,10 @@ class UserRelationship(FedireadsModel):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
constraints = [
|
constraints = [
|
||||||
models.UniqueConstraint(fields=['user_subject', 'user_object'], name='followers_unique')
|
models.UniqueConstraint(
|
||||||
|
fields=['user_subject', 'user_object'],
|
||||||
|
name='followers_unique'
|
||||||
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue