Merge pull request #4465 from Roardom/bbcode-blade-directive

This commit is contained in:
HDVinnie
2025-02-13 08:12:37 -05:00
committed by GitHub
28 changed files with 25 additions and 163 deletions
-26
View File
@@ -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.
*/