Skip to content
  • Lex Alexander's avatar
    b8bae966
    Retoot count increases without reason (#5363) · b8bae966
    Lex Alexander a rédigé
    * 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.
    b8bae966
    Retoot count increases without reason (#5363)
    Lex Alexander a rédigé
    * 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.
Chargement en cours