def get_tags_from_message(message):
    """
    Given a message string, extracts hashtags and returns a comma-separated list

    :param message: a Hipchat message body
    """
    tags = {word.strip('#') for word in message.split() if word.startswith('#')}
    return ','.join(tags)