mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-07 10:22:48 +00:00
Order filters in export by title to match filters page
This commit is contained in:
parent
6d70292278
commit
c6d846cecd
|
@ -57,7 +57,7 @@ class Export
|
||||||
|
|
||||||
def to_filters_csv
|
def to_filters_csv
|
||||||
CSV.generate(headers: ['Title', 'Context', 'Keywords', 'Whole Word', 'Action', 'Expire after'], write_headers: true) do |csv|
|
CSV.generate(headers: ['Title', 'Context', 'Keywords', 'Whole Word', 'Action', 'Expire after'], write_headers: true) do |csv|
|
||||||
account.custom_filters.reorder(id: :desc).each do |filter|
|
account.custom_filters.reorder(:title).each do |filter|
|
||||||
csv << [filter.title, filter.context, filter.keywords.map(&:keyword), filter.keywords.map(&:whole_word), filter.action, filter.expires_at]
|
csv << [filter.title, filter.context, filter.keywords.map(&:keyword), filter.keywords.map(&:whole_word), filter.action, filter.expires_at]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user