New version of black, new whitespace

This commit is contained in:
Mouse Reeve
2021-04-26 09:15:42 -07:00
parent ef83eb33b0
commit 3ade2d3bb1
152 changed files with 1289 additions and 1289 deletions

View File

@ -5,25 +5,25 @@ from .helpers import get_user_from_username, privacy_filter
# pylint: disable=no-self-use, unused-argument
class RssFeed(Feed):
""" serialize user's posts in rss feed """
"""serialize user's posts in rss feed"""
description_template = "snippets/rss_content.html"
title_template = "snippets/rss_title.html"
def get_object(self, request, username):
""" the user who's posts get serialized """
"""the user who's posts get serialized"""
return get_user_from_username(request.user, username)
def link(self, obj):
""" link to the user's profile """
"""link to the user's profile"""
return obj.local_path
def title(self, obj):
""" title of the rss feed entry """
"""title of the rss feed entry"""
return f"Status updates from {obj.display_name}"
def items(self, obj):
""" the user's activity feed """
"""the user's activity feed"""
return privacy_filter(
obj,
obj.status_set.select_subclasses(),
@ -31,5 +31,5 @@ class RssFeed(Feed):
)
def item_link(self, item):
""" link to the status """
"""link to the status"""
return item.local_path