Retrospring/app/helpers/social_helper.rb

17 lines
395 B
Ruby
Raw Normal View History

2023-02-19 11:58:47 -08:00
# frozen_string_literal: true
module SocialHelper
include SocialHelper::TwitterMethods
include SocialHelper::TumblrMethods
2023-02-19 11:58:47 -08:00
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
2023-02-19 11:58:47 -08:00
end