Shift watched topics and watched boards to use alerts

Signed-off-by: Shitiz Garg <mail@dragooon.net>
New topics should have a different type in case required

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Magical typo

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Ensure that the background task can differentiate between topics and replies

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Mentions cleanup

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Cater for posts that are being approved

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Only send createPost notification if a topic is approved

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Allow limiting certain notifications to few members

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Convert sendNotifications to use background task

This should cover most of the moderation notifications

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Bye bye notifyMembersBoard, you will not be missed

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Allow notifications for quoting in a new topic

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Add strings for new alerts

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Check for board permissions while handling watched boards and topics

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Prevent alerts for content originator

Mentions are exempted in case someone wants to bookmark the topic

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Code cleanup

Also, fix board checking query part stuff

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Fix quote alerts

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Properly increment quoted member's alert count

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Add desktop notifications for Alerts

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Revert debug changes to cron.php

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Fix for the scenario when initial unread alerts are 0

Signed-off-by: Shitiz Garg <mail@dragooon.net>