Remove search for now, increase upload filesize limits

This commit is contained in:
yuriko 🦊 2025-05-25 17:14:11 -04:00
parent 1442dbfa60
commit cb086c4708
21 changed files with 117 additions and 244 deletions

View file

@ -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
{

View file

@ -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;