{Racine_id, _, _} = Racine,\r
case euphorik_bd:message_by_id(Racine_id) of\r
{ok, Mess} ->\r
- json_message(Mess, euphorik_bd:parents(Racine_id), User);\r
+ json_message(Mess, euphorik_bd:parents_id(Racine_id), User);\r
_ ->\r
null\r
end\r
{content, Mess#minichat.contenu},\r
{root, Mess#minichat.racine_id},\r
{answer_to, {array, lists:map(\r
- fun(Id_mess) -> \r
+ fun(Id_mess) -> \r
{ok, M} = euphorik_bd:message_by_id(Id_mess),\r
{ok, User_reponse} = euphorik_bd:user_by_mess(M#minichat.id),\r
{struct, [{id, M#minichat.id}, {nick, M#minichat.pseudo}, {login, User_reponse#user.login}]}\r