anonymous comments are not implemented for photos.
This commit is contained in:
		| @@ -1036,7 +1036,7 @@ class Photos extends \Zotlabs\Web\Controller { | |||||||
| 	 | 	 | ||||||
| 				$likebuttons = ''; | 				$likebuttons = ''; | ||||||
| 	 | 	 | ||||||
| 				if($can_post || $can_comment) { | 				if($observer && ($can_post || $can_comment)) { | ||||||
| 					$likebuttons = [ | 					$likebuttons = [ | ||||||
| 						'id'       => $link_item['id'], | 						'id'       => $link_item['id'], | ||||||
| 						'likethis' => t("I like this \x28toggle\x29"), | 						'likethis' => t("I like this \x28toggle\x29"), | ||||||
| @@ -1048,7 +1048,7 @@ class Photos extends \Zotlabs\Web\Controller { | |||||||
| 	 | 	 | ||||||
| 				$comments = ''; | 				$comments = ''; | ||||||
| 				if(! count($r)) { | 				if(! count($r)) { | ||||||
| 					if($can_post || $can_comment) { | 					if($observer && ($can_post || $can_comment)) { | ||||||
| 						$commentbox = replace_macros($cmnt_tpl,array( | 						$commentbox = replace_macros($cmnt_tpl,array( | ||||||
| 							'$return_path' => '',  | 							'$return_path' => '',  | ||||||
| 							'$mode' => 'photos', | 							'$mode' => 'photos', | ||||||
| @@ -1167,7 +1167,7 @@ class Photos extends \Zotlabs\Web\Controller { | |||||||
| 	 | 	 | ||||||
| 					} | 					} | ||||||
| 				 | 				 | ||||||
| 					if($can_post || $can_comment) { | 					if($observer && ($can_post || $can_comment)) { | ||||||
| 						$commentbox = replace_macros($cmnt_tpl,array( | 						$commentbox = replace_macros($cmnt_tpl,array( | ||||||
| 							'$return_path' => '', | 							'$return_path' => '', | ||||||
| 							'$jsreload' => $return_url, | 							'$jsreload' => $return_url, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user