2023-02-19 20:58:47 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-12-26 22:04:16 +01:00
|
|
|
module SocialHelper
|
2024-03-01 20:47:38 +01:00
|
|
|
include SocialHelper::BlueskyMethods
|
2021-12-26 22:04:16 +01:00
|
|
|
include SocialHelper::TwitterMethods
|
|
|
|
include SocialHelper::TumblrMethods
|
2023-02-19 20:58:47 +01:00
|
|
|
include SocialHelper::TelegramMethods
|
2023-10-16 15:20:04 +02:00
|
|
|
|
|
|
|
def answer_share_url(answer)
|
|
|
|
answer_url(
|
|
|
|
id: answer.id,
|
|
|
|
username: answer.user.screen_name,
|
|
|
|
host: APP_CONFIG["hostname"],
|
2023-10-16 15:32:48 +02:00
|
|
|
protocol: (APP_CONFIG["https"] ? :https : :http),
|
2023-10-16 15:20:04 +02:00
|
|
|
)
|
|
|
|
end
|
2023-02-19 20:58:47 +01:00
|
|
|
end
|