Skip to content
Snippets Groups Projects
Commit 427406b2 authored by echicken's avatar echicken :chicken:
Browse files

Don't try to store upvotes/downvotes for poll messages when sorting threads.

parent ab3d54fc
No related branches found
No related tags found
No related merge requests found
...@@ -845,8 +845,8 @@ function getMessageThreads(sub, max) { ...@@ -845,8 +845,8 @@ function getMessageThreads(sub, max) {
from_net_addr : header.from_net_addr, from_net_addr : header.from_net_addr,
to : header.to, to : header.to,
when_written_time : header.when_written_time, when_written_time : header.when_written_time,
upvotes : header.upvotes || 0, upvotes : (header.attr&MSG_POLL ? 0 : (header.upvotes || 0)),
downvotes : header.downvotes || 0 downvotes : (header.attr&MSG_POLL ? 0 : (header.downvotes || 0))
}; };
if (header.attr&MSG_POLL) { if (header.attr&MSG_POLL) {
header.field_list.sort( header.field_list.sort(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment