1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-18 16:48:37 +09:00
YuruToot/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