git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit f10625f8 authored by mmn's avatar mmn

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