X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fapi.php;h=9b9850f6facef2afe5a004a8544e8bd67f017735;hb=34260fc619af9561e0b6ed357ee061618e83b239;hp=3441f91158fa110eaf6e4d8c0756eeff4050d721;hpb=833b104c2534c09284ebb940c63aa1539193421e;p=friendica.git diff --git a/include/api.php b/include/api.php index 3441f91158..9b9850f6fa 100644 --- a/include/api.php +++ b/include/api.php @@ -27,7 +27,6 @@ use Friendica\App; use Friendica\Content\Text\BBCode; use Friendica\Content\Text\HTML; use Friendica\Core\Logger; -use Friendica\Core\Protocol; use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\DI; @@ -50,8 +49,6 @@ use Friendica\Util\DateTimeFormat; use Friendica\Util\Images; use Friendica\Util\Strings; -require_once __DIR__ . '/../mod/item.php'; - $API = []; /** @@ -1064,7 +1061,9 @@ function api_fr_photo_create_update($type) $deny_cid = $_REQUEST['deny_cid' ] ?? null; $allow_gid = $_REQUEST['allow_gid'] ?? null; $deny_gid = $_REQUEST['deny_gid' ] ?? null; - $visibility = !$allow_cid && !$deny_cid && !$allow_gid && !$deny_gid; + // Pictures uploaded via API never get posted as a visible status + // See https://github.com/friendica/friendica/issues/10990 + $visibility = false; // do several checks on input parameters // we do not allow calls without album string