mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update StatusHashtag
This commit is contained in:
parent
047d89c1b2
commit
d39947ed08
1 changed files with 10 additions and 1 deletions
|
@ -6,7 +6,11 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class StatusHashtag extends Model
|
||||
{
|
||||
public $fillable = ['status_id', 'hashtag_id'];
|
||||
public $fillable = [
|
||||
'status_id',
|
||||
'hashtag_id',
|
||||
'profile_id'
|
||||
];
|
||||
|
||||
public function status()
|
||||
{
|
||||
|
@ -17,4 +21,9 @@ class StatusHashtag extends Model
|
|||
{
|
||||
return $this->belongsTo(Hashtag::class);
|
||||
}
|
||||
|
||||
public function profile()
|
||||
{
|
||||
return $this->belongsTo(Profile::class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue