mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Trending tags: Ensure to only count public posts
This commit is contained in:
parent
e55696c716
commit
d0b36781a8
1 changed files with 2 additions and 2 deletions
|
@ -514,9 +514,9 @@ class Tag
|
|||
{
|
||||
$tagsStmt = DBA::p("SELECT `name` AS `term`, COUNT(*) AS `score`
|
||||
FROM `tag-search-view`
|
||||
WHERE `private` = ? AND `received` > DATE_SUB(NOW(), INTERVAL ? HOUR)
|
||||
WHERE `private` = ? AND `uid` = ? AND `received` > DATE_SUB(NOW(), INTERVAL ? HOUR)
|
||||
GROUP BY `term` ORDER BY `score` DESC LIMIT ?",
|
||||
Item::PUBLIC, $period, $limit);
|
||||
Item::PUBLIC, 0, $period, $limit);
|
||||
|
||||
if (DBA::isResult($tagsStmt)) {
|
||||
$tags = DBA::toArray($tagsStmt);
|
||||
|
|
Loading…
Reference in a new issue