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
|
end
|
||||||
|
|
||||||
def tumblr_template(post, url)
|
def tumblr_template(post, url)
|
||||||
html = ''
|
photo_html = post.photos.map {|photo|
|
||||||
post.photos.each do |photo|
|
"})\n\n"
|
||||||
html << "})\n\n"
|
}.join
|
||||||
end
|
|
||||||
html << post.message.html(mentioned_people: [])
|
"#{photo_html}#{post.message.html(mentioned_people: [])}\n\n[original post](#{url})"
|
||||||
html << "\n\n[original post](#{url})"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def post_opts(post)
|
def post_opts(post)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue