[lint] Fix indentation in .py files.

This commit is contained in:
Fabien Basmaison 2021-03-04 19:06:12 +01:00
parent 4a8d9bee73
commit 1266a740e5
5 changed files with 12 additions and 8 deletions

View file

@ -46,9 +46,11 @@ def validate_username(value):
class ActivitypubFieldMixin:
''' make a database field serializable '''
def __init__(self, *args, \
def __init__(
self, *args, \
activitypub_field=None, activitypub_wrapper=None,
deduplication_field=False, **kwargs):
deduplication_field=False, **kwargs
):
self.deduplication_field = deduplication_field
if activitypub_wrapper:
self.activitypub_wrapper = activitypub_field

View file

@ -74,8 +74,10 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
for mention_user in self.mention_users.all():
# avoid double-notifying about this status
if not mention_user.local or \
(self.reply_parent and \
mention_user == self.reply_parent.user):
(
self.reply_parent and \
mention_user == self.reply_parent.user
):
continue
notification_model.objects.create(
user=mention_user,