整理posts code