zooniverse / talk-api

Apache License 2.0
6 stars 0 forks source link

Implement posting age requirement #308

Closed zwolf closed 1 year ago

zwolf commented 1 year ago

Adds the length of time since a user's created_at timestamp as a policy check to determine whether that user can post new comments. Direct result of spam issues on Talk.

This requires a new env var, 'POSTING_AGE_REQUIREMENT', to exist in order to be checked. This is a string that represents the number of hours old an account has to be to be allowed to post a comment on specifically the 'zooniverse' board. Default is 24.

Before merging this PR and deploying this feature, we should have a follow up conversation.