mirror of
https://github.com/friendica/friendica
synced 2025-04-24 00:30:11 +00:00
Don't send the header
This commit is contained in:
parent
a2f386cd2f
commit
5312b23f03
4 changed files with 23 additions and 12 deletions
|
@ -110,10 +110,10 @@ class Lists extends ContactEndpoint
|
|||
$ids = array_reverse($ids);
|
||||
}
|
||||
|
||||
self::setLinkHeader();
|
||||
|
||||
$return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities);
|
||||
|
||||
$this->response->setHeader(self::getLinkHeader());
|
||||
|
||||
$this->response->exit('lists', ['lists' => $return]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ class Lists extends ContactEndpoint
|
|||
}
|
||||
} else {
|
||||
$params = ['order' => ['cid' => true], 'limit' => $count];
|
||||
|
||||
|
||||
$condition = ['relation-cid' => $cid, 'follows' => true];
|
||||
|
||||
$total_count = (int)DBA::count('contact-relation', $condition);
|
||||
|
@ -110,10 +110,10 @@ class Lists extends ContactEndpoint
|
|||
$ids = array_reverse($ids);
|
||||
}
|
||||
|
||||
self::setLinkHeader();
|
||||
|
||||
$return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities);
|
||||
|
||||
$this->response->setHeader(self::getLinkHeader());
|
||||
|
||||
$this->response->exit('lists', ['lists' => $return]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
namespace Friendica\Module\Api\Twitter\Friendships;
|
||||
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Module\Api\Twitter\ContactEndpoint;
|
||||
use Friendica\Module\BaseApi;
|
||||
|
@ -81,7 +80,7 @@ class Incoming extends ContactEndpoint
|
|||
|
||||
$return = self::ids($ids, $total_count, $cursor, $count, $stringify_ids);
|
||||
|
||||
self::setLinkHeader();
|
||||
$this->response->setHeader(self::getLinkHeader());
|
||||
|
||||
$this->response->exit('incoming', ['incoming' => $return]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue