Browse Source

also return categories

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

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

@ -53,7 +53,7 @@ class Mf2 {
}
// Always arrays
$properties = ['photo','video','syndication','in-reply-to','like-of','repost-of'];
$properties = ['photo','video','syndication','in-reply-to','like-of','repost-of','category'];
foreach($properties as $p) {
if(array_key_exists($p, $item['properties']))
$data[$p] = $item['properties'][$p];

+ 1
- 1
lib/HTTP.php View File

@ -3,7 +3,7 @@ namespace p3k;
class HTTP {
public $timeout = 3;
public $timeout = 4;
public $max_redirects = 8;
public function get($url) {

Loading…
Cancel
Save