diff --git a/app/Models/ActivityLog.php b/app/Models/ActivityLog.php index f86826345..65bab2567 100644 --- a/app/Models/ActivityLog.php +++ b/app/Models/ActivityLog.php @@ -17,6 +17,7 @@ use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\MorphTo; use Illuminate\Database\Eloquent\Model; +use Illuminate\Support\Arr; use Illuminate\Support\Str; /** @@ -173,13 +174,14 @@ class ActivityLog extends Model implements HasIcon, HasLabel } $avatarUrl = Filament::getUserAvatarUrl($user); + $username = str($user->username)->stripTags(); return "
$user->username — $this->event
+$username — $this->event
{$this->getLabel()}
$this->ip — {$this->timestamp->diffForHumans()}