X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapisearchatom.php;h=b686edb00aeabb9a89e0243e23f1bf93ec6a59ae;hb=c19964094baeb777a1bfd333a94bcb843f525274;hp=32ff918da3b6e70e01966cece29d331372060691;hpb=9df856e667a12cd217576263efbc72fff12692d9;p=quix0rs-gnu-social.git diff --git a/actions/apisearchatom.php b/actions/apisearchatom.php index 32ff918da3..b686edb00a 100644 --- a/actions/apisearchatom.php +++ b/actions/apisearchatom.php @@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR.'/lib/apiprivateauth.php'; - /** * Action for outputting search results in Twitter compatible Atom * format. @@ -92,8 +90,6 @@ class ApiSearchAtomAction extends ApiPrivateAuthAction */ function prepare($args) { - common_debug("in apisearchatom prepare()"); - parent::prepare($args); $this->query = $this->trimmed('q'); @@ -343,7 +339,7 @@ class ApiSearchAtomAction extends ApiPrivateAuthAction $source = null; $ns = $notice->getSource(); - if ($ns) { + if ($ns instanceof Notice_source) { if (!empty($ns->name) && !empty($ns->url)) { $source = '