Skip to content

Commit

Permalink
fix default_hashtag process
Browse files Browse the repository at this point in the history
  • Loading branch information
guskma committed Oct 9, 2023
1 parent 6071e60 commit 3515a44
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions config/initializers/default_hashtag.rb
@@ -1,9 +1,6 @@
# frozen_string_literal: true

Rails.application.configure do
if Tag.table_exists?
config.x.default_hashtag = ENV['DEFAULT_HASHTAG']
config.x.default_hashtag_id = Tag.find_by(name: ENV['DEFAULT_HASHTAG'].downcase)
end
config.x.keyword_hashtag_visibility = !(ENV['KEYWORD_HASHTAG_VISIBILITY'].==('none'))
config.x.default_hashtag = ENV['DEFAULT_HASHTAG']
config.x.default_hashtag_id = Tag.find_by(name: ENV['DEFAULT_HASHTAG'].downcase)
end

0 comments on commit 3515a44

Please sign in to comment.