A quick bug fix for top mention sites

Posted under Site News On By Matt

I found an edge case problem for my Top Sites feature of Open Mentions. If a site uses www. as part of their address, my custom SQL didn’t take that into account and filtered it as not the same site. This was because subdomains count as a different site, but the top sites drops the www. bit for clarity of listing.

The result is that the site page for such listings reported there were no entries. Opps.

I fixed that by adding a clause for such sites. After some rudimentary testing, my oversight seems to have been fixed.

Leave a comment

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)