(no commit message)
[ikiwiki.git] / doc / bugs / Not_all_comments_are_listed_by___33__map_or___33__inline.mdwn
1 While working on our forum I was surprised to see that some of the comments were not appearing in the RSS feed created by `!inline pages="forum/* or comment(forum/*)" feedonly="yes" show="25"`.
2
3 > I'm seeing some comments in the rss feed. The feed is limited to the 25
4 > most recent items, you can increase that with feedshow. --[[Joey]]
5
6 >> Of course, but in the feed, some of the new comments don't show up.
7 >> Most does but not all. For example, none of the comments of this thread
8 >> appears in the RSS, even though they should according to the « 25 most
9 >> recent items » criteria:
10 >> <https://tails.boum.org/forum/Security_Updates:_apt-get_Sufficient__63__/>
11
12 Then I found out that a map directive such as `!map pages="forum/* or
13 comment(forum/*)"` was bringing a weird result too. The output is a map
14 with quite a few broken links.
15
16 > This is the same as if you tried to link to a comment page or other 
17 > internal page with a [[ikiwiki/WikiLink]] -- you'd get a broken link
18 > or a create link because these are not true wiki pages. --[[Joey]]
19
20 >> So I don't understand why 90 % of the comments are linked well and 10 %
21 >> are broken links. Why does this map behave differently for only a few comments?
22
23 Plus, some broken links in the map do match the comments missing on the RSS feed but some others do not.
24
25 Unfortunately, I couldn't find an obvious pattern for this failure.
26
27 We think it's a bug in ikiwiki. Our git repo is publicly available at
28 `git://git.immerda.ch/amnesia.git` (the ikiwiki source is in `/wiki/src`)
29 and the corresponding online version is available at
30 <https://tails.boum.org/forum/>. The buggy `!inline` is already included in
31 the original `forum.mdwn`. The buggy `!map` is not but the bug can be
32 reproduced by just including it in the source of the forum.