forked from mirror/pixelfed
Update Activity model
This commit is contained in:
parent
01c7a95ef5
commit
884f675d30
1 changed files with 10 additions and 0 deletions
|
@ -7,4 +7,14 @@ use Illuminate\Database\Eloquent\Model;
|
|||
class Activity extends Model
|
||||
{
|
||||
protected $dates = ['processed_at'];
|
||||
|
||||
public function toProfile()
|
||||
{
|
||||
return $this->belongsTo(Profile::class, 'to_id');
|
||||
}
|
||||
|
||||
public function fromProfile()
|
||||
{
|
||||
return $this->belongsTo(Profile::class, 'from_id');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue