retrospring/app/helpers/social_helper.rb
2024-03-01 21:14:59 +01:00

17 lines
435 B
Ruby

# frozen_string_literal: true
module SocialHelper
include SocialHelper::BlueskyMethods
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