liquid_feedback_frontend
annotate app/main/interest/_action/xhr_update.lua @ 1824:de3770da915e
Better handling of new draft in not correctly configured area
| author | bsw | 
|---|---|
| date | Thu Feb 03 11:37:06 2022 +0100 (2022-02-03) | 
| parents | 4188405c2425 | 
| children | 
| rev | line source | 
|---|---|
| bsw@1618 | 1 local issue_id = param.get("issue_id", atom.integer) | 
| bsw@1618 | 2 local interested = param.get("interested", atom.boolean) | 
| bsw@1618 | 3 | 
| bsw@1618 | 4 slot.set_layout() | 
| bsw@1618 | 5 | 
| bsw@1649 | 6 if Interest:update(issue_id, app.session.member, interested) then | 
| bsw@1649 | 7 slot.put_into("data", "ok") | 
| bsw@1649 | 8 else | 
| bsw@1618 | 9 request.set_status("500 Internal Server Error") | 
| bsw@1618 | 10 end | 
| bsw@1618 | 11 |