mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-08 04:00:14 -05:00
refactor: include deleted users in tips and gifts user relations
There is no desire to hide soft deleted users from gifts and tips.
This commit is contained in:
@@ -44,8 +44,8 @@ class GiftController extends Controller
|
||||
return view('user.gift.index', [
|
||||
'user' => $user,
|
||||
'gifts' => Gift::with([
|
||||
'sender' => fn ($query) => $query->withTrashed()->with('group'),
|
||||
'recipient' => fn ($query) => $query->withTrashed()->with('group'),
|
||||
'sender.group',
|
||||
'recipient.group',
|
||||
])
|
||||
->where('sender_id', '=', $user->id)
|
||||
->orWhere('recipient_id', '=', $user->id)
|
||||
|
||||
@@ -39,8 +39,8 @@ class PostTipController extends Controller
|
||||
return view('user.post-tip.index', [
|
||||
'user' => $user,
|
||||
'tips' => PostTip::with([
|
||||
'sender' => fn ($query) => $query->withTrashed()->with('group'),
|
||||
'recipient' => fn ($query) => $query->withTrashed()->with('group'),
|
||||
'sender.group',
|
||||
'recipient.group',
|
||||
'post.topic'
|
||||
])
|
||||
->where('sender_id', '=', $user->id)
|
||||
|
||||
@@ -39,8 +39,8 @@ class TorrentTipController extends Controller
|
||||
return view('user.torrent-tip.index', [
|
||||
'user' => $user,
|
||||
'tips' => TorrentTip::with([
|
||||
'sender' => fn ($query) => $query->withTrashed()->with('group'),
|
||||
'recipient' => fn ($query) => $query->withTrashed()->with('group'),
|
||||
'sender.group',
|
||||
'recipient.group',
|
||||
'torrent'
|
||||
])
|
||||
->where('sender_id', '=', $user->id)
|
||||
|
||||
Reference in New Issue
Block a user