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

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.