diff options
author | Friendika <info@friendika.com> | 2010-11-02 22:21:49 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-02 22:21:49 -0700 |
commit | 98a508532f0f3ea35748fa650aa3cad5e929e3de (patch) | |
tree | e65ec844ea7fcb83dfef7f9156ca971b7647c94c /mod | |
parent | 07b78e9d1cc3785f41a76c2806efb871978927a3 (diff) | |
download | volse-hubzilla-98a508532f0f3ea35748fa650aa3cad5e929e3de.tar.gz volse-hubzilla-98a508532f0f3ea35748fa650aa3cad5e929e3de.tar.bz2 volse-hubzilla-98a508532f0f3ea35748fa650aa3cad5e929e3de.zip |
fix like/dislike refresh on photos/display items
Diffstat (limited to 'mod')
-rw-r--r-- | mod/display.php | 10 | ||||
-rw-r--r-- | mod/home.php | 2 | ||||
-rw-r--r-- | mod/photos.php | 1 |
3 files changed, 12 insertions, 1 deletions
diff --git a/mod/display.php b/mod/display.php index 2e35cd6ac..b451d6930 100644 --- a/mod/display.php +++ b/mod/display.php @@ -3,6 +3,8 @@ function display_content(&$a) { + $o = '<div id="live-display"></div>' . "\r\n"; + require_once('mod/profile.php'); profile_init($a); @@ -100,6 +102,7 @@ function display_content(&$a) { ); + $cmnt_tpl = load_view_file('view/comment_item.tpl'); $like_tpl = load_view_file('view/like.tpl'); $tpl = load_view_file('view/wall_item.tpl'); @@ -112,6 +115,13 @@ function display_content(&$a) { if(count($r)) { + if((local_user()) && (local_user() == $a->profile['uid'])) { + q("UPDATE `item` SET `unseen` = 0 + WHERE `parent` = %d AND `unseen` = 1", + intval($r[0]['parent']) + ); + } + foreach($r as $item) { like_puller($a,$item,$alike,'like'); like_puller($a,$item,$dlike,'dislike'); diff --git a/mod/home.php b/mod/home.php index 9239f1d17..13b6d56c4 100644 --- a/mod/home.php +++ b/mod/home.php @@ -16,7 +16,7 @@ function home_content(&$a) { $o = ''; if(! (x($a->page,'footer'))) $a->page['footer'] = ''; - $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://friendika.com\" name=\"mistpark\" >friendika</a></div>"; + $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://friendika.com\" title=\"friendika\" >friendika</a></div>"; $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>'; if(file_exists('home.html')) $o .= file_get_contents('home.html'); diff --git a/mod/photos.php b/mod/photos.php index 63300ebee..8d2805fde 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -665,6 +665,7 @@ function photos_content(&$a) { require_once('security.php'); require_once('bbcode.php'); + $o = '<div id="live-display"></div>' . "\r\n"; // fetch image, item containing image, then comments $ph = q("SELECT * FROM `photo` WHERE `uid` = %d AND `resource-id` = '%s' |