Skip to content

Commit 78d5429

Browse files
author
Emre Sokullu
committed
founder in the list
1 parent 0ebd534 commit 78d5429

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/GraphJS/Controllers/ForumController.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,15 @@ function (string $key): bool {
228228
},array_map( function(Reply $r): User {
229229
return $r->tail()->node();
230230
}, $thing->getReplies()));
231-
$contributors[] = $author;
231+
$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+
);
232240
foreach($contributors as $contributor) {
233241
foreach($contributor as $k=>$v) {
234242
if(!isset($contributors_x[$k]))

0 commit comments

Comments
 (0)