hotfix
This commit is contained in:
parent
9c95620384
commit
7ba324c935
|
@ -10,7 +10,7 @@ Use Tiktok with an alternative frontend, inspired by Nitter.
|
||||||
* Discovery
|
* Discovery
|
||||||
* RSS Feed for user, trending and tag (just add /rss to the url)
|
* 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:
|
If you want to automatically redirect Tiktok links to ProxiTok you can use:
|
||||||
* [Libredirect](https://github.com/libredirect/libredirect)
|
* [Libredirect](https://github.com/libredirect/libredirect)
|
||||||
* [Redirector](https://github.com/einaregilsson/Redirector)
|
* [Redirector](https://github.com/einaregilsson/Redirector)
|
||||||
|
@ -32,8 +32,6 @@ Clone the repository and fetch the requiered external packages with:
|
||||||
composer install
|
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:
|
Then you can run it using for example the PHP Development Server with:
|
||||||
```bash
|
```bash
|
||||||
php -S localhost:8080 -t public
|
php -S localhost:8080 -t public
|
||||||
|
@ -75,7 +73,7 @@ location /proxitok/.env {
|
||||||
* i18n
|
* i18n
|
||||||
|
|
||||||
## Credits
|
## 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)
|
* [Latte](https://github.com/nette/latte)
|
||||||
* [bramus/router](https://github.com/bramus/router)
|
* [bramus/router](https://github.com/bramus/router)
|
||||||
* [PHP dotenv](https://github.com/vlucas/phpdotenv)
|
* [PHP dotenv](https://github.com/vlucas/phpdotenv)
|
||||||
|
|
|
@ -78,8 +78,8 @@ class Misc {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Legacy mode
|
// Legacy mode
|
||||||
$legacy = self::env('FORCE_LEGACY', false); // Instance level
|
|
||||||
$_COOKIE['enable_legacy'] ?? $legacy = true; // User 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);
|
return $legacy === false ? new \TikScraper\Api($options, $cacheEngine) : new \TikScraper\Legacy($options, $cacheEngine);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue