mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
525 B
PHTML
31 lines
525 B
PHTML
4 years ago
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class AccountInterstitial extends Model
|
||
|
{
|
||
|
/**
|
||
|
* The attributes that should be mutated to dates.
|
||
|
*
|
||
|
* @var array
|
||
|
*/
|
||
|
protected $dates = ['read_at', 'appeal_requested_at'];
|
||
|
|
||
|
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');
|
||
|
}
|
||
|
}
|