                 if !event.beatmapset
                   continue
 
+                console.log event
                 cover = if event.beatmapset then event.beatmapset.covers.list else ''
                 discussionId = event.comment?.beatmap_discussion_id ? null
                 discussionLink = laroute.route('beatmapsets.discussion', beatmapset: event.beatmapset.id)

                      div
                        className: "beatmapset-event__content"
                        dangerouslySetInnerHTML:
                          __html: osu.trans "beatmapset_events.event.#{@typeForTranslation(event)}",
                            user: @props.users[event.user_id].username
                            discussion: (if discussionId then "<a href='#{discussionLink}'>##{discussionId}</a>" else '')
                            text: (if event.discussion?.starting_post? then _.truncate(event.discussion.starting_post.message, {length: 100}) else '[no preview]')

                      div
                        className: 'beatmap-discussion-post__info'

      'disqualify_legacy'

    event.type


  contentText: (event, users, discussionId, discussions = null) =>
    if discussionId
      if discussions?
        discussion = discussions[discussionId]

        if discussion?
          url = BeatmapDiscussionHelper.url discussion: discussion
          text = BeatmapDiscussionHelper.previewMessage(discussion.posts[0]?.message)
        else
          url = laroute.route 'beatmap-discussions.show', beatmap_discussion: discussionId
          text = osu.trans('beatmapset_events.item.discussion_deleted')

        discussionLink = osu.link(url, "##{discussionId}", classNames: ['js-beatmap-discussion--jump'])
      else
        discussionLink = osu.link(laroute.route('beatmapsets.discussion', beatmapset: event.beatmapset.id), "##{discussionId}", classNames: ['js-beatmap-discussion--jump'])

    else if event.type == 'discussion_lock'
      text = BeatmapDiscussionHelper.format event.comment.reason, newlines: false
    else if event.type not in ['genre_edit', 'language_edit']
      text = BeatmapDiscussionHelper.format event.comment, newlines: false

    if event.user_id?
      user = osu.link(laroute.route('users.show', user: event.user_id), users[event.user_id].username)

    key =
      if event.type == 'disqualify'
        if discussionId?
          'disqualify'
        else
          'disqualify_legacy'
      else
        event.type

    message = osu.trans "beatmapset_events.event.#{key}",
      discussion: discussionLink
      old: event.comment?.old
      new: event.comment?.new
      text: text
      user: user

    # append owner of the event if not already included in main message
    if user? && event.type not in ['disqualify', 'kudosu_gain', 'kudosu_lost', 'nominate']
      message += " (#{user})"

    message
