Improve posts feed function.