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...
}
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.