mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update Profile model, add aliases relation
This commit is contained in:
parent
9378c65396
commit
dc7973de62
1 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,7 @@ use App\Util\Lexer\PrettyNumber;
|
||||||
use App\HasSnowflakePrimary;
|
use App\HasSnowflakePrimary;
|
||||||
use Illuminate\Database\Eloquent\{Model, SoftDeletes};
|
use Illuminate\Database\Eloquent\{Model, SoftDeletes};
|
||||||
use App\Services\FollowerService;
|
use App\Services\FollowerService;
|
||||||
|
use App\Models\ProfileAlias;
|
||||||
|
|
||||||
class Profile extends Model
|
class Profile extends Model
|
||||||
{
|
{
|
||||||
|
@ -369,9 +370,13 @@ class Profile extends Model
|
||||||
return $this->hasMany(Story::class);
|
return $this->hasMany(Story::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function reported()
|
public function reported()
|
||||||
{
|
{
|
||||||
return $this->hasMany(Report::class, 'object_id');
|
return $this->hasMany(Report::class, 'object_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function aliases()
|
||||||
|
{
|
||||||
|
return $this->hasMany(ProfileAlias::class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue