mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update UserFilter model
This commit is contained in:
parent
bb841d3d6a
commit
261e95e772
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,6 @@ class UserFilter extends Model
|
|||
->pluck('filterable_id');
|
||||
}
|
||||
|
||||
|
||||
public function blockedUserIds($profile_id)
|
||||
{
|
||||
return $this->whereUserId($profile_id)
|
||||
|
@ -29,4 +28,9 @@ class UserFilter extends Model
|
|||
->whereFilterType('block')
|
||||
->pluck('filterable_id');
|
||||
}
|
||||
|
||||
public function instance()
|
||||
{
|
||||
return $this->belongsTo(Instance::class, 'filterable_id');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue