liquid_feedback_frontend

view app/main/timeline/_action/save.lua @ 52:88ac7798b562

Several bugfixes (getpic.c, accepted but canceled issues, ...); Listing of available policies

- Bugfixes in fastpath/getpic.c (related to crashes since alpha5)
- Respect Content-Types of images in database
(needs database update, as Content-Type was incorrectly stored by previous versions)
- Typo fixed in help messages
- RSS-Feed (currently only after manual authentication while session is valid)
- Listing of available policies
- German translation fixed: "gebe" -> "gib" (Imperativ)
- Bugfixes related to issues which had been accepted but canceled afterwards
- Prohibit creation of initiatives in disabled areas or with disabled policies
author bsw/jbe
date Thu Apr 15 19:58:25 2010 +0200 (2010-04-15)
parents 77d58efe99fd
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 }

Impressum / About Us