implemented following users to receive (opt-in) email notifications when they publish an article.
This commit is contained in:
@@ -82,6 +82,12 @@ if (isset($_POST['form_id'])) {
|
||||
$_POST['delete_verify_password']
|
||||
);
|
||||
|
||||
break;
|
||||
case 'follow':
|
||||
follow_user($_SESSION['user_id'], $_POST['author_id'], ($_POST['follow'] == 'email_notify' ? 1 : 0));
|
||||
break;
|
||||
case 'unfollow':
|
||||
unfollow_user($_SESSION['user_id'], $_POST['author_id']);
|
||||
break;
|
||||
}
|
||||
echo $msg;
|
||||
|
||||
Reference in New Issue
Block a user