diff options
author | Mario <mario@mariovavti.com> | 2022-11-30 09:18:57 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-11-30 09:18:57 +0000 |
commit | 3ce1373ae0e5355b9d10eab5f5b8078245c4b8b6 (patch) | |
tree | bafa58c544681691d10e1878b9438d134bd4ee26 | |
parent | 4002531b9296f764c20da2f50ff1bb5feef6dccb (diff) | |
download | volse-hubzilla-3ce1373ae0e5355b9d10eab5f5b8078245c4b8b6.tar.gz volse-hubzilla-3ce1373ae0e5355b9d10eab5f5b8078245c4b8b6.tar.bz2 volse-hubzilla-3ce1373ae0e5355b9d10eab5f5b8078245c4b8b6.zip |
provide a pdl file for mod invite and set the profile
-rw-r--r-- | Zotlabs/Module/Invite.php | 13 | ||||
-rw-r--r-- | view/pdl/mod_invite.pdl | 10 |
2 files changed, 23 insertions, 0 deletions
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] |