Lestrade's

Lestrade's Lounge => The Illustrious Idea => Topic started by: Milouze on January 16th, 2018, 12:46 PM

Title: Comments censorship
Post by: Milouze on January 16th, 2018, 12:46 PM
https://lestrades.com/offer/11039/

I understand the user is new to trading. I was wondering what level of visibility a non logged-user had, or a user not concerned with the actual offer, I got my response the hard way here :)

It would be nice to prevent Steam keys stand formats to be added to comments, thanks to some sort of censorship.
Or maybe a warning when detecting such string that would instruct the user into sending PMs instead ?
Title: Re: Comments censorship
Post by: [Lestrades.com] Nao 尚 on January 16th, 2018, 06:18 PM
Lol yeah... Comments are visible to everyone.
Although LT not being very popular, I'm guessing only a few select search engines are seeing it. (I'm not seeing particular bot activity in my access logs anyway.) So it's not surprising it didn't get stolen.

It's custom code you're asking for, but it makes sense. I'll look into it.
Title: Re: Comments censorship
Post by: [Lestrades.com] Nao 尚 on January 16th, 2018, 06:21 PM
Check your thread.
Note that it'll only fix comments as they're entered. Not retroactively, which wouldn't be too helpful anyway.
Also-- only tests for Steam keys. Represents the major of use cases anyway...
It also doesn't take into account some weird Steam key formats that I've only seen used a couple times on HB. No biggie.
Title: Re: Comments censorship
Post by: Drebian on January 16th, 2018, 09:00 PM
This is why I love Lestrade's, it's great to see an owner who takes such detailed responsibility for his site.
Title: Re: Comments censorship
Post by: [Lestrades.com] Nao 尚 on January 17th, 2018, 10:41 AM
Thanks ;)

In this case it only took a minute to 'fix', I just went to my portion of the code which auto-added the Redeem button, copied the Steam key recognition code from it, then simply moved it to the portion of the code that inserts new comments, and replaced the key with a warning instead of the key + redeem button. :)

It probably took me longer to write this post. :lol: