A bug was reported where embedded tweets containing numerous mentions incorrectly count towards a post’s allowed mention limit, triggering validation errors despite those mentions not being real Discourse links 1. watchmanmonitor noted a similar issue with lists of email addresses, suggesting the system should verify if mentions correspond to actual users or ignore them in quoted text. The issue was resolved by zogstrip, who implemented a fix to exclude mentions found within code boxes from the count.
If you embed a tweet with a large number of mentions in the body of the tweet, then those mentions are screened to see if they pass the total number of allowed mentions in a post. Obviously, they aren’t real mentions because they are links on twitter, not links on Discourse.
I also ran into this issue when I was posting a list of 14 group members’s email addresses.
I had to up the allowed count past 10, posted, then put it back.
It would be great if the process that counted @mentions could look to see if they matched real users, or ignored them in quoted text (where they don’t work as mentions anyway)