Functions renamed
This commit is contained in:
		
					parent
					
						
							
								e548d647aa
							
						
					
				
			
			
				commit
				
					
						5ac73a847d
					
				
			
		
					 3 changed files with 7 additions and 7 deletions
				
			
		|  | @ -1818,7 +1818,7 @@ class Item | |||
| 		} | ||||
| 
 | ||||
| 		// Remove all media attachments from the body and store them in the post-media table
 | ||||
| 		$item['raw-body'] = Post\Media::addAttachmentsFromBody($item['uri-id'], $item['raw-body']); | ||||
| 		$item['raw-body'] = Post\Media::insertFromBody($item['uri-id'], $item['raw-body']); | ||||
| 		$item['raw-body'] = self::setHashtags($item['raw-body']); | ||||
| 
 | ||||
| 		// Check for hashtags in the body and repair or add hashtag links
 | ||||
|  |  | |||
|  | @ -34,9 +34,9 @@ use Friendica\Util\Images; | |||
|  */ | ||||
| class Media | ||||
| { | ||||
|     const UNKNOWN = 0; | ||||
|     const IMAGE   = 1; | ||||
|     const VIDEO   = 2; | ||||
| 	const UNKNOWN = 0; | ||||
| 	const IMAGE   = 1; | ||||
| 	const VIDEO   = 2; | ||||
| 	const AUDIO   = 3; | ||||
| 	const TORRENT = 16; | ||||
| 
 | ||||
|  | @ -104,7 +104,7 @@ class Media | |||
| 	 * @param string $body | ||||
| 	 * @return string Body without media links | ||||
| 	 */ | ||||
| 	public static function addAttachmentsFromBody(int $uriid, string $body) | ||||
| 	public static function insertFromBody(int $uriid, string $body) | ||||
| 	{ | ||||
| 		// Simplify image codes
 | ||||
| 		$body = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '[img]$3[/img]', $body); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue