Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 998af2f8 authored by Rob Swindell's avatar Rob Swindell 💬

Perform deleted-msg filtering for all message bases, not just mail

Issue reported by plt2 via IRC.
parent 7257154c
......@@ -1412,8 +1412,6 @@ function load_msgs(msgbase, which, mode, usernumber)
var total_msgs = idxlist.length;
for(var i = 0; i < total_msgs; i++) {
var idx = idxlist[i];
if((idx.attr&MSG_DELETE) && !(mode&LM_INCDEL))
continue;
if((idx.attr&MSG_SPAM)) {
if(mode&LM_NOSPAM)
continue;
......@@ -1449,6 +1447,8 @@ function load_msgs(msgbase, which, mode, usernumber)
msg.attributes = msg_attributes(msg, msgbase);
msg.num = msgs.length + 1;
msg.score = 0;
if((msg.attr&MSG_DELETE) && !(mode&LM_INCDEL))
continue;
if(msg.upvotes)
msg.score += msg.upvotes;
if(msg.downvotes)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment