Removes get activity feed function
This commit is contained in:
parent
0caea7e9ff
commit
7eb494b4ab
8 changed files with 27 additions and 174 deletions
|
@ -16,8 +16,8 @@ from django.views import View
|
|||
from bookwyrm import forms, models
|
||||
from bookwyrm.activitypub import ActivitypubResponse
|
||||
from bookwyrm.settings import PAGE_LENGTH
|
||||
from .helpers import get_activity_feed, get_user_from_username, is_api_request
|
||||
from .helpers import is_blocked, object_visible_to_user
|
||||
from .helpers import get_user_from_username, is_api_request
|
||||
from .helpers import is_blocked, privacy_filter, object_visible_to_user
|
||||
|
||||
|
||||
# pylint: disable= no-self-use
|
||||
|
@ -72,9 +72,9 @@ class User(View):
|
|||
break
|
||||
|
||||
# user's posts
|
||||
activities = get_activity_feed(
|
||||
activities = privacy_filter(
|
||||
request.user,
|
||||
queryset=user.status_set.select_subclasses(),
|
||||
user.status_set.select_subclasses(),
|
||||
)
|
||||
paginated = Paginator(activities, PAGE_LENGTH)
|
||||
goal = models.AnnualGoal.objects.filter(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue