liquid_feedback_frontend
view app/main/timeline/_action/save.lua @ 11:77d58efe99fd
Version beta7
Important security fixes:
- Added missing HTML encoding to postal address of member
- Link to discussion URL only if it starts with http(s)://
Other bugfixes:
- Fixed wrong display of 2nd level delegating voters for an initiative
- Do not display invited initiators as initiators while voting
- Added missing translation
New features:
- Public message of the day
- Both direct and indirect supporter count is shown in tab heads
- Support shown in initiative lists
Language chooser at the login page has been added (again)
Important security fixes:
- Added missing HTML encoding to postal address of member
- Link to discussion URL only if it starts with http(s)://
Other bugfixes:
- Fixed wrong display of 2nd level delegating voters for an initiative
- Do not display invited initiators as initiators while voting
- Added missing translation
New features:
- Public message of the day
- Both direct and indirect supporter count is shown in tab heads
- Support shown in initiative lists
Language chooser at the login page has been added (again)
author | bsw |
---|---|
date | Fri Jan 22 12:00:00 2010 +0100 (2010-01-22) |
parents | |
children | 7c3e8a1678fc |
line source
1 local id = param.get("id", atom.number)
3 local setting_key = "liquidfeedback_frontend_timeline_current_options"
4 local setting = Setting:by_pk(app.session.member.id, setting_key)
5 local options_string = setting.value
7 local timeline_filter
9 local subkey = param.get("name")
11 setting_map = SettingMap:new()
12 setting_map.member_id = app.session.member.id
13 setting_map.key = "timeline_filters"
14 setting_map.subkey = subkey
15 setting_map.value = options_string
16 setting_map:save()
18 local timeline_params = {}
19 if options_string then
20 for event_ident, filter_idents in setting.value:gmatch("(%S+):(%S+)") do
21 timeline_params["option_" .. event_ident] = true
22 if filter_idents ~= "*" then
23 for filter_ident in filter_idents:gmatch("([^\|]+)") do
24 timeline_params["option_" .. event_ident .. "_" .. filter_ident] = true
25 end
26 end
27 end
28 end
30 local setting_key = "liquidfeedback_frontend_timeline_current_date"
31 local setting = Setting:by_pk(app.session.member.id, setting_key)
33 if setting then
34 timeline_params.date = setting.value
35 end
37 request.redirect{
38 module = "timeline",
39 view = "index",
40 params = timeline_params
41 }