mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-18 04:21:27 +00:00
33 lines
560 B
PHP
33 lines
560 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AccountInterstitial extends Model
|
|
{
|
|
/**
|
|
* The attributes that should be mutated to dates.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'read_at' => 'datetime',
|
|
'appeal_requested_at' => 'datetime'
|
|
];
|
|
|
|
public const JSON_MESSAGE = 'Please use web browser to proceed.';
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function status()
|
|
{
|
|
if($this->item_type != 'App\Status') {
|
|
return;
|
|
}
|
|
return $this->hasOne(Status::class, 'id', 'item_id');
|
|
}
|
|
}
|