3 ms·
Sorry this is (well, somewhat) totally off-topic, but: Has anyone else noticed that the HN news items now show the sub-domain in select cases? Or has it always
by shrikant 16y ago
Sorry this is (well, somewhat) totally off-topic, but:
Has anyone else noticed that the HN news items now show the sub-domain in select cases? Or has it always done this for 'popular' blogging platforms? Currently I can see this for Blogspot, Wordpress, Blogs.com and Posterous.
And, peripherally related, for this item as well. Which confuses me a little...
- akkartik 16y agoIt's done this for wordpress et al since the first public release of the source code: http://github.com/nex3/arc/blob/81576aed622d560fdb3c96a26bb56691b1b9aa9c/news.arc#L1231 http://github.com/nex3/arc/blob/81576aed622d560fdb3c96a26bb5... Around last July's release it started showing subdomains anytime they aren't 'www'. Compare http://github.com/nex3/arc/blob/arc3/news.arc#L1550 http://github.com/nex3/arc/blob/arc3/news.arc#L1550 with http://github.com/nex3/arc/blob/arc3.1/news.arc#L1556 http://github.com/nex3/arc/blob/arc3.1/news.arc#L1556
- shrikant 16y agoThanks for the info, mate. I believe you're slightly mistaken with your second line though - in this case it's showing the subdomain because the TLD is .in, and the 'www' bit is to just strip that particular bit from submitted links that might just be 'www.[blogspot|posterous|wordpress|blogs|etc].[in|jp|uk|za|etc]'. [Further aside: I don't do much code any more, but it was fun to tickle that part of my brain! Thanks again!]
- akkartik 16y agoAh, you're right. So crazy domain names get a subdomain to show up on HN. Very cool.