diff options
author | friendica <info@friendica.com> | 2015-01-28 20:56:04 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-28 20:56:04 -0800 |
commit | a4960360669daa0a0c842427185ce1ada3b4ab97 (patch) | |
tree | 53feb1009266a77ee5338cc49919e45cca4b5ca6 /mod/message.php | |
parent | 54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff) | |
download | volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2 volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip |
local_user => local_channel
Diffstat (limited to 'mod/message.php')
-rw-r--r-- | mod/message.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/message.php b/mod/message.php index 7f3b6180a..4a1ff26d1 100644 --- a/mod/message.php +++ b/mod/message.php @@ -12,7 +12,7 @@ function message_content(&$a) { $o = ''; nav_set_selected('messages'); - if(! local_user()) { + if(! local_channel()) { notice( t('Permission denied.') . EOL); return login(); } @@ -20,7 +20,7 @@ function message_content(&$a) { $channel = $a->get_channel(); head_set_icon($channel['xchan_photo_s']); - $cipher = get_pconfig(local_user(),'system','default_cipher'); + $cipher = get_pconfig(local_channel(),'system','default_cipher'); if(! $cipher) $cipher = 'aes256'; @@ -36,7 +36,7 @@ function message_content(&$a) { if(! intval(argv(2))) return; $cmd = argv(1); - $r = private_messages_drop(local_user(), argv(2), true); + $r = private_messages_drop(local_channel(), argv(2), true); if($r) info( t('Conversation removed.') . EOL ); goaway($a->get_baseurl(true) . '/message' ); @@ -50,7 +50,7 @@ function message_content(&$a) { // private_messages_list() can do other more complicated stuff, for now keep it simple - $r = private_messages_list(local_user(), '', $a->pager['start'], $a->pager['itemspage']); + $r = private_messages_list(local_channel(), '', $a->pager['start'], $a->pager['itemspage']); if(! $r) { info( t('No messages.') . EOL); |