Update UserFilter model

This commit is contained in:
Daniel Supernault 2019-01-31 12:55:57 -07:00
parent bb841d3d6a
commit 261e95e772
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -21,7 +21,6 @@ class UserFilter extends Model
->pluck('filterable_id'); ->pluck('filterable_id');
} }
public function blockedUserIds($profile_id) public function blockedUserIds($profile_id)
{ {
return $this->whereUserId($profile_id) return $this->whereUserId($profile_id)
@ -29,4 +28,9 @@ class UserFilter extends Model
->whereFilterType('block') ->whereFilterType('block')
->pluck('filterable_id'); ->pluck('filterable_id');
} }
public function instance()
{
return $this->belongsTo(Instance::class, 'filterable_id');
}
} }