Skip to content

Commit

Permalink
bug fix in tag cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
casco committed Aug 12, 2021
1 parent 50da4f6 commit dd4b9cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
@@ -1,8 +1,8 @@
api
filter: aCollectionOfArticles
^ aCollectionOfArticles
reject: [ :object |
select: [ :object |
| objectTags |
objectTags := block value: object.
(objectTags anySatisfy: [ :tag | hiddenTags includes: tag ])
or: [ (hiddenTags includes: '') & objectTags isEmpty ] ]
(objectTags anySatisfy: [ :tag | self visibleTags includes: tag ])
or: [ (self visibleTags includes: '') & objectTags isEmpty ] ]
@@ -0,0 +1,3 @@
accessing
visibleTags
^ tags copyWithoutAll: hiddenTags

0 comments on commit dd4b9cd

Please sign in to comment.