def following_mention_ids(api, ids):
    """
        This function has the mention_ids and make sure if the account follow them
        if not ... don't make sense to unfollow them

        returns the ids list only with the ones that the account follow
    """

    ids = list(set(ids))

    following_mention_ids = []
    for idt in ids:
        if api.show_friendship(source_id=idt, target_id=api.me().id)[0].followed_by:
            following_mention_ids.append(idt)

    return following_mention_ids