fixbug: unless($user) is always true. refact: add_post($post,$user) is deprecated.