Skip to content
Snippets Groups Projects
Commit 998af2f8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

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

Issue reported by plt2 via IRC.
parent 7257154c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment