Move Config::get() to DI::config()->get()
This commit is contained in:
@@ -16,7 +16,7 @@ function post_var($name) {
|
||||
function pubsubhubbub_init(App $a) {
|
||||
// PuSH subscription must be considered "public" so just block it
|
||||
// if public access isn't enabled.
|
||||
if (Config::get('system', 'block_public')) {
|
||||
if (DI::config()->get('system', 'block_public')) {
|
||||
throw new \Friendica\Network\HTTPException\ForbiddenException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user