liquid_feedback_frontend
view app/main/interest/_action/xhr_update.lua @ 1825:7b04f14c6d0a
Check area configuration only for new issues
author | bsw |
---|---|
date | Thu Feb 03 11:47:41 2022 +0100 (2022-02-03) |
parents | 4188405c2425 |
children |
line source
1 local issue_id = param.get("issue_id", atom.integer)
2 local interested = param.get("interested", atom.boolean)
4 slot.set_layout()
6 if Interest:update(issue_id, app.session.member, interested) then
7 slot.put_into("data", "ok")
8 else
9 request.set_status("500 Internal Server Error")
10 end