# Perspective Plugin: Issues with perspective scores

**URL:** https://meta.discourse.org/t/perspective-plugin-issues-with-perspective-scores/163627
**Category:** Support
**Tags:** perspective-api
**Created:** [August 18, 2020, 5:31pm UTC](https://meta.discourse.org/t/perspective-plugin-issues-with-perspective-scores/163627 "2020-08-18T17:31:42Z")
**Posts on this page:** 3
**Page:** 1

<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: [August 18, 2020, 5:31pm UTC](https://meta.discourse.org/t/perspective-plugin-issues-with-perspective-scores/163627/1 "2020-08-18T17:31:42Z")

</div>

Just installed the plugin.

Don’t see any double posts issues.

And it notifies me when I want to post something bad. Also the post is flagged for moderation review.

However, some issues so far.

a) The plugin only works when I don’t restrict the api key to certain HTTP referrer in the Google developer console. Otherwise an empty response is returned by Google.

b) The plugin does not create any entries in post\_custom\_fields in the data base with the scores.

When I run…

SELECT \* FROM post\_custom\_fields  
ORDER BY created\_at DESC  
LIMIT 100

I don’t see any new entries with perspective scores.

Sidekiq is running and I see Jobs::InspectToxicPost.

Any suggestions why is that?

---

<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: [August 18, 2020, 6:30pm UTC](https://meta.discourse.org/t/perspective-plugin-issues-with-perspective-scores/163627/2 "2020-08-18T18:30:12Z")

</div>

Regarding b)

Is that maybe a misunderstanding, because in the setting it reads:

> Query the toxicity of existing posts and record the results in post custom fields; This mode disables live checking for posts.

Does this mean I can only do either live checking or backfilling? Looks like.

That’s too bad because we wanted to use the scores to check if a topic/posts on the page is too toxic to show banner ads.

Why is there not an option to have live checking AND immediately saving the results (at least if they break the thresholds) to the database if a user chooses to continue anyways?

That’s how we did it on our old website and as Google Perspective is a service by Google it works very well with Adsense (to avoid getting flagged for disallowed content on the page).

---

<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: [August 18, 2020, 7:27pm UTC](https://meta.discourse.org/t/perspective-plugin-issues-with-perspective-scores/163627/3 "2020-08-18T19:27:54Z")

</div>

`deprecation notice: PostAction.act is deprecated. Use `PostActionCreator`instead. At /var/www/discourse/plugins/discourse-perspective-api/lib/discourse_perspective.rb:73:in`flag\_on\_scores`
