From 4a8256153630f969c88f48e150ce6d8f9a700bd7 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 7 Mar 2016 08:57:06 -0800 Subject: [PATCH] fix for h-event parsing --- lib/Formats/Mf2.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Formats/Mf2.php b/lib/Formats/Mf2.php index aca52c2..c3b3a69 100644 --- a/lib/Formats/Mf2.php +++ b/lib/Formats/Mf2.php @@ -69,7 +69,7 @@ class Mf2 { return self::parseAsHCard($item, $http, $url); } else { Parse::debug("mf2:4: Recognized $url as an h-event because an h-event on the page matched the URL of the request"); - return self::parseAsHEvent($item, $http, $url); + return self::parseAsHEvent($mf2, $item, $http, $url); } } } @@ -101,7 +101,7 @@ class Mf2 { return false; } - private static function parseAsHEntry($mf2, $item, $http) { + private static function parseAsHEntry($mf2, $item, $http, $url) { $data = [ 'type' => 'entry' ]; @@ -208,7 +208,7 @@ class Mf2 { return $response; } - private static function parseAsHEvent($mf2, $item, $http) { + private static function parseAsHEvent($mf2, $item, $http, $url) { $data = [ 'type' => 'event' ];