mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
Turns out you should be able to see replies too
This commit is contained in:
parent
e1363f0dac
commit
68e764a36e
1 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue