Crius
(Crius)
7월 17, 2024, 1:41오후
1
The title says it all, really.
We had users that have to be set to “silenced” simply continue “harassing” by spamming reactions on other users.
There is no limit to the pettiness of some people, I guess.
It would make sense to me that when a user is silenced, it could not use reactions as well.
6개의 좋아요
This was raised as part of this topic too:
I agree with this, especially now we have Reactions to take into consideration.
I also think replying to non-staff PMs should also be removed.
This would make Silence more effective as a halfway house where community interactions were not permitted, but unread lists were still tracked, bookmarks could still function, conversations with mods in PMs would still be possible, etc.
2개의 좋아요
Heliosurge
(Dan DeMontmorency)
7월 17, 2024, 2:36오후
3
Hi my topic here might be of help. @Canapin shared code for hiding like button in a category if not part of a group. The Code might be able to be modified to use status of current user and if silenced to hide button.
Hi I have categories that are visible to public but only certain groups are allowed to post/reply.
I am looking for guidance thst if current user is not part of saud groups to hide the Like button in posts. To remove one of the many flaws of reddit.
I am also looking fir code to allow decorating a Topic Author so all of there posts in the topic identify them as Op.
Thanks.
I suppose the easiest way would be using CSS Classes for Current User’s Groups which adds the current user groups to the body classes, then use CSS such as:
body.category-your-category-slug:not(.group-group_name) {
button.like {
display: none;
}
}
Let me know if you have trouble understanding
This could be used as an interm workaround.
2개의 좋아요
Heliosurge
(Dan DeMontmorency)
7월 20, 2024, 5:40오전
4
최근 이 #customization:theme-component도 발견했습니다. 음소거된 사용자의 TL0을 그대로 두기만 하면 됩니다. 또는 음소거된 사용자를 대상으로 하려면 포크를 사용하세요.
이것은 매우 단순한 테마 컴포넌트로, 신규 사용자(TL0)에게 “좋아요” 기능을 숨길 수 있는 기능을 제공합니다. 극도로 집요한 트롤에게는 100% foolproof(완벽한 방어)가 될 수는 없지만, 활성화되어 있는 동안 “좋아요” 요소가 DOM에 로드되는 것을 방지합니다. 이 컴포넌트가 좋아요 남용을 시도하는 트롤에 대한 추가적인 장벽 역할을 하기를 바랍니다. 도움이 될 수 있도록 익명 사용자에게도 좋아요를 숨기는 옵션을 포함했습니다.
변경 전:
[before]
변경 후:
[after]
설치
레포지토리 링크
https://github.com/tshenry/discourse-hide-likes
테마 컴포넌트와 설치 방법에 익숙하지 않다면 테마 설치 가이드 를 확인해 보세요. 그리고 Discourse 테마에 대해 더 자세히 알고 싶다면 이 가이드 를 살펴보세요.
1개의 좋아요
Crius
(Crius)
7월 27, 2024, 10:00오전
5
Thank you so much for the options/workaround!
I’ll check them asap. Cheers!
Crius
(Crius)
7월 27, 2024, 11:42오전
6
Mhm, I tried creating a new feature that include silenced users but it doesn’t seem to work.
Odd.
It could be because my community use the reactions.
Edit: For some reason I checked the currentUser and noticed a silenced attribute but now that I am checking again, there is no such thing.
Am I hallucinating? Does the frontend not need to know if a user is silenced?
Heliosurge
(Dan DeMontmorency)
7월 27, 2024, 10:08오후
7
Crius:
수정: 무슨 이유에서인지 currentUser를 확인해 보니 silenced 속성이 있었는데, 다시 확인해 보니 그런 것은 없습니다.
제가 환각을 보고 있는 건가요? 프론트엔드가 사용자가 침묵 상태인지 알아야 하는 경우가 없는 건가요?
핵심(core) 변경 사항으로 인해 업데이트가 필요할 수 있는 Customization > Theme component 링크를 시도해 보셨다면, 해당 컴포넌트에 업데이트가 필요할 수 있습니다.
하지만 @Canapin이 저와 공유한 코드 스니펫을 시도해 보신 것 같습니다. 침묵(silence)에 대한 속성이 있는지 확실하지 않습니다. 대신 그룹을 대상으로 해 보시기 바랍니다. 현재 사용자가 속해 있는 모든 그룹을 CSS로 타겟팅할 수 있는 클래스로 추가하는 #customization:theme-component를 사용해야 합니다.
정적 테스트가 작동한다면, 독성 사용자를 추가할 그룹을 생성하세요. 아마도 북마크(사용자 정의)나 비공개 관리자 카테고리에서 예약된 게시물을 사용하여, 좋아요를 숨기는 데 사용된 독성 그룹에서 멤버를 제거하거나 검토하도록 상기시켜 주는 게시물을 예약하고 싶을 것입니다.
1개의 좋아요