liquid_feedback_frontend
view app/main/member/avatar.lua @ 3:768faea1096d
Version alpha4
Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.
Initiatives may provide a link to an external discussion platform
Direct link on every initiative page to create an alternative initiative
Bugfix: No error when clicking "neutral", when "neutral" is currently selected
Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.
Initiatives may provide a link to an external discussion platform
Direct link on every initiative page to create an alternative initiative
Bugfix: No error when clicking "neutral", when "neutral" is currently selected
| author | bsw |
|---|---|
| date | Mon Nov 30 12:00:00 2009 +0100 (2009-11-30) |
| parents | 5c601807d397 |
| children |
line source
1 local record = MemberImage:by_pk(param.get_id(), "avatar", true)
3 if record == nil then
4 print('Location: ' .. encode.url{ static = 'avatar.jpg' } .. '\n\n')
5 exit()
6 end
8 print('Content-type: ' .. record.content_type .. '\n')
10 if record then
11 io.stdout:write(record.data)
12 else
13 end
15 exit()
