# Random double posting with Perspective plugin

**URL:** https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950
**Category:** Support
**Created:** [January 7, 2019, 11:29pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950 "2019-01-07T23:29:15Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Alexander\_Wright](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander_wright/32/119518_2.png) [@Alexander\_Wright](https://meta.discourse.org/u/Alexander_Wright)
#### Post date: [January 7, 2019, 11:29pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/1 "2019-01-07T23:29:15Z")

</div>

I’m getting reports on my forum of double posts appearing after users pressing the Create Post button (Also create topic).

rate limit create post and rate limit create topic are both set to 90 seconds.

I can’t see anything relevant in the logs.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 7, 2019, 11:32pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/2 "2019-01-07T23:32:13Z")

</div>

Need repro steps on [try.discourse.org](http://try.discourse.org) to work with.

@jomaxro can you try some double posting tests to make sure we have not regressed here? Use the exact same post text and see what happens. Try across two different topics as well as the same topic.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 7, 2019, 11:36pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/3 "2019-01-07T23:36:55Z")

</div>

I hit the “text too similar…” error earlier today testing something else. Will do some further testing.

Edit: removed from my list per Sam below.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 8, 2019, 12:17am UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/5 "2019-01-08T00:17:29Z")

</div>

This is already assigned to @tgxworld per: [Body is too similar to what you previously posted - even when previous post didn't go through - #2 by sam](https://meta.discourse.org/t/body-is-too-similar-to-what-you-previously-posted-even-when-previous-post-didnt-go-through/105436/2)

---

<div class="post-metadata">

### Author: ![Wedgebert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wedgebert/32/131690_2.png) [@Wedgebert](https://meta.discourse.org/u/Wedgebert)
#### Post date: [January 8, 2019, 3:25am UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/6 "2019-01-08T03:25:38Z")

</div>

We had the same thing happening in our forum. Eventually narrowed it down to the Google Perspective plugin. Disabled it and the issue stopped. Re-enabled and it immediately started back up again.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [January 8, 2019, 7:02am UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/7 "2019-01-08T07:02:39Z")

</div>

@Alexander_Wright Do you happen to be using the Google Perspective plugin as well?

---

<div class="post-metadata">

### Author: ![Alexander\_Wright](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander_wright/32/119518_2.png) [@Alexander\_Wright](https://meta.discourse.org/u/Alexander_Wright)
#### Post date: [January 9, 2019, 5:51pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/8 "2019-01-09T17:51:48Z")

</div>

I am indeed using Perspective.

The double postings also appear in direct messages, with nothing in the error log.

Would there be logs elsewhere?

---

<div class="post-metadata">

### Author: ![Alexander\_Wright](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander_wright/32/119518_2.png) [@Alexander\_Wright](https://meta.discourse.org/u/Alexander_Wright)
#### Post date: [January 9, 2019, 5:59pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/9 "2019-01-09T17:59:17Z")

</div>

Further info:

Perspective plugin is enabled, but not for direct messages, and I’ve had duplicate direct messages reported.

Edit: I’ve disabled it entirely, we’ll see what happens!

---

<div class="post-metadata">

### Author: ![Wedgebert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wedgebert/32/131690_2.png) [@Wedgebert](https://meta.discourse.org/u/Wedgebert)
#### Post date: [January 9, 2019, 10:56pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/10 "2019-01-09T22:56:17Z")

</div>

I didn’t see any logs, and I don’t know if we had any duplicate DMs while it was enabled. Definitely no complaints about it since though

---

<div class="post-metadata">

### Author: ![Alexander\_Wright](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander_wright/32/119518_2.png) [@Alexander\_Wright](https://meta.discourse.org/u/Alexander_Wright)
#### Post date: [January 10, 2019, 7:44am UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/11 "2019-01-10T07:44:49Z")

</div>

I’ve since had a couple of examples after disabling the plugin. Not removed it entirely, however. Is disabling sufficient?

---

<div class="post-metadata">

### Author: ![Wedgebert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wedgebert/32/131690_2.png) [@Wedgebert](https://meta.discourse.org/u/Wedgebert)
#### Post date: [January 11, 2019, 2:42am UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/12 "2019-01-11T02:42:23Z")

</div>

All I did was disable, it’s possible you have another add-on causing problems.

I found it by backing up my forums and uninstalling all my addons until I found the culprit. Then reinstalling the others to make sure the problem stayed gone.

---

<div class="post-metadata">

### Author: ![Alexander\_Wright](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander_wright/32/119518_2.png) [@Alexander\_Wright](https://meta.discourse.org/u/Alexander_Wright)
#### Post date: [February 28, 2019, 9:50am UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/13 "2019-02-28T09:50:48Z")

</div>

> [@Alexander\_Wright](#):
>
> Perspective plugin

Just to confirm, this plugin is definitely linked to this continuing problem. Having removed it for a while, the problem went away. When replaced, it came back again.

☹

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 1, 2019, 3:27am UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/14 "2019-03-01T03:27:09Z")

</div>

@fantasticfears is any ideas why perspective plugin could cause double postings?

---

<div class="post-metadata">

### Author: ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)
#### Post date: [March 1, 2019, 6:40pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/15 "2019-03-01T18:40:29Z")

</div>

The plugin works by hacking `save` in `controller:composer`. And it retains a state check in the controller. Some hypothesis. The state gets nulled in the ajax process so the controller saves the post twice. Or the worst case, the network fails and the user submitted twice which those requests reached the server. It looks likely the latter case if double posts weren’t observed by other users.

---

<div class="post-metadata">

### Author: ![Alexander\_Wright](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander_wright/32/119518_2.png) [@Alexander\_Wright](https://meta.discourse.org/u/Alexander_Wright)
#### Post date: [March 10, 2019, 6:00pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/16 "2019-03-10T18:00:21Z")

</div>

On my instance, a number of users have experienced the bug, using a variety of browsers.

Edit: Also experience on a variety of connections, from mobile data to Mac on a 68MB fibre (FTTC) connection.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [March 10, 2019, 7:49pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/17 "2019-03-10T19:49:04Z")

</div>

I have double posted very rarely. My best guess is a buggy wifi connection was involved. What has happened is

- I compose a reply and submit
- the submit hangs and the topic isn’t updated to display my post
- thinking the submit failed, I submit again
- the topic updates and displays the post twice

My guess is that the submit succeeds as far as getting to the server, but the update response is what hung making it look like it was the submit that hung.

What I have learned to do when I experience slow wifi times, with more complex posts that I would rather not put together again, is to select all copy them, then refresh the page to see if the submit worked. If it did, fine, if not I simply paste into a new reply and submit again.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 11, 2019, 7:38am UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/18 "2019-03-11T07:38:51Z")

</div>

As stated above, the problem is limited to the Perspectives plugin at the moment to the best of our knowledge. I’ll edit the title to make this more clear.

---

<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 8, 2020, 4:12pm UTC](https://meta.discourse.org/t/random-double-posting-with-perspective-plugin/105950/19 "2020-08-08T16:12:46Z")

</div>

Has this been confirmed, addressed, or fixed by the developer of the plugin meanwhile?

We’re just migrating to Discourse and have used Perspective on our old site to flag posts, too. But we used a backend process and did not do it on form-submit, as this also slowed down the posting of posts due to the API call to Google. We did before, but sometimes the API takes quite long and users then clicked multiple times on the submit button, leading to similar problems as described here.
