Prevent file upload in threads that reached the file limit.
Fix QR preventing from posting in sticky thread instead of locked thread.