Use tags to duplicate images?

To make @codinghorror approach easier you can use this data explorer query:

SELECT
  posts.id AS post_id,
  posts.topic_id,
  COUNT(post_actions.id) as likes
FROM
  posts
INNER JOIN
  post_actions ON post_actions.post_id = posts.id
  AND post_actions.post_action_type_id = 2
WHERE
  posts.created_at BETWEEN '2020-01-01' and '2020-01-30'
  AND posts.raw LIKE '%upload://%'
  AND (posts.raw LIKE '%png%' OR posts.raw LIKE '%jpg%')
GROUP BY 1, 2
ORDER BY 3 DESC

Posts from January with image uploads sorted by likes.

3 Likes