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 73d95b34 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Don't list messages that can't be read by user

Should fix unvalidated/moderated message readability bug reported by Phil
parent f38adc13
......@@ -1449,6 +1449,8 @@ function load_msgs(msgbase, which, mode, usernumber)
msg.score = 0;
if((msg.attr&MSG_DELETE) && !(mode&LM_INCDEL))
continue;
if(msg.can_read === false)
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