신규 사용자에게 좋아요 숨기기

이것은 매우 단순한 테마 컴포넌트로, 신규 사용자(TL0)에게 “좋아요” 기능을 숨길 수 있는 기능을 제공합니다. 극도로 집요한 트롤에게는 100% foolproof(완벽한 방어)가 될 수는 없지만, 활성화되어 있는 동안 “좋아요” 요소가 DOM에 로드되는 것을 방지합니다. 이 컴포넌트가 좋아요 남용을 시도하는 트롤에 대한 추가적인 장벽 역할을 하기를 바랍니다. 도움이 될 수 있도록 익명 사용자에게도 좋아요를 숨기는 옵션을 포함했습니다.

변경 전:

변경 후:

설치

레포지토리 링크
https://github.com/tshenry/discourse-hide-likes

테마 컴포넌트와 설치 방법에 익숙하지 않다면 테마 설치 가이드를 확인해 보세요. 그리고 Discourse 테마에 대해 더 자세히 알고 싶다면 이 가이드를 살펴보세요.

15개의 좋아요

This is awesome! :tada: Although would it be possible to set a certain TL to show the :heart: instead of only Anons and TL0’s? Usually the “like trolls” scroll through the forum and get TL1, then start spamming.

3개의 좋아요

I thought about it, but by default it would block TL1 —> TL2 promotion since:

I guess you can set tl2 requires likes given to 0 to avoid that.

I was originally going to include a setting where you could add specific users, but I figured admins can just lock those users at TL0 if they are abusing likes. Unless you are having widespread issues, I feel like the same should apply to anything TL1 and above. If you get a complaint or see a problem user, lock them down to TL0.

Does that make sense or do you think having TL1 as an option would really be helpful? I definitely want to make sure this works in as many scenarios as it is helpful.

5개의 좋아요

Good catch! That indeed does block TL promotion. I don’t really want to change things up as TL promotions are designed to bring the healthiest community.

Locking TL does work, I think this is probably the best option.

Personally I can probably stick with just locking TL’s but it wouldn’t hurt to have a selectable TL in-case some forum has some customized promotion criteria and want other TL’s to also not be able to cast likes.

2개의 좋아요

See also Disable Likes

이 테마 컴포넌트는 최신 버전의 Discourse에서 깨져 있습니다.

[THEME 3 'Hide Likes'] TypeError: e.reopenWidget is not a function
    r init-hide-likes.js:3
    OW plugin-api.gjs:3920
    initialize api.js:21
    initialize app.js:335
    Ember 14
2개의 좋아요

@RGJ 보고해 주셔서 감사합니다. 다시 작동하도록 수정을 적용했습니다.

3개의 좋아요