liquid_feedback_frontend
view app/main/api/_profile.lua @ 1699:c2d51e2158f6
Do not show link to unit in single unit mode
| author | bsw | 
|---|---|
| date | Thu Sep 23 18:16:06 2021 +0200 (2021-09-23) | 
| parents | 32cc544d5a5b | 
| children | 
 line source
     1 local profile = param.get("profile", "table")
     3 local r = json.object()
     5 for i, field in ipairs(config.member_profile_fields) do
     6   if profile.profile[field.id] then
     7     r[field.id] = profile.profile[field.id] or json.null
     8   end
     9 end
    10 --[[
    11 if profile.statement then
    12   if request.get_param{ name = "statement_format" } == "html" then
    13     r.statement = profile:get_content("html")
    14     r.statement_format = "html"
    15   else
    16     r.statement = profile.statement
    17     r.statement_format = profile.formatting_engine
    18   end
    19 end
    20 --]]
    22 return r
