aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-07 22:44:22 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-07 22:44:22 -0700
commit4b4d680dc4e40384e9cc71591609a1f788f31c66 (patch)
tree97a46c9aba93073f8dd734a436c4a0271d1d62b2 /mod
parentac4800918012282d2e8daa40b3486a661ce5f279 (diff)
downloadvolse-hubzilla-4b4d680dc4e40384e9cc71591609a1f788f31c66.tar.gz
volse-hubzilla-4b4d680dc4e40384e9cc71591609a1f788f31c66.tar.bz2
volse-hubzilla-4b4d680dc4e40384e9cc71591609a1f788f31c66.zip
sort out anon profile display and write permissions
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php3
-rw-r--r--mod/profile.php15
2 files changed, 11 insertions, 7 deletions
diff --git a/mod/item.php b/mod/item.php
index 2b03ecaa2..23917161b 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -58,8 +58,9 @@ function item_post(&$a) {
intval($post_id));
}
-// require('notifier.php');
+ proc_close(proc_open("php include/notifier.php $post_id > notify.log &",
+ array(),$foo));
// notifier($a,$post_id,$parent);
diff --git a/mod/profile.php b/mod/profile.php
index 957d67be3..1caa3478f 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -149,12 +149,15 @@ function profile_content(&$a) {
if(count($r)) {
foreach($r as $rr) {
- $comment = replace_macros($template,array(
- '$id' => $rr['item_id'],
- '$profile_uid' => $a->profile['profile_uid']
- ));
-
-
+ if(can_write_wall($a,$a->profile['profile_uid'])) {
+ $comment = replace_macros($template,array(
+ '$id' => $rr['item_id'],
+ '$profile_uid' => $a->profile['profile_uid']
+ ));
+ }
+ else {
+ $comment = '';
+ }
$o .= item_display($a,$rr,$tpl,$comment);
}