def resolve_user(user_name, user_resolutions):
    """Resolve user names."""
    user = user_name
    if user in user_resolutions:
        user = user_resolutions[user]
    else:
        user = user_name.split(".")[1]
    return "[@{}](/p/{})".format(user, user)