view posts by user logic