       else
         @embedBox.hide()
 
-      @attachTooltipAndEmbedInteractivity()
-
   render:->
     super
 

          @embedBox.hide()  unless @embedBox.hasValidContent

      @embedBox.setActiveLink link.link_url

    else
      @embedBox = new KDView
    @attachTooltipAndEmbedInteractivity()

  click:(event)->

    super

    # if $(event.target).is("span.type-icon")
    #   KD.getSingleton('router').handleRoute "/Activity/#{@getData().slug}", state:@getData()

  applyTextExpansions:(str = "")->

    # This code will remove single links from the text if they are located
    # at the start or end of the line. However, since we defer the embed
    # load, there is no way to be sure if the embed is there or not when
    # shortening the link -> so i disabled it --arvid

    # link = @getData().link?.link_url
    # if link

    #   links = str.match(/([a-zA-Z]+\:\/\/)?(\w+:\w+@)?([a-zA-Z\d.-]+\.[A-Za-z]{2,4})(:\d+)?(\/\S*)?/g)
    #   if links?
    #     hasManyLinks = links.length > 1
    #   else
    #     hasManyLinks = no

    #   isJustOneLink = str.trim() is link
    #   endsWithLink = str.trim().indexOf(link, str.trim().length - link.length) isnt -1
    #   startsWithLink = str.trim().indexOf(link) is 0

    #   if @embedBox.hasValidContent and not hasManyLinks and not isJustOneLink and (endsWithLink or startsWithLink)
    #     str = str.replace link, ""

    str = @utils.applyTextExpansions str, yes

  pistachio:->
    if @twoColumns

        {{> @commentBox}}
      """

