diff --git a/forum/backends/mysql/api.py b/forum/backends/mysql/api.py index 93591ac8..66aada4f 100644 --- a/forum/backends/mysql/api.py +++ b/forum/backends/mysql/api.py @@ -861,7 +861,7 @@ def threads_presentor( for thread_id in thread_ids: thread = threads.get(id=thread_id) is_read, unread_count = read_states.get( - thread.pk, (False, thread.comment_count) + str(thread.pk), (False, thread.comment_count) ) is_endorsed = threads_endorsed.get(thread.pk, False) abuse_flagged_count = threads_flagged.get(str(thread.pk), 0)