Skip to content

Commit

Permalink
fix(feed): remove $feed param.
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Aug 28, 2018
1 parent 36ddb53 commit f7a477f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/slimkit-plus-feed/src/API2/FeedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,9 @@ private function linkFeedToTopics(array $topics, FeedModel $feed): void
*
* @param \Zhiyi\Plus\Models\User $user
* @param array $topics
* @param \Zhiyi\Component\ZhiyiPlus\PlusComponentFeed\Models\Feed
* @return void
*/
private function touchUserFollowBindFeedCount(UserModel $user, array $topics, FeedModel $feed): void
private function touchUserFollowBindFeedCount(UserModel $user, array $topics): void
{
if (empty($topics)) {
return;
Expand Down Expand Up @@ -455,7 +454,7 @@ public function store(StoreFeedPostRequest $request)
$this->saveFeedFilePaidNode($paidNodes, $feed);
$this->saveFeedFileWith($fileWiths, $feed);
$this->linkFeedToTopics($topics, $feed);
$this->touchUserFollowBindFeedCount($user, $topics, $feed);
$this->touchUserFollowBindFeedCount($user, $topics);

if ($videoWith) {
$this->saveFeedVideoWith($videoWith, $videoCoverWith, $feed);
Expand Down

0 comments on commit f7a477f

Please sign in to comment.