fix(notifications): remove cache inconsistencies when marking notification as read

This commit is contained in:
Yassine Doghri 2022-12-09 16:44:59 +00:00
commit 46d70541d3
4 changed files with 4 additions and 34 deletions

View file

@ -85,10 +85,7 @@ class NotificationController extends BaseController
$post = (new PostModel())->getPostById($this->notification->post_id);
return redirect()->route(
'post',
[esc((new PodcastModel())->getPodcastByActorId($this->notification->actor_id)->handle), $post->id]
);
return redirect()->route('post', [$this->podcast->handle, $post->id]);
}
public function markAllAsRead(): RedirectResponse