mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-13 20:18:23 +08:00
improve torrent approval
This commit is contained in:
@@ -22,6 +22,11 @@ class TorrentOperationLog extends NexusModel
|
||||
self::ACTION_TYPE_APPROVAL_DENY => ['text' => 'Approval deny'],
|
||||
];
|
||||
|
||||
public function getActionTypeTextAttribute()
|
||||
{
|
||||
return nexus_trans("torrent.operation_log.{$this->action_type}.type_text");
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'uid')->select(User::$commonFields);
|
||||
|
||||
Reference in New Issue
Block a user