mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
1eec8c3fa6
This adds support for Watched Words to allow replacement with HTML content rather than always replacing with text. Can be useful when automatically replacing with the '<abbr>' tag for example. Discussion - https://meta.discourse.org/t/replace-text-with-more-than-just-links/305672
8 lines
189 B
Ruby
8 lines
189 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddHtmlToWatchedWords < ActiveRecord::Migration[7.0]
|
|
def change
|
|
add_column :watched_words, :html, :boolean, default: false, null: false
|
|
end
|
|
end
|