mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +02:00
Prevent formatter from being invoked if bio is empty
This commit is contained in:
@@ -200,7 +200,7 @@ class User extends Model
|
|||||||
*/
|
*/
|
||||||
public function getBioHtmlAttribute($value)
|
public function getBioHtmlAttribute($value)
|
||||||
{
|
{
|
||||||
if (! $value) {
|
if ($value === null) {
|
||||||
$this->bio_html = $value = static::formatBio($this->bio);
|
$this->bio_html = $value = static::formatBio($this->bio);
|
||||||
$this->save();
|
$this->save();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user