fix links for friendships to reduce duplicates