Initial comments support

This commit is contained in:
Pablo Ferreiro 2023-03-06 21:20:14 +01:00
parent eeaa8cdf1c
commit cac97ff05e
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
3 changed files with 36 additions and 8 deletions

View file

@ -1,7 +1,7 @@
{
"name": "pablouser1/proxitok",
"description": "An alternative frontend for TikTok",
"version": "2.4.6.0",
"version": "2.4.7.0",
"license": "AGPL-3.0-or-later",
"type": "project",
"authors": [

14
composer.lock generated
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": "8536364f5905bc49a9a88d4fa3daa3be",
"content-hash": "97152c7473ad08a262f9db1af867faaa",
"packages": [
{
"name": "bramus/router",
@ -303,16 +303,16 @@
},
{
"name": "pablouser1/tikscraper",
"version": "v2.3.5.0",
"version": "v2.3.6.0",
"source": {
"type": "git",
"url": "https://github.com/pablouser1/TikScraperPHP.git",
"reference": "825b486fa07832a4ee694739ca4ffdb67c392fb8"
"reference": "23eff4120eecfb01ed27e049dc36ed14a967cef8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/825b486fa07832a4ee694739ca4ffdb67c392fb8",
"reference": "825b486fa07832a4ee694739ca4ffdb67c392fb8",
"url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/23eff4120eecfb01ed27e049dc36ed14a967cef8",
"reference": "23eff4120eecfb01ed27e049dc36ed14a967cef8",
"shasum": ""
},
"require": {
@ -346,9 +346,9 @@
"description": "Get data from TikTok API",
"support": {
"issues": "https://github.com/pablouser1/TikScraperPHP/issues",
"source": "https://github.com/pablouser1/TikScraperPHP/tree/v2.3.5.0"
"source": "https://github.com/pablouser1/TikScraperPHP/tree/v2.3.6.0"
},
"time": "2023-03-05T12:17:33+00:00"
"time": "2023-03-06T20:19:11+00:00"
},
{
"name": "php-webdriver/webdriver",

View file

@ -45,6 +45,34 @@
</div>
</article>
</div>
{if !empty($item->comments)}
<div class="box">
<p class="is-size-5 has-text-centered">Comments</p>
{foreach $item->comments as $comment}
<article class="media">
<figure class="media-left">
<p class="image is-64x64">
<img src="{url_stream($comment->user->avatar_thumb->url_list[0])}" />
</p>
</figure>
<div class="media-content">
<div class="content">
<p>
<strong>{$comment->user->unique_id}</strong>
<small>
<a href="{url_user($comment->user->unique_id)}">@{$comment->user->nickname}</a>
</small>
<small title="{date('M d, Y H:i:s e', $comment->create_time)}">{date('M d, Y', $comment->create_time)}</small>
<br>
{$comment->text}
</p>
</div>
<p>{include '../components/icon.latte', icon: 'heart', text: number($comment->digg_count)}</p>
</div>
</article>
{/foreach}
</div>
{/if}
</div>
</div>
{/block}