080920 Replaced Invidio.us instance
This commit is contained in:
parent
d25fbc8bea
commit
fd6ab22418
@ -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);
|
||||
|
||||
|
@ -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'] . "'>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user