Merge branch 'dev' into 'dev'
assorted minor fixes from downstream See merge request hubzilla/core!1540
This commit is contained in:
		| @@ -412,6 +412,12 @@ class Notifier { | |||||||
| 				$private = false; | 				$private = false; | ||||||
| 				$recipients = collect_recipients($parent_item,$private); | 				$recipients = collect_recipients($parent_item,$private); | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 				if ($top_level_post) { | ||||||
|  | 					// remove clones who will receive the post via sync | ||||||
|  | 					$recipients = array_diff($recipients, [ $target_item['owner_xchan'] ]); | ||||||
|  | 				}  | ||||||
|  |  | ||||||
| 				// FIXME add any additional recipients such as mentions, etc. | 				// FIXME add any additional recipients such as mentions, etc. | ||||||
|  |  | ||||||
| 				// don't send deletions onward for other people's stuff | 				// don't send deletions onward for other people's stuff | ||||||
|   | |||||||
| @@ -12,8 +12,16 @@ class Api_router { | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	static function find($path) { | 	static function find($path) { | ||||||
| 		if(array_key_exists($path,self::$routes)) | 		if (array_key_exists($path,self::$routes)) { | ||||||
| 			return self::$routes[$path]; | 			return self::$routes[$path]; | ||||||
|  | 		} | ||||||
|  |  | ||||||
|  | 		$with_params = dirname($path) . '/[id]'; | ||||||
|  |  | ||||||
|  | 		if (array_key_exists($with_params,self::$routes)) { | ||||||
|  | 			return self::$routes[$with_params]; | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		return null; | 		return null; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -327,6 +327,7 @@ class Apps { | |||||||
| 			'Report Bug' => t('Report Bug'), | 			'Report Bug' => t('Report Bug'), | ||||||
| 			'Bookmarks' => t('Bookmarks'), | 			'Bookmarks' => t('Bookmarks'), | ||||||
| 			'Chatrooms' => t('Chatrooms'), | 			'Chatrooms' => t('Chatrooms'), | ||||||
|  | 			'Content Filter' => t('Content Filter'), | ||||||
| 			'Connections' => t('Connections'), | 			'Connections' => t('Connections'), | ||||||
| 			'Remote Diagnostics' => t('Remote Diagnostics'), | 			'Remote Diagnostics' => t('Remote Diagnostics'), | ||||||
| 			'Suggest Channels' => t('Suggest Channels'), | 			'Suggest Channels' => t('Suggest Channels'), | ||||||
|   | |||||||
| @@ -456,7 +456,7 @@ class Oep extends \Zotlabs\Web\Controller { | |||||||
| 	 | 	 | ||||||
| 		if(preg_match('|//(.*?)/(.*?)/(.*?)/album/|',$url,$matches)) { | 		if(preg_match('|//(.*?)/(.*?)/(.*?)/album/|',$url,$matches)) { | ||||||
| 			$chn = $matches[3]; | 			$chn = $matches[3]; | ||||||
| 			$res = hex2bin(basename($url)); | 			$res = basename($url); | ||||||
| 		} | 		} | ||||||
| 	 | 	 | ||||||
| 		if(! ($chn && $res)) | 		if(! ($chn && $res)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user