Show last authors
1 {{include reference="ActivityPub.UserDashboard"/}}
2
3 {{velocity}}
4 #set($availableActors = [])
5 #if (!$isGuest)
6 #set($actor = $services.activitypub.getActor(""))
7 #set($discard = $availableActors.add({'label': 'Current User', 'actor': $actor}))
8 #set($wikiActor = $services.activitypub.getCurrentWikiActor())
9 #if ($services.activitypub.currentUserCanActFor($wikiActor))
10 #set($discard = $availableActors.add({'label': 'Current Wiki', 'actor': $wikiActor}))
11 #end
12 #else
13 #set($actor = $services.activitypub.getCurrentWikiActor())
14 #end
15 #if ("$!request.actor" != "")
16 #set($actor = $services.activitypub.getActor($request.actor))
17 #end
18 #if ($availableActors.size() > 1)
19 {{html}}
20 <form class="xformInline">
21 <label for="actor_select">$services.localization.render('activitypub.dashboard.selectActor.label')</label>
22 <select name="actor" id="actor_select">
23 #foreach($availableActor in $availableActors)
24 <option value="$availableActor.actor.id" #if ($availableActor.actor.equals($actor))selected="selected"#end>$availableActor.label</option>
25 #end
26 </select>
27 <span class="buttonwrapper">
28 <input type="submit" class="button" name="changeactor" value="Switch actor" />
29 </span>
30 </form>
31 {{/html}}
32 #end
33
34 #activitypubDashboard($actor)
35 {{/velocity}}

Need help?

If you need help with XWiki you can contact:

ngi-activitypub
XWiki 12.10.3
contact@xwiki.com