From 3ce1373ae0e5355b9d10eab5f5b8078245c4b8b6 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 30 Nov 2022 09:18:57 +0000 Subject: provide a pdl file for mod invite and set the profile --- Zotlabs/Module/Invite.php | 13 +++++++++++++ view/pdl/mod_invite.pdl | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 view/pdl/mod_invite.pdl diff --git a/Zotlabs/Module/Invite.php b/Zotlabs/Module/Invite.php index 2a126ac27..bb552e4c7 100644 --- a/Zotlabs/Module/Invite.php +++ b/Zotlabs/Module/Invite.php @@ -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 diff --git a/view/pdl/mod_invite.pdl b/view/pdl/mod_invite.pdl new file mode 100644 index 000000000..47af1ed38 --- /dev/null +++ b/view/pdl/mod_invite.pdl @@ -0,0 +1,10 @@ +[region=aside] +[widget=profile][/widget] +[/region] +[region=content] +$content +[/region] +[region=right_aside] +[widget=notifications][/widget] +[widget=newmember][/widget] +[/region] -- cgit v1.2.3