putty
(Derek Putnam)
29 Marzo, 2024 19:41
1
La función de incrustación de Discourse no respeta cuando una categoría tiene habilitada la votación de publicaciones. Incluso cuando está habilitada, un nuevo tema generado automáticamente (en una categoría con votación de publicaciones habilitada) por la función de incrustación no es un tema con votación. Si creo el tema yo mismo, se crea con votación de publicaciones.
2 Me gusta
saquetim
(Sérgio Saquetim)
5 Abril, 2024 03:20
9
@putty ,
Este problema se solucionará con:
main ← 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.
main ← 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.
Las PRs se están revisando actualmente, pero deberíamos tenerlas fusionadas pronto.
4 Me gusta
saquetim
(Sérgio Saquetim)
8 Abril, 2024 20:44
12
Las PRs se fusionaron. La corrección se incluirá en su próximo despliegue.
2 Me gusta