Browse Source

fix for target param. include bookmark-of property

pull/39/head
Aaron Parecki 8 years ago
parent
commit
8d1489bb72
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      controllers/Parse.php
  2. +1
    -1
      lib/Formats/Mf2.php

+ 3
- 3
controllers/Parse.php View File

@ -99,12 +99,12 @@ class Parse {
$found = [];
foreach($xpath->query('//a[@href]') as $href) {
$url = $href->getAttribute('href');
$u = $href->getAttribute('href');
if($target) {
# target parameter was provided
if($url == $target) {
$found[$url] = null;
if($u == $target) {
$found[$u] = null;
}
}
}

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

@ -78,7 +78,7 @@ class Mf2 {
}
// Always returned as arrays, and may also create external references
$properties = ['in-reply-to','like-of','repost-of','category'];
$properties = ['in-reply-to','like-of','repost-of','bookmark-of','category'];
foreach($properties as $p) {
if(array_key_exists($p, $item['properties'])) {
$data[$p] = [];

Loading…
Cancel
Save