putty
(Derek Putnam)
29. März 2024 um 19:41
1
Die Discourse-Einbettungsfunktion beachtet nicht, wenn für eine Kategorie die Beitragsabstimmung aktiviert ist. Selbst wenn sie aktiviert ist, ist ein neues Thema, das von der Einbettungsfunktion automatisch generiert wird (in einer Kategorie mit aktivierter Beitragsabstimmung), kein Thema mit Beitragsabstimmung. Wenn ich das Thema selbst erstelle, wird es mit Beitragsabstimmung erstellt.
2 „Gefällt mir“
saquetim
(Sérgio Saquetim)
5. April 2024 um 03:20
9
@putty ,
Dieses Problem wird behoben durch:
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.
Die PRs werden derzeit überprüft, aber wir sollten sie bald zusammenführen.
4 „Gefällt mir“
saquetim
(Sérgio Saquetim)
8. April 2024 um 20:44
12
Die PRs sind zusammengeführt. Der Fix wird in Ihr nächstes Deployment aufgenommen.
2 „Gefällt mir“