main ← small-lovely-cat:fix/loading-loop
opened 08:32AM - 15 Oct 25 UTC
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.
This commit fix this by adding a callback to refresh the whole page when ajax returned 403, and then the user will see a 404 page.
<img width="881" height="612" alt="image" src="https://github.com/user-attachments/assets/14e5db5b-cf6b-4b68-948c-44dd1de81450" />
Per questi passaggi:
Accedi come utente e leggi un argomento;
L’amministratore/moderatore rimuove l’argomento;
Scorri su/giù e attiva il recupero della pagina precedente/successiva.
Quindi la pagina si bloccherà in un caricamento infinito, con la console che mostra 403 forbidden ottenendo /t/${this.topic.id}/posts.json. E se il sito web è protetto da un waf, l’utente verrà bannato dalla visita.
1 Mi Piace
pmusaraj
(Penar Musaraj)
15 Ottobre 2025, 2:28pm
2
Mi sembra ragionevole, grazie per la PR.
Cosa vede l’utente una volta ricaricata la pagina, un messaggio del tipo “Spiacenti, questa pagina è proibita/privata”?
1 Mi Piace
Sì, gli utenti vedranno un messaggio simile.
Proprio come una normale pagina 404.
Ops! La pagina non esiste o non è accessibile pubblicamente.
Portami a casa
1 Mi Piace
pmusaraj
(Penar Musaraj)
16 Ottobre 2025, 6:09pm
4
Grazie @small-lovely-cat , la tua PR è ora unita.
1 Mi Piace
pmusaraj
(Penar Musaraj)
Chiuso
20 Ottobre 2025, 12:00pm
5
Questo argomento è stato chiuso automaticamente dopo 3 giorni. Non sono più ammessi nuovi messaggi.