We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit f10625f8 authored by mattl's avatar mattl

file and avatar dirs on instances with no such dirs in filesystem

parent 338df7e3
......@@ -191,6 +191,12 @@ class Nickname
$paths[$matches[1]] = true;
// FIXME: this assumes the 'path' is in the first-level directory, though common it's not certain
foreach (['avatar', 'attachments'] as $cat) {
$paths[basename(common_config($cat, 'path'))] = true;
return in_array($str, array_keys($paths));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment