1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-28 06:48:45 +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