feat: ??? add sorting by year how was that missing

This commit is contained in:
Xylight committed 2026-01-30 17:13:07 -08:00
1 parent c5e9722ddc
commit b6b5451d35
3 files changed
+4 -1

No files matched your search

+3
View File
@@ -106,6 +106,9 @@
<Option value="TopAll" icon={PlusCircle}>
{$t('filter.sort.top.time.all')}
</Option>
<Option value="TopYear" icon={Calendar}>
{$t('filter.sort.top.time.year')}
</Option>
<Option value="TopNineMonths" icon={Calendar}>
{$t('filter.sort.top.time.9months')}
</Option>
-1
View File
@@ -29,7 +29,6 @@ export function filterPost(
for (const filter of filters) {
try {
if (
filter.regex.test(post.post.url ?? '') ||
filter.regex.test(post.post.name) ||
filter.regex.test(post.post.body ?? '')
)