RSS multi-domains issue

If a site has more than one domains, the rss links should use the domain that user actually used, not the one set in database.