mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
500 B
PHTML
28 lines
500 B
PHTML
2 years ago
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use App\Services\AccountService;
|
||
|
|
||
|
class AdminShadowFilter extends Model
|
||
|
{
|
||
|
use HasFactory;
|
||
|
|
||
|
protected $guarded = [];
|
||
|
|
||
|
protected $casts = [
|
||
|
'created_at' => 'datetime'
|
||
|
];
|
||
|
|
||
|
public function account()
|
||
|
{
|
||
|
if($this->item_type === 'App\Profile') {
|
||
|
return AccountService::get($this->item_id, true);
|
||
|
}
|
||
|
|
||
|
return;
|
||
|
}
|
||
|
}
|