https://meta.discourse.org/badges/124/popular-link
SQL
select l.user_id, post_id, min(l.created_at) granted_at
from topic_links l
join posts p on p.id = post_id and p.deleted_at IS NULL
join topics t on t.id = p.topic_id and t.deleted_at IS NULL and t.archetype <> 'private_message'
where not internal and clicks >= 50
group by l.user_id, l.post_id
@codinghorror I don’t mind adding this in for current release … seems pretty simple, your call