Skip to content

Commit 4c1e638

Browse files
authored
Merge pull request #91 from tech-conferences/6997-fix-mastodon-url-in-pr-description
Addresses #6997
2 parents 5e0a291 + d2d1f39 commit 4c1e638

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/services/conference/creation_service.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def pr_body
6666
Website: <a href="#{@params[:url]}" target="_blank">#{@params[:url]}</a>
6767
#{cfp_url}
6868
#{twitter_url}
69-
#{@params[:mastodon]}
69+
#{mastodon_url}
7070
#{github_url}
7171
7272
```json
@@ -108,6 +108,12 @@ def twitter_url
108108
"Twitter: <a href=\"https://twitter.com/#{@params[:twitter]}\" target=\"_blank\">https://twitter.com/#{@params[:twitter]}</a>"
109109
end
110110

111+
def mastodon_url
112+
return nil if @params[:mastodon].blank?
113+
114+
"Mastodon: #{@params[:mastodon]}"
115+
end
116+
111117
def github_url
112118
return nil if @github.blank?
113119

0 commit comments

Comments
 (0)