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 9d87a980 authored by echicken's avatar echicken 🐔

The list-threads call wasn't actually backed by a function in...

The list-threads call wasn't actually backed by a function in ../../lib/forum.js.  It is now, and includes per-thread unread message counts.  Removed the get-unread-in-thread call.
parent 644256cc
......@@ -54,19 +54,6 @@ if ((http_request.method === 'GET' || http_request.method === 'POST') &&
}
break;
case 'get-thread-unread-count':
if (typeof http_request.query.sub !== 'undefined' &&
typeof http_request.query.thread !== 'undefined'
) {
reply.sub = http_request.query.sub[0];
reply.thread = http_request.query.thread[0];
reply.unread = getUnreadInThread(
http_request.query.sub[0],
http_request.query.thread[0]
);
}
break;
case 'get-mail-unread-count':
reply.count = getMailUnreadCount();
break;
......
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