get($this->like->url); $mf2 = \Mf2\parse($response->body(), $this->like->url); if (Arr::has($mf2, 'items.0.properties.content')) { $this->like->content = $mf2['items'][0]['properties']['content'][0]['html']; } try { $author = $authorship->findAuthor($mf2); if (is_array($author)) { $this->like->author_name = Arr::get($author, 'properties.name.0'); $this->like->author_url = Arr::get($author, 'properties.url.0'); } if (is_string($author) && $author !== '') { $this->like->author_name = $author; } } catch (AuthorshipParserException $exception) { return 1; } $this->like->save(); return 0; } }