lib/bobot/page.rb in bobot-4.6.0 vs lib/bobot/page.rb in bobot-4.7.0
- old
+ new
@@ -488,15 +488,15 @@
def set_messenger_extensions_home_url!
raise Bobot::FieldFormat.new("access_token is required") unless page_access_token.present?
raise Bobot::FieldFormat.new("Bobot.config.url_for_chat_extension is required") unless Bobot.config.url_for_chat_extension.present?
Bobot::Profile.set(
body: {
- "home_url": {
- "url": Bobot.config.url_for_chat_extension,
- "webview_height_ratio": Bobot.config.size_for_chat_extension || "tall",
- "webview_share_button": Bobot.config.share_button_for_chat_extension || "show",
- "in_test": Bobot.config.in_test_for_chat_extension || true,
- }
+ "home_url": {
+ "url": Bobot.config.url_for_chat_extension,
+ "webview_height_ratio": Bobot.config.size_for_chat_extension || "tall",
+ "webview_share_button": Bobot.config.share_button_for_chat_extension || "show",
+ "in_test": Bobot.config.in_test_for_chat_extension || true,
+ }
},
query: { access_token: page_access_token },
)
end