diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-10 21:22:36 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-10 21:22:36 -0700 |
commit | 9662c44a17280781f2e0762c0bf0c53bec1ed5f2 (patch) | |
tree | a6383b190b26b08f530d3f602d691a6c3bea2821 /mod | |
parent | 06bdf8a4cfe9087573494c0b782a33d1e28ac043 (diff) | |
download | volse-hubzilla-9662c44a17280781f2e0762c0bf0c53bec1ed5f2.tar.gz volse-hubzilla-9662c44a17280781f2e0762c0bf0c53bec1ed5f2.tar.bz2 volse-hubzilla-9662c44a17280781f2e0762c0bf0c53bec1ed5f2.zip |
even more fixes
Diffstat (limited to 'mod')
-rw-r--r-- | mod/dfrn_poll.php | 2 | ||||
-rw-r--r-- | mod/item.php | 4 | ||||
-rw-r--r-- | mod/network.php | 3 | ||||
-rw-r--r-- | mod/profile.php | 3 |
4 files changed, 9 insertions, 3 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index 409ffce56..5e6b10bea 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -15,7 +15,7 @@ function dfrn_poll_init(&$a) { if(x($_GET,'last_update')) $last_update = $a->config['dfrn_poll_last_update'] = $_GET['last_update']; - if(($dfrn_id == '') && ($a->argc > 1)) { + if(($dfrn_id == '') && (! x($_POST,'dfrn_id')) && ($a->argc > 1)) { $o = get_feed_for($a,'*', $a->argv[1],$last_update); echo $o; killme(); diff --git a/mod/item.php b/mod/item.php index acb97a062..b718c68a6 100644 --- a/mod/item.php +++ b/mod/item.php @@ -89,7 +89,7 @@ function item_post(&$a) { if(count($r)) $contact_record = $r[0]; - $post_type == notags(trim($_POST['type'])); + $post_type = notags(trim($_POST['type'])); if($post_type == 'net-comment') { if($parent_item !== null) { @@ -170,7 +170,7 @@ function item_post(&$a) { ); // photo comments turn the corresponding item visible to the profile wall if(! $parent_item['visible']) { - $r = q("UPDATE `item` SET `visible = 1 WHERE `id` = %d LIMIT 1", + $r = q("UPDATE `item` SET `visible` = 1 WHERE `id` = %d LIMIT 1", intval($parent_item['id']) ); } diff --git a/mod/network.php b/mod/network.php index c5961dfad..17a670b93 100644 --- a/mod/network.php +++ b/mod/network.php @@ -172,6 +172,9 @@ function network_content(&$a, $update = false) { '$id' => $item['item_id'], '$parent' => $item['parent'], '$profile_uid' => $_SESSION['uid'], + '$mylink' => $a->contact['url'], + '$mytitle' => t('Me'), + '$myphoto' => $a->contact['thumb'], '$ww' => $commentww )); } diff --git a/mod/profile.php b/mod/profile.php index 0cc236f95..5e1f5dfdc 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -238,6 +238,9 @@ function profile_content(&$a, $update = false) { '$id' => $item['item_id'], '$parent' => $item['parent'], '$profile_uid' => $a->profile['uid'], + '$mylink' => $a->contact['url'], + '$mytitle' => t('Me'), + '$myphoto' => $a->contact['thumb'], '$ww' => '' )); } |