Merge pull request #7678 from annando/remote-rework
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 30 Sep 2019 13:18:43 +0000 (09:18 -0400)
committerGitHub <noreply@github.com>
Mon, 30 Sep 2019 13:18:43 +0000 (09:18 -0400)
Reworked the remote authentication

1  2 
mod/item.php

diff --cc mod/item.php
@@@ -42,10 -43,10 +43,10 @@@ use Friendica\Util\Security
  use Friendica\Util\Strings;
  use Friendica\Worker\Delivery;
  
 -require_once 'include/items.php';
 +require_once __DIR__ . '/../include/items.php';
  
  function item_post(App $a) {
-       if (!local_user() && !remote_user()) {
+       if (!Session::isAuthenticated()) {
                return 0;
        }