mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 18:33:28 +08:00

* DEV: Add `topic_embed_import_create_args` plugin modifier This modifier allows a plugin to change the arguments used when creating a new topic for an imported article. For example: let's say you want to prepend "Imported: " to the title of every imported topic. You could use this modifier like so: ```ruby # In your plugin's code plugin.register_modifier(:topic_embed_import_create_args) do |args| args[:title] = "Imported: #{args[:title]}" args end ``` In this example, the modifier is prepending "Imported: " to the `title` in the `create_args` hash. This modified title would then be used when the new topic is created.