normalize_url($value), ); } protected function authorUrl(): Attribute { return Attribute::set( set: fn ($value) => normalize_url($value), ); } protected function content(): Attribute { return Attribute::get( get: function ($value, $attributes) { if ($value === null) { return null; } $mf2 = Mf2\parse($value, $attributes['url']); if (Arr::get($mf2, 'items.0.properties.content.0.html')) { return $this->filterHtml( $mf2['items'][0]['properties']['content'][0]['html'] ); } return $value; } ); } }