Fix Services::Tumblr#tumblr_template with frozen strings
This commit is contained in:
parent
1b30508c19
commit
723be461cf
1 changed files with 5 additions and 6 deletions
|
|
@ -37,12 +37,11 @@ class Services::Tumblr < Service
|
|||
end
|
||||
|
||||
def tumblr_template(post, url)
|
||||
html = ''
|
||||
post.photos.each do |photo|
|
||||
html << "})\n\n"
|
||||
end
|
||||
html << post.message.html(mentioned_people: [])
|
||||
html << "\n\n[original post](#{url})"
|
||||
photo_html = post.photos.map {|photo|
|
||||
"})\n\n"
|
||||
}.join
|
||||
|
||||
"#{photo_html}#{post.message.html(mentioned_people: [])}\n\n[original post](#{url})"
|
||||
end
|
||||
|
||||
def post_opts(post)
|
||||
|
|
|
|||
Loading…
Reference in a new issue