DillonB07
(Dillon Barnes)
5월 28, 2022, 6:21오후
1
안녕하세요,
저는 Discourse 포럼의 관리자로, 검열하고 싶은 단어 목록이 담긴 .txt 파일을 일괄 업로드하려고 합니다. 파일에는 한 줄에 한 단어씩 입력되어 있습니다. 그런데 Admin > Customise > Censor로 이동하여 Add from file을 클릭하면 단어가 검열(censor)되지 않고 차단(block)됩니다.
Require Approval에서 같은 작업을 시도해 보았더니, 이번에는 단어가 Require Approval 목록에 추가되지 않고 검열되었습니다.
저희 커뮤니티는 Discourse 2.9.0 beta 4(6268fe7495 )를 사용 중입니다.
설치된 플러그인은 docker_manager와 styleguide뿐입니다.
빠른 수정이 가능할까요? 이것이 저희 포럼의 문제라면 어떻게 해결해야 하나요?
감사합니다,
DillonB07
3개의 좋아요
당신이 модератор(모더레이터)라는 걸 압니다. 하지만 이번엔 이게 원인일 수도 있겠네요.
Dillon Barnes:
.txt 파일을 업로드하세요
관리자에게 사이트 설정으로 가서 허용된 확장자(authorized extensions)를 찾아보라고 요청하면 이 문제를 해결하는 데 도움이 될지 궁금합니다.
Benjamin_D
(Benjamin Decotte)
5월 28, 2022, 9:14오후
3
2.9.0.beta4 ( d065ec0f7b )에서 관리자 권한으로 이 문제를 재현할 수 있습니다.
대량 업로드에 한정된 문제인 것 같습니다 (단어 단위로 입력하면 의도대로 작동하거든요).
하지만
Require Approval을 시도하면 목록도 차단됩니다.
2개의 좋아요
@DillonB07님 , 이 문제를 보고해 주셔서 감사합니다.
@loic님이 수정 작업을 진행했고, 방금 병합되었습니다
committed 09:07AM - 17 Jun 22 UTC
* FIX: Make watched words uploads work as intended
Currently when we upload a… file containing watched words, it will always
add the words to the action that was initially selected: this is the
`block` action by default but if changing manually the action in the URL
to `flag` for example, then this action will be selected and uploaded
watched words will be categorised as `flag` no matter what.
The problem lies with how the component works: it’s an Uppy object where
extra data is defined to provide an action key to the server but when
navigating to another listed action, while this action key is properly
updated on the component itself, the underlying Uppy object has already
been created and doesn’t care about the new value.
This patch solves this by using the `_perFileData` method instead of
`data`: the former is merged just before uploading a file whereas the
latter is used when the Uppy object is created.
5개의 좋아요
이 주제는 마지막 답변 후 24시간이 지나면 자동으로 닫힙니다. 더 이상 새 답변을 작성할 수 없습니다.