From fff43444f5fe853ccf16bced770de7b3c4405bc1 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 20 Feb 2016 17:32:48 -0800 Subject: [PATCH] also return categories --- lib/Formats/Mf2.php | 2 +- lib/HTTP.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Formats/Mf2.php b/lib/Formats/Mf2.php index fd7b23f..70687b1 100644 --- a/lib/Formats/Mf2.php +++ b/lib/Formats/Mf2.php @@ -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]; diff --git a/lib/HTTP.php b/lib/HTTP.php index c83cc0d..526b866 100644 --- a/lib/HTTP.php +++ b/lib/HTTP.php @@ -3,7 +3,7 @@ namespace p3k; class HTTP { - public $timeout = 3; + public $timeout = 4; public $max_redirects = 8; public function get($url) {