Fix twitter length issue in bufferizer (#390)
This commit is contained in:
parent
d30e5f63ea
commit
dfe93e5509
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ class Bufferizer
|
|||
|
||||
def twitter_buffer_text
|
||||
twit_name = @article.user.twitter_username
|
||||
if twit_name.present? && @text.size < 230
|
||||
if twit_name.present? && @text.size < 245
|
||||
"#{@text}\n{ author: @#{twit_name} }\nhttps://dev.to#{@article.path}"
|
||||
else
|
||||
"#{@text} https://dev.to#{@article.path}"
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@
|
|||
<input type="hidden" name="social_channel" value="twitter" />
|
||||
<input type="hidden" name="article_id" value="<%= article.id %>" />
|
||||
<p> Twitter </p>
|
||||
<textarea cols="37" rows="6" wrap="hard" name="tweet" maxlength="230" /><%= article.title %></textarea>
|
||||
<textarea cols="37" rows="6" wrap="hard" name="tweet" maxlength="242" /><%= article.title %></textarea>
|
||||
<% if article.last_buffered %>
|
||||
<button class="btn btn-danger" style="font-size:1em;">🙈 TWEETED <%= time_ago_in_words(article.last_buffered) %> ago</button>
|
||||
<% else %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue