File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22* New BoleanFilter method ` optionsAsTagList() `
33* Lower staleness duration for server side filters to four hours
44* Don't alias ` Logger ` to ` ComponentLogger ` when exporting
5+ * (Demo App) Use new ` MinTootsSlider ` component to control the number of trending objects in the list
56
67### v0.56.1 - v0.56.3
78* Use ` Logger ` s instead of ` logPrefix ` args everywhere
Original file line number Diff line number Diff line change @@ -155,11 +155,11 @@ export default class BooleanFilter extends TootFilter {
155155 return Object . keys ( this . optionInfo ) . length ;
156156 }
157157
158+ // Convert the optionInfo to a TagList with the counts as numToots
158159 optionsAsTagList ( ) : TagList {
159- // Convert the optionInfo to a TagList with the counts as numToots
160- const tags : TagWithUsageCounts [ ] = Object . entries ( this . optionInfo ) . map ( ( [ name , count ] ) => ( {
160+ const tags : TagWithUsageCounts [ ] = Object . entries ( this . optionInfo ) . map ( ( [ name , numToots ] ) => ( {
161161 name,
162- numToots : count ,
162+ numToots,
163163 regex : wordRegex ( name ) , // Create a regex for the tag name
164164 url : MastoApi . instance . tagUrl ( name ) ,
165165 } ) ) ;
You can’t perform that action at this time.
0 commit comments