Compare commits

..

2 Commits

Author SHA1 Message Date
Pablo Ferreiro 5dea2468f8 Better handling of private accounts 2023-02-01 15:22:53 +01:00
Pablo Ferreiro e8ec0ab293 bump 2023-01-28 17:32:07 +01:00
4 changed files with 12 additions and 12 deletions
-4
View File
@@ -18,10 +18,6 @@ class UserController {
if ($user->ok()) {
$info = $user->getInfo();
$feed = $user->getFeed();
if ($info->detail->privateAccount) {
ErrorHandler::showText(401, "Private account detected! Not supported");
return;
}
Wrappers::latte('user', new FullTemplate($info->detail->nickname, $info, $feed));
} else {
ErrorHandler::showMeta($user->error());
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "pablouser1/proxitok",
"description": "An alternative frontend for TikTok",
"version": "2.4.5.0",
"version": "2.4.6.0",
"license": "AGPL-3.0-or-later",
"type": "project",
"authors": [
Generated
+7 -7
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "818a3e623705c076822f3d895a0d99ca",
"content-hash": "8536364f5905bc49a9a88d4fa3daa3be",
"packages": [
{
"name": "bramus/router",
@@ -263,16 +263,16 @@
},
{
"name": "pablouser1/tikscraper",
"version": "v2.3.4.0",
"version": "v2.3.4.1",
"source": {
"type": "git",
"url": "https://github.com/pablouser1/TikScraperPHP.git",
"reference": "8ee7efd58892d0a6e536b7cc29de200202916394"
"reference": "4426ee91c13b4661fd11e1d3f4b5da33c64fbc75"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/8ee7efd58892d0a6e536b7cc29de200202916394",
"reference": "8ee7efd58892d0a6e536b7cc29de200202916394",
"url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/4426ee91c13b4661fd11e1d3f4b5da33c64fbc75",
"reference": "4426ee91c13b4661fd11e1d3f4b5da33c64fbc75",
"shasum": ""
},
"require": {
@@ -305,9 +305,9 @@
"description": "Get data from TikTok API",
"support": {
"issues": "https://github.com/pablouser1/TikScraperPHP/issues",
"source": "https://github.com/pablouser1/TikScraperPHP/tree/v2.3.4.0"
"source": "https://github.com/pablouser1/TikScraperPHP/tree/v2.3.4.1"
},
"time": "2023-01-26T18:18:34+00:00"
"time": "2023-01-28T16:31:29+00:00"
},
{
"name": "php-webdriver/webdriver",
+4
View File
@@ -12,6 +12,10 @@
</figure>
<p class="title">{$info->detail->uniqueId}</p>
<p class="subtitle">{include '../components/rss.latte'}</p>
{if $info->detail->privateAccount}
<p><strong>Private account</strong></p>
{/if}
<p></p>
<p>{$info->detail->signature}</p>
<p>Following: {number($info->stats->followingCount)} / Followers: {number($info->stats->followerCount)}</p>
<p>Hearts: {number($info->stats->heartCount)} / Videos: {$info->stats->videoCount}</p>