]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
AP: Support of request messages
[friendica.git] / src / App.php
index 316982dd281dd08e233b9ec4a490a3f185603a1b..9cde12499859cf5878910a87931f292374ae0725 100644 (file)
@@ -138,6 +138,16 @@ class App
                return $this->config->getCache();
        }
 
+       /**
+        * Returns the current config of this node
+        *
+        * @return Configuration
+        */
+       public function getConfig()
+       {
+               return $this->config;
+       }
+
        /**
         * The basepath of this app
         *
@@ -632,13 +642,18 @@ class App
                        '_well_known',
                        'api',
                        'dfrn_notify',
+                       'feed',
                        'fetch',
+                       'followers',
+                       'following',
                        'hcard',
                        'hostxrd',
+                       'inbox',
                        'manifest',
                        'nodeinfo',
                        'noscrape',
-                       'p',
+                       'objects',
+                       'outbox',
                        'poco',
                        'post',
                        'proxy',
@@ -1302,8 +1317,9 @@ class App
                        header($_SERVER["SERVER_PROTOCOL"] . ' 403 ' . Core\L10n::t('Permission denied.'));
                }
 
-               // Report anything which needs to be communicated in the notification area (before the main body)
-               Core\Hook::callAll('page_end', $this->page['content']);
+               if (!$this->isAjax()) {
+                       Core\Hook::callAll('page_end', $this->page['content']);
+               }
 
                // Add the navigation (menu) template
                if ($this->module != 'install' && $this->module != 'maintenance') {