]> git.mxchange.org Git - friendica.git/blobdiff - mod/hovercard.php
Merge remote-tracking branch 'upstream/2019.06-rc' into issue-6477
[friendica.git] / mod / hovercard.php
index 603c617ca4874107efb6833db9585405371f1570..ca399196368b71b3151d616924b8e59a8ab19cca 100644 (file)
@@ -31,7 +31,7 @@ function hovercard_content()
 
        // Get out if the system doesn't have public access allowed
        if (intval(Config::get('system', 'block_public'))) {
-               System::httpExit(401);
+               throw new \Friendica\Network\HTTPException\ForbiddenException();
        }
 
        // Return the raw content of the template. We use this to make templates usable for js functions.