From fd6ab224188307a68163fb692f291fb8e6d8fdda Mon Sep 17 00:00:00 2001 From: Daisuke Date: Tue, 8 Sep 2020 14:38:27 -0500 Subject: [PATCH] 080920 Replaced Invidio.us instance --- include/functions.php | 4 ++-- modules/timeline.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'] = ""; } } }