From 0e4adc004967a59fd0f5dde6a865260734cb8582 Mon Sep 17 00:00:00 2001 From: shawn-higgins1 <23224097+shawn-higgins1@users.noreply.github.com> Date: Mon, 22 Jul 2019 16:28:09 -0400 Subject: [PATCH] Add watchtower metadata (#635) --- app/controllers/application_controller.rb | 1 + app/models/room.rb | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 125db706..81c9ed45 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -106,6 +106,7 @@ class ApplicationController < ActionController::Base meeting_logout_url: request.base_url + logout_room_path(@room), meeting_recorded: true, moderator_message: "#{invite_msg}\n\n#{request.base_url + room_path(@room)}", + host: request.host, recording_default_visibility: Setting.find_or_create_by!(provider: user_settings_provider) .get_value("Default Recording Visibility") == "public" } diff --git a/app/models/room.rb b/app/models/room.rb index 09bbc70e..41f2b2dd 100644 --- a/app/models/room.rb +++ b/app/models/room.rb @@ -56,7 +56,10 @@ class Room < ApplicationRecord attendeePW: attendee_pw, moderatorOnlyMessage: options[:moderator_message], muteOnStart: options[:mute_on_start] || false, - "meta_#{META_LISTED}": options[:recording_default_visibility] || false + "meta_#{META_LISTED}": options[:recording_default_visibility] || false, + "meta_bbb-origin-version": Greenlight::Application::VERSION, + "meta_bbb-origin": "Greenlight", + "meta_bbb-origin-server-name": options[:host] } # Send the create request.