With the advent of Web 2.0 tagging became a popular feature. People tag diverse kinds of content, e.g. products at Amazon, music at Last.fm, images at Flickr, etc. Clicking on a tag enables the users to explore related content. In this paper we investigate how such tag-based queries, initialized by the clicking activity, can be enhanced with automatically produced contextual information so that the search result better fits to the actual aims of the user. We introduce the SocialHITS algorithm and present an experiment where we compare different algorithms for ranking users, tags, and resources in a contextualized way. Categories and Subject Descriptors H.3.3 [Information Systems]: Information Search and Retrieval; H.4.m [Information Systems]: Miscellaneous General Terms Algorithms Keywords Social Media, Search, Ranking, Folksonomies, Context, Adaptation