Inject posts factory.