mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
Remove search for now, increase upload filesize limits
This commit is contained in:
parent
1442dbfa60
commit
cb086c4708
21 changed files with 117 additions and 244 deletions
|
|
@ -5,8 +5,6 @@ namespace App\Models;
|
|||
use MongoDB\Laravel\Eloquent\Model;
|
||||
use MongoDB\Laravel\Relations\BelongsTo;
|
||||
use MongoDB\Laravel\Relations\BelongsToMany;
|
||||
use MongoDB\Laravel\Relations\HasMany;
|
||||
use MongoDB\Laravel\Relations\MorphToMany;
|
||||
|
||||
class Tag extends Model
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,10 +9,8 @@ use Laravel\Sanctum\HasApiTokens;
|
|||
use MongoDB\Laravel\Auth\User as Authenticatable;
|
||||
use MongoDB\Laravel\Relations\HasMany;
|
||||
use Overtrue\LaravelFavorite\Traits\Favoriter;
|
||||
use Spatie\Searchable\Searchable;
|
||||
use Spatie\Searchable\SearchResult;
|
||||
|
||||
class User extends Authenticatable implements Searchable
|
||||
class User extends Authenticatable
|
||||
{
|
||||
protected $connection = 'mongodb';
|
||||
protected $table = 'users';
|
||||
|
|
@ -48,16 +46,6 @@ class User extends Authenticatable implements Searchable
|
|||
return $this->hasMany(Comment::class);
|
||||
}
|
||||
|
||||
public function getSearchResult(): SearchResult
|
||||
{
|
||||
$url = url("/profiles/$this->id");
|
||||
return new SearchResult(
|
||||
$this,
|
||||
$this->name,
|
||||
$url
|
||||
);
|
||||
}
|
||||
|
||||
public function getAvatarBase64(): string
|
||||
{
|
||||
$ext = $this->avatar_ext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue