From: fabrixxm Date: Sun, 24 May 2015 08:26:21 +0000 (+0200) Subject: Merge branch 'develop' into issue-1574 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b29b01fad40aa0ca13cee877aed1520344c6acdf;hp=4554526515bd6a10041ffaacb156ec2c8d6942ac;p=friendica.git Merge branch 'develop' into issue-1574 --- diff --git a/include/items.php b/include/items.php index 85d02ab60d..66307573d9 100644 --- a/include/items.php +++ b/include/items.php @@ -4745,6 +4745,18 @@ function drop_item($id,$interactive = true) { // ignore the result } + // If item has attachments, drop them + + foreach(explode(",",$item['attach']) as $attach){ + preg_match("|attach/(\d+)|", $attach, $matches); + q("DELETE FROM `attach` WHERE `id` = %d AND `uid` = %d", + intval($matches[1]), + local_user() + ); + // ignore the result + } + + // clean up item_id and sign meta-data tables /* @@ -4821,6 +4833,7 @@ function drop_item($id,$interactive = true) { // Add a relayable_retraction signature for Diaspora. store_diaspora_retract_sig($item, $a->user, $a->get_baseurl()); } + $drop_id = intval($item['id']); // send the notification upstream/downstream as the case may be diff --git a/mod/videos.php b/mod/videos.php index 0f29e631bd..607c900eb5 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -43,12 +43,12 @@ function videos_init(&$a) { if(count($albums)) { $a->data['albums'] = $albums; - $albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true); + $albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true); if($albums_visible) { $o .= ' diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less index dded1514a5..480effd501 100644 --- a/view/theme/quattro/quattro.less +++ b/view/theme/quattro/quattro.less @@ -36,7 +36,7 @@ h4 { font-size: 1.1em } -o-transition: all @d ease-in-out; -ms-transition: all @d ease-in-out; transition: all @d ease-in-out; -} +} a, a:link { color: @Link; text-decoration: none; } @@ -68,7 +68,7 @@ code { background: #EEE; color: #444; padding: 10px; - margin-top: 20px; + margin-top: 20px; } #panel { @@ -86,7 +86,9 @@ code { } + /* tool */ + .tool { height: auto; overflow: auto; .label { float: left;} @@ -95,6 +97,8 @@ code { } + + /* popup notifications */ #jGrowl.top-right { top: 30px; @@ -140,7 +144,6 @@ header { #logo-text { font-size: 22px } } } - /* nav */ nav { width: 100%; height: 32px; @@ -299,6 +302,8 @@ ul.menu-popup { } + + /* aside 230px*/ aside { display: table-cell; @@ -1031,6 +1036,7 @@ span[id^="showmore-wrap"] { } + #acl-wrapper { width: 690px; float:left; @@ -1172,6 +1178,7 @@ ul.tabs { overflow: auto; width: 100%; + label { float: left; width: 200px; @@ -1193,6 +1200,7 @@ ul.tabs { } + .onoff { float: left; width: 80px; @@ -1577,6 +1585,7 @@ footer { height: 100px; display: table-row; } } /* edit buttons for comments */ + .icon.dim { opacity: 0.3;filter:alpha(opacity=30); } .comment-edit-bb { list-style: none; @@ -1660,3 +1669,4 @@ footer { height: 100px; display: table-row; } border: 0px; color: @FieldHelpColor; } +