Link remote comments on frontend
This commit is contained in:
parent
9af54707b9
commit
375886b3de
1 changed files with 5 additions and 3 deletions
|
@ -201,10 +201,12 @@ class Activitypub {
|
|||
* @return string $url
|
||||
*/
|
||||
public static function remote_comment_link( $comment_link, $comment ) {
|
||||
if ( ! is_admin() ) {
|
||||
$remote_comment_link = get_comment_meta( $comment->comment_ID, 'source_url', true );
|
||||
if ( $remote_comment_link ) {
|
||||
$comment_link = esc_url( $remote_comment_link );
|
||||
}
|
||||
}
|
||||
return $comment_link;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue