mirror of https://github.com/pixelfed/pixelfed
Fix AdminDirectoryController 500 on media_types validation
The media_types closure validator called $value->toArray(), but the value is a plain PHP array (built via explode()), causing a fatal 'Call to a member function toArray() on array' and a 500 when opening the Directory admin view. Normalize to an array before in_array() checks, handling both array and Collection inputs. Fixes #7311pull/7321/head
parent
f1effd1621
commit
6c90810f4a
Loading…
Reference in New Issue