From aee1165eb1390dafc7e3cedd8683b994ba629551 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 15 May 2016 23:18:18 +0200 Subject: [PATCH] Pumpio: Posted videos look better now --- pumpio/pumpio.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index 1702971c..a11e50bd 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -449,15 +449,6 @@ function pumpio_send(&$a,&$b) { $content = bbcode($b['body'], false, false, 4); - // Enhance the way, videos are displayed - $content = preg_replace('/(.*?)<\/a>/ism',"\n[url]$1[/url]\n",$content); - $content = preg_replace('/(.*?)<\/a>/ism',"\n$1\n",$content); - $content = preg_replace('/(.*?)<\/a>/ism',"\n$1\n",$content); - $content = preg_replace('/(.*?)<\/a>/ism',"\n$1\n",$content); - - $URLSearchString = "^\[\]"; - $content = preg_replace_callback("/\[url\]([$URLSearchString]*)\[\/url\]/ism",'tryoembed',$content); - $params = array(); $params["verb"] = "post"; @@ -1261,6 +1252,7 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcomplet $postarray['plink'] = $post->object->url; $postarray['app'] = $post->generator->displayName; $postarray['body'] = html2bbcode($post->object->content); + $postarray['object'] = json_encode($post); if ($post->object->fullImage->url != "") $postarray["body"] = "[url=".$post->object->fullImage->url."][img]".$post->object->image->url."[/img][/url]\n".$postarray["body"];