Browse Source

catch error with rel-urls

pull/78/head v1.6.9
Aaron Parecki 6 years ago
parent
commit
8b4a38cef7
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      lib/XRay/Formats/HTML.php

+ 7
- 5
lib/XRay/Formats/HTML.php View File

@ -102,12 +102,14 @@ class HTML extends Format {
foreach($mf2['rel-urls'] as $relurl => $reltype) { foreach($mf2['rel-urls'] as $relurl => $reltype) {
if(in_array('alternate', $reltype['rels']) && $reltype['type'] == 'application/mf2+json') {
$alternates['mf2'][] = $relurl;
}
if(isset($reltype['type'])) {
if(in_array('alternate', $reltype['rels']) && $reltype['type'] == 'application/mf2+json') {
$alternates['mf2'][] = $relurl;
}
if(in_array('alternate', $reltype['rels']) && $reltype['type'] == 'application/activity+json') {
$alternates['as2'][] = $relurl;
if(in_array('alternate', $reltype['rels']) && $reltype['type'] == 'application/activity+json') {
$alternates['as2'][] = $relurl;
}
} }
} }

Loading…
Cancel
Save