fix uid problem

stupidly i was trying to add the uid function to the PostController, not
the Post class. fixed that now.