Browse Source

fix for h-event parsing

pull/39/head
Aaron Parecki 5 years ago
parent
commit
4a82561536
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/Formats/Mf2.php

+ 3
- 3
lib/Formats/Mf2.php View File

@ -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'
];

Loading…
Cancel
Save