New user flagged for including links on a post with no links

UPDATE: the issue was that the anti-spam algorithm for new users also flags anchor links, so make sure not to include them in your topic templates :sweat_smile:


We had a new user this weekend attempt to make the following post while they were Trust Level 0. When trying to post they kept getting the Sorry, new users are only allowed to put 2 links in a post error, despite their post not having any links.

Is this a bug, or is there something that’s acting as a link here? I’m going to reconfigure the trust levels and error message on our forum so this doesn’t happen again, but as far as I can tell nothing should have been flagged.

Here is the post –

Summary

Using Zapier to send Git commit msg hooks to MM team, there is a “login to Mattermost” phase. Zapier provides this functionality correctly for Github, Gmail, and presumably most of its other integrations. However the “Login to Mattermost” fails – by actually going to the Mattermost Team/Channel, disabling the Zapier integration creation. I believe this is a Mattermost redirect/callback issue of some sort.

Steps to reproduce

Go to Zapier, set up a Github to MM link (for mattermost without proxy). It will subvert the Zapier process.

Expected behavior

it should login to mattermost and then mattermost should return control to Zapier to complete the testing/creation of the “zap”.

Observed behavior

After login to Mattermost, the Zapier process is halted and not-returned-to. There is no way to complete.

NB This may be idiosyncrasy of an Ubunti-without-NGINX installation.

Edit – as I was trying to post this at first, I got the same error while I was trust level 0

1 Like

It might be related to the anchor links, I guess. I’ve faced a similar issue before with users mentioning #tags and they counted as links as well (IMHO, they should both be discounted).

3 Likes

Oh interesting, he was just following our template for that topic so I bet this isn’t the first time this has happened. I’ll take those out and retest, thank you!

Edit – yep that was it, after changing the template from anchor links to just bolded text I was able to submit it as a new user

4 Likes

Oh the anchor links are somewhat of new feature!

I think we should bypass them here. I think you are on to a legit bug here, we should get it fixed.

Thanks heaps for posting the workaround.

4 Likes

Definitely seeing this problem on https://caddy.community as well. Multiple users in the past few days have been complaining about not being able to post when using our help topic template. :roll_eyes:

2 Likes

I implemented a fix for this bug and a few other smaller bugs related to anchor links:

https://github.com/discourse/discourse/pull/12683

2 Likes