Skip to content

Commit 26e3bf2

Browse files
pfefferleobenland
andauthored
Update includes/collection/class-remote-actors.php
Co-authored-by: Konstantin Obenland <[email protected]>
1 parent ae73021 commit 26e3bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/collection/class-remote-actors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ private static function cache_avatar( $post_id, $actor ) {
717717
$local_url = Attachments::save_actor_avatar( $remote_avatar_url, $post_id );
718718

719719
// Store the local URL if caching succeeded, otherwise store the remote URL.
720-
$avatar_url = $local_url ? $local_url : $remote_avatar_url;
720+
$avatar_url = $local_url ?: $remote_avatar_url;
721721
\update_post_meta( $post_id, '_activitypub_avatar_url', \esc_url_raw( $avatar_url ) );
722722
}
723723
}

0 commit comments

Comments
 (0)