080920 Replaced Invidio.us instance

This commit is contained in:
Daisuke 2020-09-08 14:38:27 -05:00
parent d25fbc8bea
commit fd6ab22418
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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'] = "<embed class='desktop' width='620' height='415' src='https://invidio.us/embed/" . $my_array_of_vars['v'] . "'>";
$post['media'] = "<embed class='desktop' width='620' height='415' src='https://invidiou.site/embed/" . $my_array_of_vars['v'] . "'>";
}
}
}