diff --git a/include/functions.php b/include/functions.php index ff3acb5..e49f361 100644 --- a/include/functions.php +++ b/include/functions.php @@ -457,10 +457,10 @@ function getnotes($thread) { global $setting; global $logedin; @$reb = array( - json_decode(file_get_contents("https://$srv/api/v1/statuses/" . $thread . "/reblogged_by") , true) + api_get("statuses/" . $thread . "/reblogged_by") ); @$fab = array( - json_decode(file_get_contents("https://$srv/api/v1/statuses/" . $thread . "/favourited_by") , true) + api_get("statuses/" . $thread . "/favourited_by") ); $limit = (count($reb[0]) > count($fab[0]) ? count($reb[0]) - 1 : count($fab[0]) - 1); diff --git a/modules/timeline.php b/modules/timeline.php index 27b6fbd..cfd61b7 100644 --- a/modules/timeline.php +++ b/modules/timeline.php @@ -235,7 +235,7 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) { foreach ($urls as $url) { parse_str(parse_url($url, PHP_URL_QUERY) , $my_array_of_vars); if (isset($my_array_of_vars['v'])) { - $post['media'] = ""; + $post['media'] = ""; } } }