# AdSense 网站审核：政策违规。您做了什么使其获得批准？

**URL:** <https://meta.discourse.org/t/adsense-site-approval-policy-violation-what-did-you-do-to-get-it-approved/112678>\
**Category:** Support\
**Created:** [2019年三月27日 08:37 UTC](https://meta.discourse.org/t/adsense-site-approval-policy-violation-what-did-you-do-to-get-it-approved/112678 "2019-03-27T08:37:59Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Terrapop](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@Terrapop](https://meta.discourse.org/u/Terrapop)\
**Post date:** [2020年九月6日 09:55 UTC](https://meta.discourse.org/t/adsense-site-approval-policy-violation-what-did-you-do-to-get-it-approved/112678/8 "2020-09-06T09:55:30Z")

</div>

这就是为什么我赞助了这个插件：

> [@\[PAID\] Integrate Google Cloud Vistion API into upload process](https://meta.discourse.org/t/paid-integrate-google-cloud-vistion-api-into-upload-process/161746):
>
> A plugin that checks all images uploaded to Discourse via the Google Cloud Vision API and rejects if not appropriate according to set levels. Documentation: A Ruby Gem is provided by Google: [https://googleapis.dev/ruby/google-cloud-vision/latest/index.html](https://googleapis.dev/ruby/google-cloud-vision/latest/index.html)[https://googleapis.dev/ruby/google-cloud-vision/latest/Google/Cloud/Vision.html](https://googleapis.dev/ruby/google-cloud-vision/latest/Google/Cloud/Vision.html)[https://cloud.google.com/vision/docs/detecting-safe-search](https://cloud.google.com/vision/docs/detecting-safe-search) This plugin should hook into the main image upload process of Discourse for all images (posts, a…

它几乎可以投入生产了。

还有一个拉取请求需要与核心代码合并：

> <https://github.com/discourse/discourse/pull/10605>
>
> ~~I tried satisfying this condition forcefully which results in a console error.…~~ If the value is falsy i.e. an empty array/object, the control would go to the generic error condition in https://github.com/discourse/discourse/blob/f2842490d3ccaf9e29b0ffc43f193350334ead94/app/assets/javascripts/discourse/app/lib/uploads.js#L300
> 
> As an aside, would this condition ever be satisfied?
> 
> IMHO, the \`displayErrorForUpload\` method should always be called so that the correct reason for the error is displayed in the popup. The current code forces the popup to be displayed for the generic condition which is not very helpful for the user.
> 
> Here, an example where the method is called correctly(IMO) https://github.com/discourse/discourse/blob/f2842490d3ccaf9e29b0ffc43f193350334ead94/app/assets/javascripts/discourse/app/components/composer-editor.js#L772
> 
> I'll change the commit message if the changes are approved.

稍后更新。

---

_[View the full topic](https://meta.discourse.org/t/adsense-site-approval-policy-violation-what-did-you-do-to-get-it-approved/112678)._
