mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
refactor: return proper response object (#4169)
This commit is contained in:
parent
aa3989873c
commit
891c8979a3
28 changed files with 69 additions and 84 deletions
|
@ -78,13 +78,9 @@ class DerpibooruBridge extends BridgeAbstract
|
|||
|
||||
public function collectData()
|
||||
{
|
||||
$queryJson = json_decode(getContents(
|
||||
self::URI
|
||||
. 'api/v1/json/search/images?filter_id='
|
||||
. urlencode($this->getInput('f'))
|
||||
. '&q='
|
||||
. urlencode($this->getInput('q'))
|
||||
));
|
||||
$url = self::URI . 'api/v1/json/search/images?filter_id=' . urlencode($this->getInput('f')) . '&q=' . urlencode($this->getInput('q'));
|
||||
|
||||
$queryJson = json_decode(getContents($url));
|
||||
|
||||
foreach ($queryJson->images as $post) {
|
||||
$item = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue