Merge pull request #7446 from pixelfed/staging

Update DirectMessageController
staging^2
dansup 8 hours ago committed by GitHub
commit a23a243c62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -385,7 +385,7 @@ class DirectMessageController extends Controller
$res = FollowerService::getMutualsWithProfiles($user->profile_id, 10, $cursor);
if ($res && isset($res['total_count']) && is_int($res['total_count']) && $res['total_count'] > 100) {
if ($cursor && $res && isset($res['total_count']) && is_int($res['total_count']) && $res['total_count'] > 100) {
$empty = [
'data' => [],
'has_more' => false,

Loading…
Cancel
Save