1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/spec/models/concerns
Claire 741d0952b1
Improve account counters handling (#15913)
* Improve account counters handling

* Use ActiveRecord::Base::sanitize_sql to pass values instead of interpolating them

Keep using string interpolation for `key` as it is safe and using
“ActiveRecord::Base::sanitize_sql_hash_for_assignment” would require stitching
bits of SQL in a way that is not more easily checked for safety.

* Add migration hook to catch PostgreSQL versions earlier than 9.5
2021-03-19 13:14:57 +01:00
..
account_counters_spec.rb Improve account counters handling (#15913) 2021-03-19 13:14:57 +01:00
account_finder_concern_spec.rb
account_interactions_spec.rb Add follower synchronization mechanism (#14510) 2020-10-21 18:04:09 +02:00
remotable_spec.rb Fix remote files not using Content-Type header, streaming (#14184) 2020-06-30 23:58:02 +02:00
status_threading_concern_spec.rb