putty
(putty)
3월 29, 2024, 7:41오후
1
Discourse의 임베딩(Embedding) 기능이 카테고리에 게시글 투표(post voting)가 활성화되어 있는 경우를 무시하고 있습니다. 게시글 투표가 활성화된 카테고리에서 임베딩 기능이 자동으로 생성한 새 주제는 게시글 투표 주제가 되지 않습니다. 제가 직접 주제를 생성하면 게시글 투표가 포함된 상태로 생성됩니다.
2개의 좋아요
saquetim
(Sérgio Saquetim)
4월 5, 2024, 3:20오전
9
@putty ,
이 문제는 다음으로 수정될 예정입니다:
main ← dev/topic_embed_import_create_args__modifier
merged 03:37PM - 05 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
merged 08:42PM - 08 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.
해당 PR들은 현재 검토 중이며, 곧 병합되기를 기대합니다.
4개의 좋아요
saquetim
(Sérgio Saquetim)
4월 8, 2024, 8:44오후
12
PR이 병합되었습니다. 수정 사항은 다음 배포에 포함될 예정입니다.
2개의 좋아요