[lint] Fix indentation in .py files.
This commit is contained in:
parent
4a8d9bee73
commit
1266a740e5
|
@ -46,9 +46,11 @@ def validate_username(value):
|
||||||
|
|
||||||
class ActivitypubFieldMixin:
|
class ActivitypubFieldMixin:
|
||||||
''' make a database field serializable '''
|
''' make a database field serializable '''
|
||||||
def __init__(self, *args, \
|
def __init__(
|
||||||
|
self, *args, \
|
||||||
activitypub_field=None, activitypub_wrapper=None,
|
activitypub_field=None, activitypub_wrapper=None,
|
||||||
deduplication_field=False, **kwargs):
|
deduplication_field=False, **kwargs
|
||||||
|
):
|
||||||
self.deduplication_field = deduplication_field
|
self.deduplication_field = deduplication_field
|
||||||
if activitypub_wrapper:
|
if activitypub_wrapper:
|
||||||
self.activitypub_wrapper = activitypub_field
|
self.activitypub_wrapper = activitypub_field
|
||||||
|
|
|
@ -74,8 +74,10 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
|
||||||
for mention_user in self.mention_users.all():
|
for mention_user in self.mention_users.all():
|
||||||
# avoid double-notifying about this status
|
# avoid double-notifying about this status
|
||||||
if not mention_user.local or \
|
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
|
continue
|
||||||
notification_model.objects.create(
|
notification_model.objects.create(
|
||||||
user=mention_user,
|
user=mention_user,
|
||||||
|
|
Loading…
Reference in New Issue