From 6e04296e2d96a328a4eaa35fde927933a67e2300 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sat, 17 Sep 2016 20:12:16 +0100 Subject: [PATCH] =?UTF-8?q?Pass=20full=20URL=20into=20php-mf2=E2=80=99s=20?= =?UTF-8?q?`parse`=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Jobs/ProcessWebMention.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Jobs/ProcessWebMention.php b/app/Jobs/ProcessWebMention.php index 5dd51a3e..81bd5043 100644 --- a/app/Jobs/ProcessWebMention.php +++ b/app/Jobs/ProcessWebMention.php @@ -44,13 +44,11 @@ class ProcessWebMention extends Job implements ShouldQueue */ public function handle(Parser $parser) { - $sourceURL = parse_url($this->source); - $baseURL = $sourceURL['scheme'] . '://' . $sourceURL['host']; $remoteContent = $this->getRemoteContent($this->source); if ($remoteContent === null) { throw new RemoteContentNotFoundException; } - $microformats = Mf2\parse($remoteContent, $baseURL); + $microformats = Mf2\parse($remoteContent, $this->source); $webmentions = WebMention::where('source', $this->source)->get(); foreach ($webmentions as $webmention) { //check webmention still references target