Modify ↓
#11200 closed enhancement (fixed)
New user and hacks pages should be passed through the spam filter
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | TracHacksPlugin |
Severity: | normal | Keywords: | |
Cc: | Steffen Hoffmann, Dirk Stöcker | Trac Release: |
Attachments (0)
Change History (6)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Creating a Adapter for NewHacks is easy. Simply call
FilterSystem(self.env).test(req, author, changes)
where author
is an author name and changes a list of before/after strings. For NewHack the before is probably always None.
Examples:
- browser:plugins/1.0/spam-filter/tracspamfilter/adapters.py
- browser:plugins/1.0/spam-filter/tracspamfilter/accountadapter.py
See examples how to extract author name.
Best is to encapsulate the code, so that it only is called when spam-filter exists.
comment:3 Changed 8 years ago by
Status: | new → accepted |
---|
comment:6 Changed 7 years ago by
Note: See
TracTickets for help on using
tickets.
See also #11742.