No more double-posted comments! July 24, 2002 1:02 PM   Subscribe

quite possibly the one feature that was the longest time coming. I finally did it.

You can't double-post a comment in either MetaFilter or MetaTalk ever again.
posted by mathowie to Feature Requests at 1:02 PM (78 comments total)

it works in mefi, I swear. gimmie a couple minutes of fix it here.
posted by mathowie (staff) at 1:06 PM on July 24, 2002


Hurry up!
posted by ColdChef at 1:07 PM on July 24, 2002


ok, try now
posted by mathowie (staff) at 1:07 PM on July 24, 2002


done!
posted by mathowie (staff) at 1:08 PM on July 24, 2002


asdf
posted by PinkStainlessTail at 1:08 PM on July 24, 2002


yup.
posted by PinkStainlessTail at 1:08 PM on July 24, 2002


i want a pony
posted by gluechunk at 1:09 PM on July 24, 2002


i want a pony
posted by gluechunk at 1:09 PM on July 24, 2002


i want a pony
posted by ColdChef at 1:10 PM on July 24, 2002


I wanna turn, I wanna turn!
posted by whatnotever at 1:11 PM on July 24, 2002


Ooooh! A pony! I want a pony!
posted by dejah420 at 1:11 PM on July 24, 2002


Urp
posted by websavvy at 1:11 PM on July 24, 2002


I predict that this will be one of the greatest, most thought-provoking threads, ever.
posted by whatnotever at 1:12 PM on July 24, 2002


this is a test to fix gluechunk's bug
posted by mathowie (staff) at 1:12 PM on July 24, 2002


fixed gluechunk's bug
posted by mathowie (staff) at 1:12 PM on July 24, 2002


FYI: I'm etting other users post the same thing, as that's not the problem of double posted comments
posted by mathowie (staff) at 1:13 PM on July 24, 2002


Mathowie is the Kwisatz Haderach!
posted by Kafkaesque at 1:13 PM on July 24, 2002


butros butros ghali
posted by machaus at 1:14 PM on July 24, 2002


sweet
posted by machaus at 1:15 PM on July 24, 2002


Muad 'Dib! Muad 'Dib!

...let the post wash over us, and around us, and through us, but only once ....
posted by gleuschk at 1:16 PM on July 24, 2002


test from multiple windows
posted by machaus at 1:16 PM on July 24, 2002


I simply did what others like holloway and rusty suggested long ago. I am now creating an MD5 hash of every comment's content, and tossing that into the db. Before inserting new comments, I take a quick MD5 hash of the about-to-be-submitted comment and see if it matches any other hash stored in the db, in the same thread, by the same user. If there's a match, nothing is submitted to the db.

Moral of the story: read the directions. Who knew hashing string variables in ColdFusion was brain-dead simple?
posted by mathowie (staff) at 1:17 PM on July 24, 2002


"if it matches any other hash stored in the db, in the same thread, by the same user."

So does that mean I can't intentionally say exactly the same thing later on in a thread, also?

Not that I'd ever want to.
posted by mr_crash_davis at 1:19 PM on July 24, 2002


hmm...
posted by interrobang at 1:19 PM on July 24, 2002


yup, writing hmm...(space) does not work. swell. now how about those damn A?s and E?s I keep farting out?ü
posted by interrobang at 1:20 PM on July 24, 2002


gzbt
posted by quonsar at 1:22 PM on July 24, 2002


how about if you say the same thing later in italics?
posted by yhbc at 1:23 PM on July 24, 2002


how about if you say the same thing later in italics?
posted by yhbc at 1:23 PM on July 24, 2002


"if it matches any other hash stored in the db, in the same thread, by the same user."

So does that mean I can't intentionally say exactly the same thing later on in a thread, also?

Not that I'd ever want to.
posted by mr_crash_davis at 1:23 PM on July 24, 2002


How 'bout that?
posted by mr_crash_davis at 1:24 PM on July 24, 2002


i once had a whole pound of MD5 hash, you could see the imprint of the burlap in it.
posted by quonsar at 1:24 PM on July 24, 2002


I keep farting out?���¼

Not quite a fart and a half...
posted by machaus at 1:24 PM on July 24, 2002


Did you change anything, crash?
posted by yhbc at 1:24 PM on July 24, 2002


Hm, so you're actually filtering based on content? It's unlikely, but still possible that someone will want to post the same comment twice. Maybe something short, just for effect. I suppose you may consider that noise...

The other way to do it is to pre-generate a unique ID that goes in the form. Never let a form be submitted if its ID already has been. That will only block the unintentional double posts.

Of course, there are ways around this one, too, for those who insist on double-posting (as shown above, on preview). Gluechunk's method can be extended in various ways. I assume you're just trimming whitespace off the ends of the post now...
posted by whatnotever at 1:25 PM on July 24, 2002


"Did you change anything, crash?"

No, I don't believe I did. It should be an exact copy, except for the timestamp. Is that part of the hash?
posted by mr_crash_davis at 1:29 PM on July 24, 2002


MetaFilter will never be the same.
posted by insomnyuk at 1:31 PM on July 24, 2002


Yeah, it will stop intentional double posts (I just tried). There is an easy way around this, though.
posted by insomnyuk at 1:32 PM on July 24, 2002


MetaFilter will never be teh same.
posted by insomnyuk at 1:33 PM on July 24, 2002


see?
posted by insomnyuk at 1:33 PM on July 24, 2002


Insomnyuk, there are more elegant methods than that.
posted by whatnotever at 1:35 PM on July 24, 2002


Insomnyuk, there are more elegant ways than that.
posted by whatnotever at 1:35 PM on July 24, 2002


Insomnyuk, there are more elegant methods than that.
posted by whatnotever at 1:36 PM on July 24, 2002


Actually, that's not what I wanted to do, damn I'm retarded. All you probably have to do is add one invisible character somewhere in the post and it will look the same but the filterfilter won't pick it up.

posted by insomnyuk at 1:36 PM on July 24, 2002


MetaFilter will never be the same.
posted by insomnyuk at 1:36 PM on July 24, 2002


Bloody clipboard makin' me look like a fool! The second one is not the method I was intending. Perhaps Metafilter will be saved from our evil schemes by our ineptitude, eh, insomnyuk?
posted by whatnotever at 1:37 PM on July 24, 2002


crash, you inserted an extra space in the middle of your post, that's why it wasn't an exact match.
posted by mathowie (staff) at 1:40 PM on July 24, 2002


dp
posted by adampsyche at 1:40 PM on July 24, 2002


ok, so yeah, this can be thwarted if you really want to make a duplicate post, but you know what? I bet 100% of accidental "I just refreshed in IE for the Mac" reposts will be gone.
posted by mathowie (staff) at 1:41 PM on July 24, 2002


Matt: all you have to do is add an html tag and its closing tag somewhere(with nothing in between), I use that on other message boards to cheat the cursing filters (stick em in between letters) when I'm feeling mischievous.

Anyone who is going to go to this much trouble to intentionally double post is probably crazy.
posted by insomnyuk at 1:42 PM on July 24, 2002


Is IE 5.2 for Mac still fubar-ed?
posted by evanizer at 1:47 PM on July 24, 2002


Wow! It's not! Yay! Now for those double TrackBacks...
posted by evanizer at 1:48 PM on July 24, 2002


Anyone who is going to go to this much trouble to intentionally double post is probably crazy so it's sure to be a big problem around here.
posted by timeistight at 1:48 PM on July 24, 2002


damn I'm retarded

Jesus Christ man, do we want to go back to this stuff again???

posted by matteo at 1:53 PM on July 24, 2002


If I get MetaTalked for something like that, I certainly won't change my ways, but I will get a good laugh out of it.
posted by insomnyuk at 1:58 PM on July 24, 2002


This is a big shout out to mathowie and his dedicated test team. Pleasure doing business with you folks.
posted by MUD at 2:00 PM on July 24, 2002


Yay, Matt! Instead of trying break it to prove something, I will applaud your ingenuity!
posted by daveadams at 2:01 PM on July 24, 2002


MetaTalked

I think you have just coined a new verb, mi'lad!
posted by evanizer at 2:10 PM on July 24, 2002


Testing the itchy trigger finger...
posted by rushmc at 2:12 PM on July 24, 2002


Nice.
posted by rushmc at 2:13 PM on July 24, 2002


thanks, matt.
posted by moz at 2:27 PM on July 24, 2002


woo! Kudos, matt

posted by precocious at 2:32 PM on July 24, 2002


spiffy!
posted by youhas at 2:32 PM on July 24, 2002


Neat solution. Props...
posted by inpHilltr8r at 2:37 PM on July 24, 2002


but does it take into account seven-year hyphens?
posted by ed at 3:19 PM on July 24, 2002


but does it take into account seven year hyphens?
posted by ed at 3:21 PM on July 24, 2002


::rides in on pony::

brilliant! brilliant i say!

what? why're you all looking at my pony like that? no, you can't have him, he's mine!
posted by lotsofno at 3:40 PM on July 24, 2002


but does it take into account seven year hyphens?

Err, no. It's not supposed to account for intentional alterations in posts. It only prevents accidental reposts via browser refreshes or other such mishaps.
posted by Danelope at 4:03 PM on July 24, 2002


Cities will be built around it, take that Segway!
posted by owillis at 4:26 PM on July 24, 2002


Cool!
posted by moss at 5:12 PM on July 24, 2002


But now what will this guy do?
posted by moss at 5:15 PM on July 24, 2002


Way cool. So is this hash thingy the metafilterfilter?
posted by dglynn at 6:17 PM on July 24, 2002


now
posted by riffola at 7:07 PM on July 24, 2002


Nice!
posted by riffola at 7:07 PM on July 24, 2002


This sucks. No doubleposts?
posted by Neale at 7:19 PM on July 24, 2002


ffrr
posted by Frasermoo at 1:13 AM on July 25, 2002


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn Dominos
-In his house in R'lyeh dead Cthulhu waits for the pizza man.
posted by bshort at 2:42 PM on July 25, 2002


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn Dominos -In his house in R'lyeh dead Cthulhu waits for the pizza man.
posted by bshort at 2:42 PM on July 25, 2002


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn Dominos
-In his house in R'lyeh dead Cthulhu waits for the pizza man.
posted by bshort at 2:42 PM on July 25, 2002


« Older Please add year to date field (redux)   |   Correct comment linkage Newer »

You are not logged in, either login or create an account to post comments