mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Utility
* implemented page: unrated-comment
This commit is contained in:
@@ -95,6 +95,7 @@ class CommunityContent
|
|||||||
{c.userId = ?d AND}
|
{c.userId = ?d AND}
|
||||||
{c.replyTo <> ?d AND}
|
{c.replyTo <> ?d AND}
|
||||||
{c.replyTo = ?d AND}
|
{c.replyTo = ?d AND}
|
||||||
|
{ur.entry IS ?n AND}
|
||||||
((c.flags & ?d) = 0 OR c.userId = ?d OR ?d)
|
((c.flags & ?d) = 0 OR c.userId = ?d OR ?d)
|
||||||
GROUP BY
|
GROUP BY
|
||||||
c.id
|
c.id
|
||||||
@@ -141,6 +142,7 @@ class CommunityContent
|
|||||||
empty($params['user']) ? DBSIMPLE_SKIP : $params['user'],
|
empty($params['user']) ? DBSIMPLE_SKIP : $params['user'],
|
||||||
empty($params['replies']) ? DBSIMPLE_SKIP : 0, // i dont know, how to switch the sign around
|
empty($params['replies']) ? DBSIMPLE_SKIP : 0, // i dont know, how to switch the sign around
|
||||||
!empty($params['replies']) ? DBSIMPLE_SKIP : 0,
|
!empty($params['replies']) ? DBSIMPLE_SKIP : 0,
|
||||||
|
empty($params['unrated']) ? DBSIMPLE_SKIP : null,
|
||||||
CC_FLAG_DELETED,
|
CC_FLAG_DELETED,
|
||||||
User::$id,
|
User::$id,
|
||||||
User::isInGroup(U_GROUP_COMMENTS_MODERATOR),
|
User::isInGroup(U_GROUP_COMMENTS_MODERATOR),
|
||||||
|
|||||||
@@ -162,9 +162,7 @@ class UtilityPage extends GenericPage
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case 'unrated-comments':
|
case 'unrated-comments':
|
||||||
|
if ($_ = CommunityContent::getCommentPreviews(['unrated' => true], $nFound))
|
||||||
// EXPLAIN SELECT ac.* FROM aowow_comments ac LEFT JOIN aowow_comments_rates acr ON acr.commentId = ac.id AND acr.userId <> 0 WHERE acr.commentId IS NULL;
|
|
||||||
if ($_ = CommunityContent::getCommentPreviews(['user' => User::$id, 'replies' => false], $nFound))
|
|
||||||
{
|
{
|
||||||
$tabData = array(
|
$tabData = array(
|
||||||
'data' => $_,
|
'data' => $_,
|
||||||
@@ -181,7 +179,6 @@ class UtilityPage extends GenericPage
|
|||||||
$this->lvTabs[] = ['commentpreview', $tabData];
|
$this->lvTabs[] = ['commentpreview', $tabData];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->lvTabs[] = ['commentpreview', ['data' => []]];
|
$this->lvTabs[] = ['commentpreview', ['data' => []]];
|
||||||
break;
|
break;
|
||||||
case 'missing-screenshots':
|
case 'missing-screenshots':
|
||||||
|
|||||||
Reference in New Issue
Block a user