]> cat aescling's git repositories - mastodon.git/commit
Retoot count increases without reason (#5363)
authorLex Alexander <l.alexander10@gmail.com>
Fri, 13 Oct 2017 00:52:09 +0000 (14:52 -1000)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 13 Oct 2017 00:52:09 +0000 (02:52 +0200)
commitb8bae9664711f99bfb438687ff3b4b396db69924
tree50a7685906897ce677dbf3e8cb14fd16e23ae445
parentd37305c628c37aa16c1356c12aecd8de2105b80f
Retoot count increases without reason (#5363)

* Retoot count increases without reason

-The store_uri method for Statuses was being called on after_create and causing reblogs to be incremented twice.
-This calls it when the transaction is finished by using after_create_commit.
-Fixes #4916.

* Added test case for after_create_commit callback for checking reblog count.

* Rewrote test to keep original, but added one for only the after_create_commit callback.
app/models/status.rb
spec/services/reblog_service_spec.rb