optimization for with=foo
* tekuti/page.scm (page-feed-atom): Reduce "with=unknown" to nothing.
This commit is contained in:
parent
cee672f117
commit
62a351d8d5
1 changed files with 5 additions and 3 deletions
|
@ -347,9 +347,11 @@
|
||||||
(if (pair? with)
|
(if (pair? with)
|
||||||
(fold (lambda (tag cont)
|
(fold (lambda (tag cont)
|
||||||
(let ((posts (hash-ref tags tag '())))
|
(let ((posts (hash-ref tags tag '())))
|
||||||
(lambda (post)
|
(if (pair? posts)
|
||||||
(or (member (post-key post) posts)
|
(lambda (post)
|
||||||
(cont post)))))
|
(or (member (post-key post) posts)
|
||||||
|
(cont post)))
|
||||||
|
cont)))
|
||||||
(lambda (post) #f)
|
(lambda (post) #f)
|
||||||
with)
|
with)
|
||||||
(lambda (post) #t)))
|
(lambda (post) #t)))
|
||||||
|
|
Loading…
Reference in a new issue