mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Use the post-counts table to display content (#13781)
* Use the post-counts table to display content * Use verb instead of vid * Use verb * Update counter on delete
This commit is contained in:
parent
0c68a53e1e
commit
8fc96477e7
12 changed files with 250 additions and 126 deletions
|
@ -201,7 +201,7 @@ class Post
|
|||
$indent = '';
|
||||
$shiny = '';
|
||||
$osparkle = '';
|
||||
$total_children = $this->countDescendants();
|
||||
$total_children = $item['counts'] ?? $this->countDescendants();
|
||||
|
||||
$conv = $this->getThread();
|
||||
|
||||
|
@ -697,6 +697,11 @@ class Post
|
|||
$icon = ['fa' => 'fa-eye', 'icon' => 'icon-eye-open'];
|
||||
break;
|
||||
|
||||
case Activity::READ:
|
||||
$title = DI::l10n()->t('Read by: %s', $actors);
|
||||
$icon = ['fa' => 'fa-book', 'icon' => 'icon-book'];
|
||||
break;
|
||||
|
||||
case Activity::LIKE:
|
||||
$title = DI::l10n()->t('Liked by: %s', $actors);
|
||||
$icon = ['fa' => 'fa-thumbs-up', 'icon' => 'icon-thumbs-up'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue