putty  
                
                  
                    March 29, 2024,  7:41pm
                   
                  1 
               
             
            
              The Discourse Embedding feature is not respecting when a category has post voting enabled. Even when enabled, a new topic auto-generated (in a category with post voting enabled) by the Embedding feature is not a post-voting topic. If I create the topic myself it is created with post voting.
             
            
              2 Likes 
            
            
           
          
            
              
                saquetim  
              
                  
                    April 5, 2024,  3:20am
                   
                  9 
               
             
            
              @putty ,
This issue will be fixed by:
  
  
    
    
  
      
    
      discourse:main ← discourse:dev/topic_embed_import_create_args__modifier
    
      
        
          opened 11:02PM - 04 Apr 24 UTC 
        
        
        
       
   
 
  
    This modifier allows a plugin to change the arguments used when creating a new t… opic 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. 
   
   
  
    
    
  
  
 
  
  
    
    
  
      
    
      discourse:main ← discourse:fix/set-subtype-when-embedding-topics
    
      
        
          opened 11:51PM - 04 Apr 24 UTC 
        
        
        
       
   
 
  
    This commit registers a modifier to set the subtype of a topic to `Topic::POST_V… OTING_SUBTYPE` during the embedding process when certain conditions are met:
- a new topic is being created;
- the topic will be saved to a valid category;
- the category has either `create_as_post_voting_default` or `only_post_voting_in_this_category` set to `true`
This PR requires https://github.com/discourse/discourse/pull/26527 to be merged in core. DO NOT MERGE before that. 
   
   
  
    
    
  
  
 
The PRs are currently being reviewed but we should have them merged soon.
             
            
              4 Likes 
            
            
           
          
            
              
                saquetim  
              
                  
                    April 8, 2024,  8:44pm
                   
                  12 
               
             
            
              The PRs are merged. The fix will be included in your next deployment.
             
            
              2 Likes