fix var name

This commit is contained in:
Django Doucet 2023-03-10 15:46:21 -07:00
parent 86c8148cde
commit 3017e10e06

View file

@ -249,7 +249,7 @@ class Activity_Dispatcher {
*/
public static function send_update_comment_activity( $activitypub_comment_id ) {
$activitypub_comment = \get_comment( $activitypub_comment_id );
$updated = \get_comment_meta( $comment->comment_ID, 'ap_last_modified', true );
$updated = \get_comment_meta( $activitypub_comment_id, 'ap_last_modified', true );
$user_id = $activitypub_comment->user_id;
if ( ! $user_id ) { // Prevent sending received/anonymous comments.