X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLike.php;h=a43e38045c8c611213a81ba7b240ebd2a98603c9;hb=18807ae21d3f18e187a524ea2dfb12830feb8ca3;hp=f57cbadfd357516abe30977c63f3d6faf4a74484;hpb=0046e62077ff71559624f48667d844b12efcf65b;p=friendica.git diff --git a/src/Module/Like.php b/src/Module/Like.php index f57cbadfd3..a43e38045c 100644 --- a/src/Module/Like.php +++ b/src/Module/Like.php @@ -4,6 +4,7 @@ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Model\Item; +use Friendica\Core\Session; use Friendica\Network\HTTPException; use Friendica\Util\Strings; @@ -14,7 +15,7 @@ class Like extends BaseModule { public static function rawContent() { - if (!local_user() && !remote_user()) { + if (!Session::isAuthenticated()) { throw new HTTPException\ForbiddenException(); }