Skip to content
Snippets Groups Projects
Commit 08fca742 authored by Mark Harding's avatar Mark Harding
Browse files

Merge branch...

Merge branch 'sprint/GiddyGiraffe.fix.filter-out-corrupted-channel-in-subscribers-list' into 'master'

[Sprint/GiddyGiraffe] (fix): filter out corrupted channels in subscribers list

Closes front#318

See merge request !198
parents 6335dc83 3c449664
No related branches found
No related tags found
Loading
......@@ -88,7 +88,8 @@ class subscribe implements Interfaces\Api
}
$users = array_values(array_filter($users, function ($user) {
return ($user->enabled != 'no' && $user->banned != 'yes');
return ($user->enabled != 'no' && $user->banned != 'yes')
&& $user->guid && $user->username;
}));
$response['users'] = factory::exportable($users);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment