From 427406b2090485bda1eedb7f28e3b59419f21d76 Mon Sep 17 00:00:00 2001 From: echicken <echicken@bbs.electronicchicken.com> Date: Wed, 23 Nov 2016 19:22:09 -0500 Subject: [PATCH] Don't try to store upvotes/downvotes for poll messages when sorting threads. --- web/lib/forum.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/lib/forum.js b/web/lib/forum.js index e85dbfe1f8..0341efddf1 100644 --- a/web/lib/forum.js +++ b/web/lib/forum.js @@ -845,8 +845,8 @@ function getMessageThreads(sub, max) { from_net_addr : header.from_net_addr, to : header.to, when_written_time : header.when_written_time, - upvotes : header.upvotes || 0, - downvotes : header.downvotes || 0 + upvotes : (header.attr&MSG_POLL ? 0 : (header.upvotes || 0)), + downvotes : (header.attr&MSG_POLL ? 0 : (header.downvotes || 0)) }; if (header.attr&MSG_POLL) { header.field_list.sort( -- GitLab