mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 00:40:12 -05:00
update: normalize post tips and torrent tips
This commit is contained in:
@@ -435,7 +435,7 @@ class HomeController extends Controller
|
||||
fn () => Post::query()
|
||||
->with('user', 'user.group', 'topic:id,name')
|
||||
->withCount('likes', 'dislikes', 'authorPosts', 'authorTopics')
|
||||
->withSum('tips', 'cost')
|
||||
->withSum('tips', 'bon')
|
||||
->withExists([
|
||||
'likes' => fn ($query) => $query->where('user_id', '=', auth()->id()),
|
||||
'dislikes' => fn ($query) => $query->where('user_id', '=', auth()->id()),
|
||||
|
||||
Reference in New Issue
Block a user