mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-27 16:53:17 +00:00
30 lines
733 B
PHP
30 lines
733 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use App\User;
|
|
|
|
class UserAppSettings extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = [];
|
|
|
|
protected $casts = [
|
|
'common' => 'json',
|
|
'custom' => 'json',
|
|
'common.timelines.show_public' => 'boolean',
|
|
'common.timelines.show_network' => 'boolean',
|
|
'common.timelines.hide_likes_shares' => 'boolean',
|
|
'common.media.hide_public_behind_cw' => 'boolean',
|
|
'common.media.always_show_cw' => 'boolean',
|
|
'common.media.show_alt_text' => 'boolean',
|
|
];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|