use Friendica\BaseModule;
use Friendica\Model\Item;
+use Friendica\Core\Session;
use Friendica\Network\HTTPException;
use Friendica\Util\Strings;
{
public static function rawContent()
{
- if (!local_user() && !remote_user()) {
+ if (!Session::isAuthenticated()) {
throw new HTTPException\ForbiddenException();
}