diff --git a/include/bbcode.php b/include/bbcode.php index ebed0dbb25..01c8f14df9 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -643,7 +643,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal // fix any escaped ampersands that may have been converted into links $Text = preg_replace("/\<([^>]*?)(src|href)=(.*?)\&\;(.*?)\>/ism",'<$1$2=$3&$4>',$Text); - $Text = preg_replace("/\<([^>]*?)(src|href)=\"[^hfm](.*?)\>/ism",'<$1$2="">',$Text); + $Text = preg_replace("/\<([^>]*?)(src|href)=\"(?!http|ftp|mailto|cid)(.*?)\>/ism",'<$1$2="">',$Text); if($saved_image) $Text = bb_replace_images($Text, $saved_image); diff --git a/include/enotify.php b/include/enotify.php index 928d2b4b48..f294a4fc77 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -214,11 +214,10 @@ function notification($params) { } if($params['type'] == NOTIFY_CONFIRM) { - } if($params['type'] == NOTIFY_SYSTEM) { - + } $h = array( diff --git a/include/items.php b/include/items.php index 29f4d7256f..8bd28f788d 100755 --- a/include/items.php +++ b/include/items.php @@ -1149,7 +1149,6 @@ function item_store($arr,$force_parent = false) { $arr['deny_gid'] = $deny_gid; $arr['private'] = $private; $arr['deleted'] = $parent_deleted; - call_hooks('post_remote_end',$arr); // update the commented timestamp on the parent @@ -1195,6 +1194,14 @@ function item_store($arr,$force_parent = false) { logger('item_store: put item '.$current_post.' into cachefile '.$cachefile); } + $r = q('SELECT * FROM `item` WHERE id = %d', intval($current_post)); + if (count($r) == 1) { + call_hooks('post_remote_end', $r[0]); + } + else { + logger('item_store: new item not found in DB, id ' . $current_post); + } + return $current_post; } diff --git a/include/ostatus_conversation.php b/include/ostatus_conversation.php index ef9e4f1793..f430d9e47a 100644 --- a/include/ostatus_conversation.php +++ b/include/ostatus_conversation.php @@ -90,6 +90,12 @@ function complete_conversation($itemid, $conversation_url, $only_add_conversatio $items = array_reverse($conv_as->items); foreach ($items as $single_conv) { + if (@!$single_conv->id AND $single_conv->provider->url AND $single_conv->statusnet_notice_info->local_id) + $single_conv->id = $single_conv->provider->url."notice/".$single_conv->statusnet_notice_info->local_id; + + if (@!$single_conv->id) + continue; + if ($first_id == "") { $first_id = $single_conv->id; diff --git a/index.php b/index.php index 40551f3881..8e2376e918 100644 --- a/index.php +++ b/index.php @@ -183,6 +183,10 @@ if(strlen($a->module)) { * */ + // Compatibility with the Android Diaspora client + if ($a->module == "stream") + $a->module = "network"; + if(is_array($a->plugins) && in_array($a->module,$a->plugins) && file_exists("addon/{$a->module}/{$a->module}.php")) { include_once("addon/{$a->module}/{$a->module}.php"); if(function_exists($a->module . '_module')) diff --git a/mod/network.php b/mod/network.php index ba7bff791a..51f3d22327 100644 --- a/mod/network.php +++ b/mod/network.php @@ -594,7 +594,7 @@ function network_content(&$a, $update = 0) { if($update) killme(); notice( t('No such group') . EOL ); - goaway($a->get_baseurl(true) . '/network'); + goaway($a->get_baseurl(true) . '/network/0'); // NOTREACHED } diff --git a/view/theme/smoothly/login.tpl b/view/theme/smoothly/login.tpl deleted file mode 100644 index a2c143d39c..0000000000 --- a/view/theme/smoothly/login.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
-
- - -
- {{ inc field_input.tpl with $field=$lname }}{{ endinc }} - {{ inc field_password.tpl with $field=$lpassword }}{{ endinc }} -
- - {{ if $openid }} -
- {{ inc field_openid.tpl with $field=$lopenid }}{{ endinc }} -
- {{ endif }} - -
- -
- -

- - - {{ for $hiddens as $k=>$v }} - - {{ endfor }} - - -
-
- diff --git a/view/theme/smoothly/smarty3/login.tpl b/view/theme/smoothly/smarty3/login.tpl deleted file mode 100644 index e8ade82509..0000000000 --- a/view/theme/smoothly/smarty3/login.tpl +++ /dev/null @@ -1,41 +0,0 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} - -
-
- - -
- {{include file="field_input.tpl" field=$lname}} - {{include file="field_password.tpl" field=$lpassword}} -
- - {{if $openid}} -
- {{include file="field_openid.tpl" field=$lopenid}} -
- {{/if}} - -
- -
- -

- - - {{foreach $hiddens as $k=>$v}} - - {{/foreach}} - - -
-
- diff --git a/view/theme/smoothly/style.css b/view/theme/smoothly/style.css index 285072d709..5bb78a2efc 100644 --- a/view/theme/smoothly/style.css +++ b/view/theme/smoothly/style.css @@ -2,7 +2,7 @@ style.css Smoothly - Created by alex@friendica.pixelbits.de on 2013-02-27 + Created by alex@friendica.pixelbits.de on 2013-03-12 ** Colors ** Blue links - #1873a2 @@ -197,25 +197,17 @@ section { } #login-extra-links { - width: 90px; + width: auto; margin-top: 20px; clear: both; } .login-extra-links { width: 100%; - margin-left: 145px; + margin-left: 0px; clear: both; } -#login-extra-links a { - display: block; - margin: 10px; - padding: 5px 0px 5px 0px; - text-align: center; - margin-right: 20px; -} - #login-extra-filler { display: none; } @@ -231,9 +223,11 @@ section { margin: 10px 0 0 0; } -#login_openid { - width: 300px; - margin-left: 150px; +#login_openid, +#div_id_remember, +#login-extra-links a { + width: 460px; + float: left; } #login_standard input, @@ -243,9 +237,8 @@ section { #register-link, #lost-password-link { - font-size: 80%; - width: 210px; - margin-left: 5px; + width: 260px; + } #login-name-end, @@ -257,8 +250,6 @@ section { #login-submit-button, #login-submit-wrapper { - margin-top: 10px; - margin-left: 75px; } #login-submit-button { @@ -634,9 +625,8 @@ aside h4 { .vcard #profile-photo-wrapper { margin: 10px 0px; - padding: 1px; - width: 200px; - height: 200px; + padding: 6px; + width: auto; background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #C5C5C5; box-shadow: 0 0 8px #BDBDBD; @@ -1404,18 +1394,10 @@ ul .sidebar-group-li .icon { width: 100px; } -.wall-item-photo { - width: 81px !important; - height: 81px !important; - border-radius: 5px; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; -} - .wall-item-photo-wrapper { width: 80px; height: 80px; - padding: 1px; + padding: 4px; position: relative; border: 1px solid #dddddd; border-radius: 5px; @@ -1598,13 +1580,14 @@ ul .sidebar-group-li .icon { } .wallwall .wwto { - left: 0px; + left: -10px; + margin: 0; position: absolute; - margin: -1px; - top: 63px; + top: 65px; + width: 30px; z-index: 900; - width: 0px; - height: 0px; + width: 30px; + height: 30px; } .wallwall .wwto img { @@ -1618,8 +1601,8 @@ ul .sidebar-group-li .icon { .wall-item-arrowphoto-wrapper { position: absolute; - left: 30px; - top: 67px; + left: 20px; + top: 70px; z-index: 950; } @@ -1733,8 +1716,8 @@ code { } .wall-item-outside-wrapper.comment .wall-item-photo { - width: 41px!important; - height: 41px!important; + width: 40px!important; + height: 40px!important; } .wall-item-outside-wrapper.comment .wall-item-photo-wrapper { @@ -2021,11 +2004,8 @@ div[id$="wrapper"] br { } .photo { - height: 200px!important; - width: 200px!important; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; + height: 191px!important; + width: 191px!important; } #side-bar-photos-albums { @@ -4400,12 +4380,12 @@ div #datebrowse-sidebar.widget { #settings-activity-desc, #settings-notify-desc { - margin:10px 10px 10px 0; + margin: 10px 10px 10px 0; font-weight: bold; } #settings-notifications { - width: 400px; + width: 410px; border: 1px solid #7C7D7B; box-shadow: 0 0 8px #BDBDBD; -moz-box-shadow: 3px 3px 4px #959494; @@ -4413,8 +4393,8 @@ div #datebrowse-sidebar.widget { border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; - padding:10px; - margin:10px 10px 10px 0; + padding: 10px; + margin: 10px 10px 10px 0; } #id_npassword {} @@ -4493,3 +4473,9 @@ div #datebrowse-sidebar.widget { width: 75px; } +#id_remember { + width: auto; +} + +.field.input.openid { +} diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 849ad80a32..67f4f7dd7b 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -3,7 +3,7 @@ /* * Name: Smoothly * Description: Like coffee with milk. Theme optimized for iPad[2]. - * Version: Version 2013-02-27.1 + * Version: Version 2013-03-12.1 * Author: Alex * Maintainer: Alex * Screenshot: Screenshot diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index ebcab5a144..1595499ee0 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -240,6 +240,11 @@ div.pager { .shared_header a { color: black; + -webkit-transition: all 0.2s ease-in-out; + -moz-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + -ms-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; } .shared_header a:hover { @@ -291,7 +296,7 @@ body { background-color: #F2F2F2; color: #2d2d2d; /* margin: 37px 0px 0px 0px; */ - margin: 32px 0px 0px 0px; + margin: 0px 0px 0px 0px; display: table; /* width: 100% */ } @@ -849,6 +854,7 @@ ul.menu-popup .empty { right_aside { width: 0px; + top: 32px; display: block; } @@ -857,12 +863,20 @@ aside { /* display: table-cell; */ vertical-align: top; width: 185px; - padding: 10px 10px 10px 20px; + padding: 32px 10px 10px 20px; /* border-right: 1px solid #D2D2D2; */ /* background-color: #ECECF2; */ background-color: #F2F2F2; font-size: 13px; /* background: #F1F1F1; */ + top: 0px; + overflow-y: auto; + z-index: 2; + + position: fixed; + /* overflow: auto; */ + height: 100%; + /* overflow: scroll; */ } aside .vcard .fn { font-size: 18px; @@ -1062,6 +1076,7 @@ aside h4 { section { display: table-cell; vertical-align: top; + top: 32px; width: 766px; max-width: 766px; padding: 10px 10px 10px 10px; @@ -1069,6 +1084,9 @@ section { border-bottom: 1px solid lightgray; border-right: 1px solid lightgray; border-left: 1px solid lightgray; + + position: absolute; + left: 215px; } /* wall item */ .tread-wrapper { @@ -1197,6 +1215,11 @@ border-bottom: 1px solid #D2D2D2; .wall-item-container .wall-item-name { color: black; font-weight: bold; + -webkit-transition: all 0.2s ease-in-out; + -moz-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + -ms-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; } .toplevel_item:hover .wall-item-name, @@ -1214,6 +1237,11 @@ border-bottom: 1px solid #D2D2D2; .toplevel_item .fakelink, .wall-item-container .fakelink { color: black; + -webkit-transition: all 0.2s ease-in-out; + -moz-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + -ms-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; /* color: darkblue; */ /* color: #3E3E8C; */ }