Skip to content

Commit

Permalink
Merge branch 'hannylicious-master'
Browse files Browse the repository at this point in the history
merge changes from hannylicious
  • Loading branch information
Daniel-Bruni Ziermann committed Nov 30, 2016
2 parents 6a325d1 + f36130d commit 2bbcedb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function defineProperties()
'default' => 'No posts found',
'showExternalParam' => false
],
'client_id' => [
'client_id' => [
'title' => 'digitalronin.twitch::lang.settings.channel_client_id',
'description' => 'digitalronin.twitch::lang.settings.channel_client_description',
'type' => 'string',
Expand All @@ -80,9 +80,11 @@ public function onRun()

protected function listPosts()
{
$requestUrl = "/feed/".$this->property('channel')."/posts"."?client_id=".$this->property('client_id');
$requestUrl = "/feed/".$this->property('channel')
."/posts?client_id=".$this->property('client_id')
."&limit=".($this->property('limit')?$this->property('limit'):"0");
$twitch = new TwitchAPI();

return json_decode($twitch->apiRequest($requestUrl), true)["posts"];
}
}
}

0 comments on commit 2bbcedb

Please sign in to comment.