Update LikeService, improve likedBy logic to soft fail on missing or deleted accounts

pull/4363/head
Daniel Supernault 2 years ago
parent df444851b5
commit 91ba139808
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -85,7 +85,10 @@ class LikeService {
return $empty;
}
$id = $like->profile_id;
$profile = ProfileService::get($id);
$profile = ProfileService::get($id, true);
if(!$profile) {
return [];
}
$profileUrl = "/i/web/profile/{$profile['id']}";
$res = [
'id' => (string) $profile['id'],

Loading…
Cancel
Save