Turns out you should be able to see replies too

This commit is contained in:
Andrew Godwin 2023-01-02 17:42:38 -07:00
parent e1363f0dac
commit 68e764a36e

View file

@ -32,7 +32,7 @@ class Individual(TemplateView):
self.post_obj = get_object_or_404(
PostService.queryset()
.filter(author=self.identity)
.visible_to(request.identity),
.visible_to(request.identity, include_replies=True),
pk=post_id,
)
if self.post_obj.state in [PostStates.deleted, PostStates.deleted_fanned_out]:
@ -89,7 +89,9 @@ class Like(View):
def post(self, request, handle, post_id):
identity = by_handle_or_404(self.request, handle, local=False)
post = get_object_or_404(
PostService.queryset().filter(author=identity).visible_to(request.identity),
PostService.queryset()
.filter(author=identity)
.visible_to(request.identity, include_replies=True),
pk=post_id,
)
service = PostService(post)
@ -121,7 +123,9 @@ class Boost(View):
def post(self, request, handle, post_id):
identity = by_handle_or_404(self.request, handle, local=False)
post = get_object_or_404(
PostService.queryset().filter(author=identity).visible_to(request.identity),
PostService.queryset()
.filter(author=identity)
.visible_to(request.identity, include_replies=True),
pk=post_id,
)
service = PostService(post)