Trust Level Issues, tl1 not overriding tl0

AI-generated summary

The discussion revolves around an issue where users with Trust Level 1 (TL1) are still experiencing a 24-hour posting restriction, despite being assigned to TL1 via a Patreon group. MrDavis97 initially believed Patreon would automatically assign TL1, but even after manually assigning users to TL1, the rate limit persists. pfaffman suggests using a custom group to assign TL1, but MrDavis97 confirms the issue remains. simon clarifies that the rate limit new user create topic setting applies not only to TL0 users but also to TL1 users within their first 24 hours on the site. The restriction is lifted for TL2 and above, meaning promoting Patreon users to TL2 or higher would resolve the issue. The logic for this behavior is based on the new_user? method, which checks trust level and account age simon.

Basically, I am experimenting with trust levels. With trust level 0, I set it up so that you can only make one post every 24 hours. I set up Patreon so that if you become a patron you automatically get trust level 1, which means there are no restrictions on posting. So I experimented with this, and made a new user that subscribed to Patreon, and successfully they were put in the Patron group which gives trust level 1. However, when I try to make this user post now, it still only allows me to post every 24 hours. Why is this happening? Why isn’t trust_level_1 overriding the restrictions of trust_level_0 for this user?

I don’t think that you can have Patreon assign them to trust level 1, as it’s a special group that’s handled by Discourse. You should create a group for Patreon and have that group assign them to TL1. It’s in the membership tab of the group page:

I just tried that and it still doesn’t work.

Let me go back a bit. It seems that Patreon did assign this user to a trust level 1. In the image I posted, it shows that the user’s trust level is “1 - basic user”, and this changed from “0 - new user” just from signing up from Patreon.

But regardless of what Patreon did or did not do, it seems even if I manually put a user in the tf1 category, they’re still restricted in posting every 24 hours, instead of having that restriction lifted.

Also, note that I set rate limit new user create topic to 86400 so that users with tl0 can only post every 24 hours. Is this where I’m going wrong? Is perhaps this also applying to tl1 users?

This will be the cause of the problem. The rate limit that is applied from that setting is applied to trust level 0 users and to trust level 1 users who have existed on the site for less than 24 hours.

So are you saying that this is a 24-hour time issue across all trust levels?

For example, what if I made the Patreon group be promoted to trust level 2, or 3, or even 4. Would this get around the rate limit?

No, the limit is applied to trust level 0 users for as long as they are at trust level 0. The limit is applied to trust level 1 users for their first 24 hours on the site. The limit is not applied to trust level 2 users. If you granted trust level 2 to your Patrons group members, they would bypass the limit.

Mostly for my own reference, the logic that is used for this is:

def new_user?
  (created_at >= 24.hours.ago || trust_level == TrustLevel[0]) &&
    trust_level < TrustLevel[2] &&
    !staff?
end