Hide last authors
Simon Urli 1.1 1 {{include reference='ActivityPub.ListMessages'/}}
2
3 {{velocity}}
4 {{html wiki="true"}}
5 #set ($likedDoc = $xwiki.getDocument($request.get('reference')))
6 #set ($apPage = $services.activitypub.resolveDocument($request.get('reference')))
7 #set ($likesRef = $apPage.likes)
8
9 #if ("$!likesRef" == "")
10 $services.localization.render('activitypub.like.likers.nolikes', [$likedDoc.plainTitle])
11 #else
12 #set ($likes = $services.activitypub.resolve($likesRef))
13 #if ($likes.totalItems == 0)
14 $services.localization.render('activitypub.like.likers.nolikes', [$likedDoc.plainTitle])
15 #else
16 <p>$escapetool.xml($services.localization.render('activitypub.like.likers.subtitle', [$likes.totalItems, $likedDoc.plainTitle]))
17 <ul>
18 #foreach ($likeRef in $likes)
19 #set ($like = $services.activitypub.resolve($likeRef))
20 #set ($actor = $services.activitypub.resolve($like.actor))
21 <li>#displayActor($actor)</li>
22 #end
23 </ul>
24 </p>
25 #end
26 #end
27 {{/html}}
28 {{/velocity}}

Need help?

If you need help with XWiki you can contact:

ngi-activitypub
XWiki 12.10.3
contact@xwiki.com