log- and recommendation-related fixes and changes
- recommendation will not be lost if the cache is logged a second time - RT406: recommendation will not be lost if other log of same user is deleted * recommendation stars will only be displayed with found and attended logs - recommendations cannot be logged with event notes - multiple found logs of one user will be counted as 1 at top ratings list * reversed event log type order: will attend / attended / note
This commit is contained in:
@@ -285,7 +285,7 @@ class cache
|
||||
`cache_logs`.`text_html` AS `texthtml`,
|
||||
`cache_logs`.`picture`,
|
||||
`user`.`username` AS `username`,
|
||||
IF(ISNULL(`cache_rating`.`cache_id`), 0, 1) AS `recommended`
|
||||
IF(ISNULL(`cache_rating`.`cache_id`), 0, `cache_logs`.`type` IN (1,7)) AS `recommended`
|
||||
FROM `cache_logs`
|
||||
INNER JOIN `user` ON `user`.`user_id` = `cache_logs`.`user_id`
|
||||
LEFT JOIN `cache_rating` ON `cache_logs`.`cache_id`=`cache_rating`.`cache_id` AND `cache_logs`.`user_id`=`cache_rating`.`user_id`
|
||||
|
||||
Reference in New Issue
Block a user