Rubenwouters\CrmLauncher\Updates\UpdateAllCases::fetchSpecificMention PHP Method

fetchSpecificMention() private method

Fetch mentions from Twitter
private fetchSpecificMention ( $mention ) : void
return void
    private function fetchSpecificMention($mention)
    {
        $inReplyTo = $mention['in_reply_to_status_id_str'];
        $publishment = $this->publishment->where('tweet_id', $inReplyTo)->first();
        if (($publishment->tweet_id == $mention['in_reply_to_status_id_str'] || $this->reaction->where('tweet_id', $mention['in_reply_to_status_id_str'])->exists()) && $publishment->tweet_id != null) {
            $reaction = $this->reaction->insertReaction('twitter', $mention, $publishment->id);
            $this->media->handleMedia($reaction->id, $mention, 'twitter_reaction');
        }
    }