Fix expiration date of filters being set to “Never” when editing them (#11204)
Fix expiration date of filters being set to “Never” when editing them (#11204)

When editing a custom filter, select the shortest preset duration that
still covers the remaining time of that filter.

Fixes #9506
Ryanaka/mastodon,yukimochi/mastodon,gol-cha/mastodon,theoria24/mastodon,imas/mastodon,pinfort/mastodon,kirakiratter/mastodon,Nyoho/mastodon,primenumber/mastodon,lindwurm/mastodon,koba-lab/mastodon,ikuradon/mastodon,masto-donte-com-br/mastodon,kazh98/social.arnip.org,Kirishima21/mastodon,5thfloor/ichiji-social,koba-lab/mastodon,tootcafe/mastodon,kirakiratter/mastodon,imas/mastodon,5thfloor/ichiji-social,masto-donte-com-br/mastodon,pinfort/mastodon,MitarashiDango/mastodon,Ryanaka/mastodon,Nyoho/mastodon,h3zjp/mastodon,MitarashiDango/mastodon,abcang/mastodon,yukimochi/mastodon,maa123/mastodon,Kirishima21/mastodon,danhunsaker/mastodon,musashino205/mastodon,yi0713/mastodon,dunn/mastodon,abcang/mastodon,danhunsaker/mastodon,h3zjp/mastodon,musashino205/mastodon,tootsuite/mastodon,MitarashiDango/mastodon,MitarashiDango/mastodon,rainyday/mastodon,dunn/mastodon,tri-star/mastodon,cobodo/mastodon,ikuradon/mastodon,Kirishima21/mastodon,5thfloor/ichiji-social,theoria24/mastodon,Nyoho/mastodon,im-in-space/mastodon,lindwurm/mastodon,gol-cha/mastodon,maa123/mastodon,tri-star/mastodon,d6rkaiz/mastodon,im-in-space/mastodon,kazh98/social.arnip.org,musashino205/mastodon,abcang/mastodon,ykzts/mastodon,masto-donte-com-br/mastodon,Ryanaka/mastodon,koba-lab/mastodon,lynlynlynx/mastodon,lindwurm/mastodon,lindwurm/mastodon,glitch-soc/mastodon,Kirishima21/mastodon,tootsuite/mastodon,cobodo/mastodon,musashino205/mastodon,masto-donte-com-br/mastodon,koba-lab/mastodon,tootsuite/mastodon,ykzts/mastodon,yi0713/mastodon,maa123/mastodon,abcang/mastodon,d6rkaiz/mastodon,tootcafe/mastodon,danhunsaker/mastodon,Nyoho/mastodon,yi0713/mastodon,theoria24/mastodon,d6rkaiz/mastodon,h3zjp/mastodon,h3zjp/mastodon,kirakiratter/mastodon,d6rkaiz/mastodon,tri-star/mastodon,sylph-sin-tyaku/mastodon,tootcafe/mastodon,yukimochi/mastodon,danhunsaker/mastodon,kirakiratter/mastodon,lynlynlynx/mastodon,pinfort/mastodon,imas/mastodon,lynlynlynx/mastodon,ykzts/mastodon,ikuradon/mastodon,theoria24/mastodon,gol-cha/mastodon,sylph-sin-tyaku/mastodon,sylph-sin-tyaku/mastodon,glitch-soc/mastodon,ikuradon/mastodon,imas/mastodon,im-in-space/mastodon,im-in-space/mastodon,5thfloor/ichiji-social,kazh98/social.arnip.org,pinfort/mastodon,cobodo/mastodon,kazh98/social.arnip.org,tootsuite/mastodon,dunn/mastodon,glitch-soc/mastodon,tootcafe/mastodon,rainyday/mastodon,yukimochi/mastodon,lynlynlynx/mastodon,primenumber/mastodon,yi0713/mastodon,dunn/mastodon,cobodo/mastodon,primenumber/mastodon,tri-star/mastodon,primenumber/mastodon,glitch-soc/mastodon,rainyday/mastodon,rainyday/mastodon,Ryanaka/mastodon,ykzts/mastodon,sylph-sin-tyaku/mastodon,maa123/mastodon,gol-cha/mastodon