liquid_feedback_frontend
annotate env/lf4rcs/notification_handler.lua @ 1538:25ea15b4bd5e
Reworked cookie session control, exceptions for API
| author | bsw |
|---|---|
| date | Tue Oct 20 17:48:49 2020 +0200 (2020-10-20) |
| parents | 30523f31b186 |
| children |
| rev | line source |
|---|---|
| bsw@1219 | 1 function lf4rcs.notification_handler(event) |
| bsw@1219 | 2 if event.event == "issue_state_changed" and ( |
| bsw@1219 | 3 event.state ~= "admission" and |
| bsw@1219 | 4 event.state ~= "discussion" and |
| bsw@1219 | 5 event.state ~= "verification" and |
| bsw@1219 | 6 event.state ~= "voting" |
| bsw@1219 | 7 ) then |
| bsw@1219 | 8 lf4rcs.commit(event.issue) |
| bsw@1219 | 9 end |
| bsw@1219 | 10 end |
| bsw@1219 | 11 |