putty
(Derek Putnam)
29 مارس 2024، 7:41م
1
لا تحترم ميزة Discourse Embedding تمكين التصويت على المنشورات في فئة معينة. حتى عند تمكينها، فإن الموضوع الجديد الذي تم إنشاؤه تلقائيًا (في فئة تمكين التصويت على المنشورات فيها) بواسطة ميزة التضمين ليس موضوعًا للتصويت على المنشورات. إذا قمت بإنشاء الموضوع بنفسي، فسيتم إنشاؤه مع تمكين التصويت على المنشورات.
إعجابَين (2)
saquetim
(Sérgio Saquetim)
5 أبريل 2024، 3:20ص
9
@putty ،
سيتم إصلاح هذه المشكلة بواسطة:
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.
طلبات السحب قيد المراجعة حاليًا ولكن يجب دمجها قريبًا.
4 إعجابات
saquetim
(Sérgio Saquetim)
8 أبريل 2024، 8:44م
12
تم دمج طلبات السحب. سيتم تضمين الإصلاح في عملية النشر التالية الخاصة بك.
إعجابَين (2)