← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands-website/anti_spam_3 into lp:widelands-website

 

The proposal to merge lp:~widelands-dev/widelands-website/anti_spam_3 into lp:widelands-website has been updated.

Description changed to:

A bunch of changes:

- Moved the spam check from pybb.views.py to pybb.forms.py
- Prevent e-mails and notifications to users if spam is detected
- Instead inform settings.ADMINS per E-Mail of potential spam. The E-mail contains the topic name and the whole post with a link to the admin page pybb/post
- Importand: Deleting a post over the admin page pybb/post uses now the method of the model instead of Django's default action. This prevents index errors if a topic has no post.
- Added a method to pybb.Post to unhide posts. This is currently callable only over the admin site but having this in pybb.Post makes it available over a button in the posts view (just like 'Stick topic' or similar)
- Changed the views in the admin pages as follows:
   - Added hidden property to the list of pybb/post
   - Added post_count to list in pybb/topic
   - Added the above admin actions to pybb/post
- If an ADMIN decides of no spam to a hidden post and unhide it over the admin action 'Unhide post and inform subscribers', the usual notices and E-mails are send when the post got unhided.
- Added a regex for International phone numbers and used it to search for in topic_name and post_body. The regex was made by janus and tested against the gathered spam-posts. Thanks janus :-)

For more details, see:
https://code.launchpad.net/~widelands-dev/widelands-website/anti_spam_3/+merge/309167
-- 
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands-website/anti_spam_3 into lp:widelands-website.


References