Skip to content

Commit 6ba89fe

Browse files
committed
Prepopulate snippet description in tweet share
1 parent 9858e7d commit 6ba89fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/share/snippet_tweets/tweet_button.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def share_url
2828
end
2929

3030
def tweet_text
31-
"Created with @joyofrails #{share_url}"
31+
[@snippet.description.presence, "Created with @joyofrails #{share_url}"].compact.join("\n\n")
3232
end
3333

3434
def encode(text)

0 commit comments

Comments
 (0)