Skip to content

Commit

Permalink
Update ossn_com.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lianglee committed Jan 13, 2022
1 parent a7b779d commit 07ac792
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/OssnComments/ossn_com.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ function ossn_comments_notify_participant($callback, $type, $vars) {
$post = $wall->GetPost($postguid);
if($post) {
$owner_type_guid = $post->owner_guid;
if($type == 'owner:poster:match'){
//means posted on different user
//and no one commented then
if(!in_array($post->poster_guid, $guids)){
array_push($guids, $post->poster_guid);
}
}
}
}
}
Expand Down Expand Up @@ -566,4 +573,4 @@ function ossn_comment_view($params, $template = 'comment') {
$vars = ossn_call_hook('comment:view', 'template:params', $params, $params);
return ossn_plugin_view("comments/templates/{$template}", $vars);
}
ossn_register_callback('ossn', 'init', 'ossn_comments');
ossn_register_callback('ossn', 'init', 'ossn_comments');

0 comments on commit 07ac792

Please sign in to comment.