很多梗圖的單字、用詞根本看不懂嗎?
可以使用本站的「街頭字典」查詢意思!
或者直接到話題部落發問也可以!
前往話題部落發問
熱門梗圖的排行是怎麼算的
目前公式這樣
但應該沒人看得懂
我再找時間跟大家說明
function refreshTrendingScore() { if ($this->approved_at < \Carbon\Carbon::now()->subHours( 24 * trending_image_beginning_live_days() + $this->total_like_count * trending_image_extra_hours_per_like() )) { $this->trending_score = 0; $this->save(); return; } $score = 100; $elapsedHours = \Carbon\Carbon::now()->diffInHours($this->approved_at); if ($elapsedHours > 24) { $score = $score + 24 - $elapsedHours; } $userId = $this->user_id; $score += $this->likes->filter(function($like) use ($userId) { return $userId != $like->user_id; })->count() * 2; $score += $this->comments->filter(function($comment) use ($userId) { return $userId != $comment->user_id; })->count() * 1; $reportsNum = Report::where('url', '/wtf/' . $this->id) ->distinct('user_id') ->count('user_id'); $score -= $reportsNum * 5; if ($this->is_sensitive) { $score = 0; } $this->trending_score = $score; $this->save(); }
大概看得懂
目前公式這樣
但應該沒人看得懂
我再找時間跟大家說明