mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-12 14:09:20 -05:00
Merge pull request #4465 from Roardom/bbcode-blade-directive
This commit is contained in:
@@ -16,8 +16,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Helpers\Bbcode;
|
||||
use App\Helpers\Linkify;
|
||||
use App\Helpers\StringHelper;
|
||||
use App\Traits\UsersOnlineTrait;
|
||||
use Assada\Achievements\Achiever;
|
||||
@@ -1154,30 +1152,6 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
return StringHelper::formatBytes($bytes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the HTML of the user's signature.
|
||||
*/
|
||||
public function getSignatureHtmlAttribute(): string
|
||||
{
|
||||
$bbcode = new Bbcode();
|
||||
|
||||
return (new Linkify())->linky($bbcode->parse($this->signature));
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse About Me And Return Valid HTML.
|
||||
*/
|
||||
public function getAboutHtmlAttribute(): string
|
||||
{
|
||||
if (empty($this->about)) {
|
||||
return 'N/A';
|
||||
}
|
||||
|
||||
$bbcode = new Bbcode();
|
||||
|
||||
return (new Linkify())->linky($bbcode->parse($this->about));
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats the seed bonus points of the User.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user