ستحدث حلقة تحميل عند إزالة موضوع

For these steps:

  1. Login as a user, and read a topic;
  2. The admin/moderator removes the topic;
  3. Go up/down and trigger the fetch of the former/latter page.

Then the page will stuck in an infinite loading, with the console showing 403 forbidden getting /t/${this.topic.id}/posts.json. And if the website is protected by a waf, then the user will be banned from visiting it.

إعجاب واحد (1)

This seems reasonable to me, thanks for the PR.

What does the user see once the page is reloaded, a message along the lines of “Sorry, this page is forbidden/private”?

إعجاب واحد (1)

Yes, users will see message like this.
Just as what is on a normal 404 page.
(The user can’t access the topic, so I think the 404 logic is reasonable.)

Oops! The page does not exist or is not publicly accessible.
Take me home

إعجاب واحد (1)

Thanks @small-lovely-cat, your PR is now merged.

إعجاب واحد (1)

This topic was automatically closed after 3 days. New replies are no longer allowed.