Timeline bugfixes

This commit is contained in:
daisuke
2021-03-27 12:06:08 -06:00
parent 5b558b6df6
commit 984549035d
7 changed files with 22 additions and 8 deletions

View File

@ -7,9 +7,10 @@ include "../include/init.php";
include "../include/functions.php";
$message = "";
$instance = (isset($setting['lockedto']) ? $setting['lockedto'] : (isset($_POST['user']) ? $_POST['user'] : null));
if (!empty($instance)){
if (isset($_POST['user']) || isset($_GET['instance'])){
$instance = strtolower((isset($_POST['user']) ? htmlentities($_POST['user']) : htmlentities($_GET['instance'])));
$instance = strtolower($instance);
$check = json_decode(file_get_contents("https://$instance/api/v1/instance"),true);
if(is_null($check['title'])){