putty
(Derek Putnam)
Mars 29, 2024, 7:41
1
La fonctionnalité Discourse Embedding ne respecte pas lorsqu’une catégorie a le vote de publication activé. Même lorsqu’il est activé, un nouveau sujet généré automatiquement (dans une catégorie avec le vote de publication activé) par la fonctionnalité d’intégration n’est pas un sujet avec vote de publication. Si je crée le sujet moi-même, il est créé avec le vote de publication.
2 « J'aime »
saquetim
(Sérgio Saquetim)
Avril 5, 2024, 3:20
9
@putty ,
Ce problème sera résolu par :
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.
Les PRs sont actuellement en cours de révision mais nous devrions les fusionner bientôt.
4 « J'aime »
saquetim
(Sérgio Saquetim)
Avril 8, 2024, 8:44
12
Les PR sont fusionnés. Le correctif sera inclus dans votre prochain déploiement.
2 « J'aime »