Meneame / meneame.net

Source code for the social aggregator Menéame (this is now the central repository) https://www.meneame.net
GNU Affero General Public License v3.0
47 stars 17 forks source link

Notification of the author of the post... #12

Open evgip opened 5 years ago

evgip commented 5 years ago

And what was the intention not to notify the author of the post? Many users complain that after the publication of the post they do not receive a notification?

The actual solution is in 3 lines to do this.

if ($current_user->user_id != $to->user_id) { 
    User::add_notification($to->user_id, 'comment');
    $db->query("insert into conversations (conversation_user_to, conversation_type...
}