provide a pdl file for mod invite and set the profile

This commit is contained in:
Mario
2022-11-30 09:18:57 +00:00
parent 4002531b92
commit 3ce1373ae0
2 changed files with 23 additions and 0 deletions

View File

@@ -43,6 +43,19 @@ class Invite extends Controller {
const MYP = 'ZAI';
const VERSION = '2.0.0';
function init() {
if (!local_channel()) {
return;
}
$channel = App::get_channel();
if ($channel) {
profile_load($channel['channel_address']);
}
}
function post() {
// zai02

10
view/pdl/mod_invite.pdl Normal file
View File

@@ -0,0 +1,10 @@
[region=aside]
[widget=profile][/widget]
[/region]
[region=content]
$content
[/region]
[region=right_aside]
[widget=notifications][/widget]
[widget=newmember][/widget]
[/region]