1
0
mirror of https://notabug.org/halcyon-suite/halcyon synced 2024-12-23 00:10:37 +01:00

Merge branch 'master' of tsia/halcyon into master

This commit is contained in:
Niklas Poslovski 2018-07-07 11:38:11 +00:00 committed by Gogs
commit 084e63952e
3 changed files with 0 additions and 3 deletions

View File

@ -1,7 +1,6 @@
<?php
namespace HalcyonSuite\HalcyonForMastodon;
require_once('mastodon-api/mastodon.php');
use Exception;
class Mastodon extends \Mastodon_api {
function __construct(){
$appSettings = parse_ini_file('../config.ini',true);

View File

@ -13,7 +13,6 @@ location.href = '/logout';
<?php
require_once('../authorize/mastodon.php');
use HalcyonSuite\HalcyonForMastodon\Mastodon;
use Exception;
$api = new Mastodon();
if ($_GET['code']) {
$domain = htmlspecialchars((string)filter_input(INPUT_GET, 'host'), ENT_QUOTES);

View File

@ -1,7 +1,6 @@
<?php
require_once('../authorize/mastodon.php');
use HalcyonSuite\HalcyonForMastodon\Mastodon;
use Exception;
if (isset($_POST['acct'])) {
$domain = explode("@", mb_strtolower(htmlspecialchars((string)filter_input(INPUT_POST, 'acct'), ENT_QUOTES)))[2];
$URL= 'https://'.$domain;