Prevent email addresses from being counted as mentions


(Damien) #1

Hi there,

Is there any built-in way to prevent this behaviour or is a plugin ?

Thanks!


(RĂ©gis Hanol) #2

Not sure I understand what you mean since emails aren’t counted as mention (test: foo@damien.bar).


(Gerhard Schlager) #3

I think he means that email addresses are counted against the max_mentions_per_post.
I can’t test it right now, but I think I noticed this too some time ago. Not sure if it still happens…


(Jeff Atwood) #4

Aha if we can repro that we should fix @techapj.


(Allen - Watchman Monitoring) #6

Seems to be fixed… I could do that as a new user on try … http://try.discourse.org/t/this-is-alot-of-emails/356


(Sam Saffron) #7

Yeah this is bust … tagging as a bug

1@test.com 1@best.com @best @not

Post.find(162234).raw_mentions
=> ["test", "best", "not"]

There should be 0 raw mentions on my post here cause nobody was mentioned.


(Damien) #8

Exactly, sorry I could not provide more input.

I could not see any post or issue related to this problem, and I thought that may be related to some misusage of the application in some way eheh

Thanks for the quick answer!


(RĂ©gis Hanol) #9

This is now fixed :pizza:

Thanks @damien for reporting that issue :slightly_smiling:


(RĂ©gis Hanol) #10