1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-25 15:46:24 +09:00
mastodon/spec/fabricators/notification_fabricator.rb
alpaca-tc 05b72368ed Fixes slow query in notifications api (#2851)
* Add inclusion validation for activity_type

* When excluding all types with `WHERE NOT IN`, the query search all rows.
2017-05-06 21:55:40 +02:00

5 lines
79 B
Ruby

Fabricator(:notification) do
activity_id 1
activity_type 'Favourite'
end