FIX: Stop time tracking for a deleted topic/post

AI-generated summary

small-lovely-cat addressed a bug where time tracking for deleted topics or posts caused category moderators’ browsers to send dozens of 404 requests to /topics/timings. The fix, implemented in PR #45425, stops time tracking for these cases and includes a QUnit test to cover the scenario. small-lovely-cat requested feedback on the changes, and sam confirmed the fix looked correct and thanked the contributor.

For category moderators, the time tracking for a deleted topic/posts under a deleted topic will cause dozens of 404 requests trying to post to /topics/timings.

This commit stops the time tracking for that case, also adds a qunit test to cover that case.

1 Like

any ideas about this? :meow_heart:

Looks correct to me, thanks!

1 Like

This topic was automatically closed after 16 hours. New replies are no longer allowed.