We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ebd534 commit 78d5429Copy full SHA for 78d5429
1 file changed
src/GraphJS/Controllers/ForumController.php
@@ -228,7 +228,15 @@ function (string $key): bool {
228
},array_map( function(Reply $r): User {
229
return $r->tail()->node();
230
}, $thing->getReplies()));
231
- $contributors[] = $author;
+ $contributors[] = array_change_key_case(
232
+ array_filter(
233
+ $author->attributes()->toArray(),
234
+ function (string $key): bool {
235
+ return strtolower($key) != "password";
236
+ },
237
+ ARRAY_FILTER_USE_KEY
238
+ ), CASE_LOWER
239
+ );
240
foreach($contributors as $contributor) {
241
foreach($contributor as $k=>$v) {
242
if(!isset($contributors_x[$k]))
0 commit comments