audio/video bb tags showing up on Diaspora

This commit is contained in:
friendica 2011-12-20 17:01:41 -08:00
parent c0c4c46874
commit 7fbfbdae07
4 changed files with 8 additions and 5 deletions

View file

@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php'); require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1200' ); define ( 'FRIENDICA_VERSION', '2.3.1201' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1112 ); define ( 'DB_UPDATE_VERSION', 1112 );

View file

@ -173,9 +173,9 @@ function bb2diaspora($Text,$preserve_nl = false) {
// html5 video and audio // html5 video and audio
// $Text = preg_replace("/\[video\](.*?)\[\/video\]/", '<video src="$1" controls="controls" width="425" height="350"><a href="$1">$1</a></video>', $Text); $Text = preg_replace("/\[video\](.*?)\[\/video\]/", '$1', $Text);
// $Text = preg_replace("/\[audio\](.*?)\[\/audio\]/", '<audio src="$1" controls="controls"><a href="$1">$1</a></audio>', $Text); $Text = preg_replace("/\[audio\](.*?)\[\/audio\]/", '$1', $Text);
// $Text = preg_replace("/\[iframe\](.*?)\[\/iframe\]/", '<iframe src="$1" width="425" height="350"><a href="$1">$1</a></iframe>', $Text); // $Text = preg_replace("/\[iframe\](.*?)\[\/iframe\]/", '<iframe src="$1" width="425" height="350"><a href="$1">$1</a></iframe>', $Text);

View file

@ -193,7 +193,8 @@ ACL.prototype.update_view = function(){
bthide.addClass("selected"); bthide.addClass("selected");
uclass="grouphide"; uclass="grouphide";
} }
$(that.group_uids[id]).each(function(i,v){ $(that.group_uids[id]).each(function(i,v){
$("#c"+v).removeClass("groupshow grouphide").addClass(uclass); $("#c"+v).removeClass("groupshow grouphide").addClass(uclass);
}); });
@ -208,6 +209,8 @@ ACL.prototype.update_view = function(){
btshow.removeClass("selected"); btshow.removeClass("selected");
bthide.addClass("selected"); bthide.addClass("selected");
} }
default:
break;
} }
}); });

View file

@ -60,8 +60,8 @@ function acl_init(&$a){
intval($count) intval($count)
); );
foreach($r as $g){ foreach($r as $g){
// logger('acl: group: ' . $g['name'] . ' members: ' . $g['uids']);
$groups[] = array( $groups[] = array(
"type" => "g", "type" => "g",
"photo" => "images/default-group-mm.png", "photo" => "images/default-group-mm.png",