live tiles on home page, ninjaed from andrew might need to randomize starting times, can be disabled by removing the slider class from the div, maybe this should be a setting in admin/categories

This commit is contained in:
Baris Soner Usakli
2013-07-06 22:02:24 -04:00
parent 8f4848cc69
commit ac04bef26e
6 changed files with 137 additions and 13 deletions

View File

@@ -196,8 +196,6 @@ marked.setOptions({
RDB.del('cid:' + cid + ':read_by_uid', function(err, data) {
topics.markAsRead(tid, uid);
});
RDB.zadd('categories:recent_posts:cid:' + cid, Date.now(), pid);
});
Posts.getTopicPostStats(socket);
@@ -285,6 +283,8 @@ marked.setOptions({
feed.updateTopic(tid, cid);
RDB.zadd('categories:recent_posts:cid:' + cid, Date.now(), pid);
// this is a bit of a naive implementation, defn something to look at post-MVP
RDB.scard('cid:' + cid + ':active_users', function(amount) {
if (amount > 10) {
@@ -295,6 +295,8 @@ marked.setOptions({
});
});
user.onNewPostMade(uid, tid, pid, timestamp);
if (callback)