gab-social/app/helpers/instance_helper.rb
mgabdev b0e3d611f5 Removed unused code from initial_state and ReactController
• Removed:
- unused code from initial_state and ReactController
2020-11-09 12:14:42 -06:00

12 lines
237 B
Ruby

# frozen_string_literal: true
module InstanceHelper
def site_title
Setting::SITE_TITLE
end
def site_hostname
@site_hostname ||= Addressable::URI.parse("//#{Rails.configuration.x.local_domain}").display_uri.host
end
end