When a user's chat permissions need to be revoked, they are given a true value for flags.chatRevoked. This stops them posting to any guild or the Tavern.
It should also stop them sending private messages to any player.
I'm working on this.
So far I've changed api.sendPrivateMessage to yield the same error as api.postChat. This seems to work locally.
Still to do, AFAICT:
I'm new to this, so please tell me if I'm missing anything.
Hmm... sending another user gems allows for a message. Should flags.chatRevoked block the ability to send gems entirely, or only the message, or leave it as is?
Sending Gems shouldn't be altered. Unless we worry about someone sending constant 1-Gem gifts from a subscriber-grade hoard as a spamming tactic?
Maybe disallow custom messages and instead send a bland, default message? I personally wouldn't mind getting spammed with 1-Gem gifts from anyone as long as the messages weren't upsetting.
I think when someone's been harassing you, any way they can reach you is
not okay. If you've blocked someone, they should not be able to gift gems.
So when someone's blocked entirely, they should not be able to gift gems,
except _maybe_ to party members.
On Tue, Sep 6, 2016 at 9:23 AM, Kaitlin Hipkin [email protected]
wrote:
Maybe disallow custom messages and instead send a bland, default message?
I personally wouldn't mind getting spammed with 1-Gem gifts from anyone.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/HabitRPG/habitrpg/issues/7971#issuecomment-245006430,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF--ruP3LAH74Xgo_LRje7_gTRAFpnczks5qnZOBgaJpZM4J08NR
.
Currently Reading
https://www.goodreads.com/user/email_signature_destination/35215676?utm_medium=reading_link&utm_source=email_signature
[image: Book Cover]
https://www.goodreads.com/user/email_signature_destination/35215676?utm_medium=cover&utm_source=email_signature
For simplicity and safety, flags.chatRevoked should block the ability to send gems entirely. @CrystallineCat excellent question! I hadn't thought of that option.
Chat permissions are often revoked when bad messages are posted to chat areas, and we can't necessarily trust those users to behave appropriately. I do like khipkin's idea of a default message, but even that might be upsetting to a player who's been harassed. Also, the revoked player could change their profile name to something inappropriate, and that would show on the message that the gift recipient received.
A revoked player could also create a new account to bypass the revocation, and send their own gems to the new one, so we want to discourage that too.
I have been more than convinced that blocked users should not be able to send gems at all. Sorry, @deilann, for my insensitive comment above; many abusive people would gladly pay gems in order to continue harassing their victim(s), and that must be prevented.
Also @Alys, good points that users could change their display names to something inappropriate or just transfer gems to a new account.
Thanks for the replies! :)
Looks like api.transferGems doesn't actually check for the user being blocked, either. I've now factored out the checks from api.sendPrivateMessage into a function and use that in both APIs for consistency. I've also made tests for the new restrictions.
I forgot to put the issue number into the commit this time, so here is a link: https://github.com/CrystallineCat/habitrpg/commit/53fd0ac3fd310fa36e6d7022156885ed4b791b6c
However, I'm not sure about couple of things:
api.transferGems to disallow sending gems to yourself, but no corresponding check in api.sendPrivateMessage.@CrystallineCat
// we allow a player to message themself so they can test how PMs work or send their own notes to themself
Most helpful comment
I think when someone's been harassing you, any way they can reach you is
not okay. If you've blocked someone, they should not be able to gift gems.
So when someone's blocked entirely, they should not be able to gift gems,
except _maybe_ to party members.
On Tue, Sep 6, 2016 at 9:23 AM, Kaitlin Hipkin [email protected]
wrote:
Currently Reading
https://www.goodreads.com/user/email_signature_destination/35215676?utm_medium=reading_link&utm_source=email_signature
[image: Book Cover]
https://www.goodreads.com/user/email_signature_destination/35215676?utm_medium=cover&utm_source=email_signature