Commit 723be461 authored by Benjamin Neff's avatar Benjamin Neff

Fix Services::Tumblr#tumblr_template with frozen strings

parent 1b30508c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment