From 7ba324c935b38bf4924275b322eb181561ec497f Mon Sep 17 00:00:00 2001 From: Pablo Ferreiro Date: Sat, 12 Mar 2022 00:34:42 +0100 Subject: [PATCH] hotfix --- README.md | 6 ++---- app/Helpers/Misc.php | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 52812ff..05e3690 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Use Tiktok with an alternative frontend, inspired by Nitter. * Discovery * RSS Feed for user, trending and tag (just add /rss to the url) -## Extension +## Extensions If you want to automatically redirect Tiktok links to ProxiTok you can use: * [Libredirect](https://github.com/libredirect/libredirect) * [Redirector](https://github.com/einaregilsson/Redirector) @@ -32,8 +32,6 @@ Clone the repository and fetch the requiered external packages with: composer install ``` -WARNING: You'll need a personal Github token for composer. - Then you can run it using for example the PHP Development Server with: ```bash php -S localhost:8080 -t public @@ -75,7 +73,7 @@ location /proxitok/.env { * i18n ## Credits -* [TikTok-API-PHP](https://github.com/ssovit/TikTok-API-PHP) (Currently using my personal fork) +* [TikScraperPHP](https://github.com/pablouser1/TikScraperPHP) * [Latte](https://github.com/nette/latte) * [bramus/router](https://github.com/bramus/router) * [PHP dotenv](https://github.com/vlucas/phpdotenv) diff --git a/app/Helpers/Misc.php b/app/Helpers/Misc.php index 6ab8149..dcf9119 100644 --- a/app/Helpers/Misc.php +++ b/app/Helpers/Misc.php @@ -78,8 +78,8 @@ class Misc { } // Legacy mode - $legacy = self::env('FORCE_LEGACY', false); // Instance level $_COOKIE['enable_legacy'] ?? $legacy = true; // User level + $legacy = self::env('FORCE_LEGACY', false); // Instance level (has priority over user) return $legacy === false ? new \TikScraper\Api($options, $cacheEngine) : new \TikScraper\Legacy($options, $cacheEngine); }