Unverified Commit 723be461 authored by Benjamin Neff's avatar Benjamin Neff
Browse files

Fix Services::Tumblr#tumblr_template with frozen strings

parent 1b30508c
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -37,12 +37,11 @@ class Services::Tumblr < Service
  end

  def tumblr_template(post, url)
    html = ''
    post.photos.each do |photo|
      html << "![photo](#{photo.url(:scaled_full)})\n\n"
    end
    html << post.message.html(mentioned_people: [])
    html << "\n\n[original post](#{url})"
    photo_html = post.photos.map {|photo|
      "![photo](#{photo.url(:scaled_full)})\n\n"
    }.join

    "#{photo_html}#{post.message.html(mentioned_people: [])}\n\n[original post](#{url})"
  end

  def post_opts(post)