Browse Source

Remove whitespace because Sanitize create \n for <p>

tags/v0.2.0
aeris 1 year ago
parent
commit
011d0c16b8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/cross-post/twitter.rb

+ 1
- 1
lib/cross-post/twitter.rb View File

@@ -30,7 +30,7 @@ class CrossPost
end

def post_status(status)
content = Sanitize.clean status.content
content = Sanitize.clean(status.content).strip
content = CGI.unescape_html content
media = status.media_attachments.collect { |f| open f.url }


Loading…
Cancel
Save