mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:29:52 +01:00
16 lines
396 B
Ruby
16 lines
396 B
Ruby
# frozen_string_literal: true
|
|
|
|
module SocialHelper
|
|
include SocialHelper::TwitterMethods
|
|
include SocialHelper::TumblrMethods
|
|
include SocialHelper::TelegramMethods
|
|
|
|
def answer_share_url(answer)
|
|
answer_url(
|
|
id: answer.id,
|
|
username: answer.user.screen_name,
|
|
host: APP_CONFIG["hostname"],
|
|
protocol: (APP_CONFIG["https"] ? :https : :http),
|
|
)
|
|
end
|
|
end
|