|
@@ -76,7 +76,7 @@ class LikeService {
|
|
|
'others' => $status->likes_count >= 5,
|
|
|
];
|
|
|
|
|
|
- if(request()->user()->profile_id == $status->profile_id) {
|
|
|
+ if(request()->user() && request()->user()->profile_id == $status->profile_id) {
|
|
|
$res['total_count'] = $status->likes_count;
|
|
|
$res['total_count_pretty'] = number_format($res['total_count']);
|
|
|
}
|