When I type in:likes in the search field, it automatically checks the “I liked” box. If I then uncheck that box, the text in:likes in the search field is wiped along with it. I cannot have in:likes in the search field and an unchecked “I liked” box.
So – that’s not giving me what I want to know. Is there a way to get it?
I just created this Data Explorer query with help from Gemini. Gives the top 10 most liked posts, ever.
-- Queries the top 10 most liked posts of all time (for modern Discourse versions)
SELECT
p.id AS post_id,
p.like_count,
CONCAT('/t/', t.slug, '/', t.id, '/', p.post_number) AS url,
t.title AS topic_title,
p.user_id,
u.username
FROM posts AS p
JOIN topics AS t ON t.id = p.topic_id
JOIN users AS u ON u.id = p.user_id
WHERE p.deleted_at IS NULL
AND t.deleted_at IS NULL
AND p.post_type = 1 -- 1 for regular posts
ORDER BY p.like_count DESC
LIMIT 10