From 7e2284043f7367f531e14ce3c26c8c3c71ca2e4b Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 27 Sep 2011 05:02:25 -0700 Subject: show profile url in ACL hovertips, add fork identifier to json siteinfo --- boot.php | 2 +- js/acl.js | 4 ++-- mod/acl.php | 8 +++++--- mod/friendika.php | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/boot.php b/boot.php index 5b32e0573..2e58f88d9 100644 --- a/boot.php +++ b/boot.php @@ -7,7 +7,7 @@ require_once('include/text.php'); require_once("include/pgettext.php"); require_once('include/nav.php'); - +define ( 'FRIENDIKA_PLATFORM', 'Free Friendika'); define ( 'FRIENDIKA_VERSION', '2.3.1116' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DB_UPDATE_VERSION', 1092 ); diff --git a/js/acl.js b/js/acl.js index ba6c6af73..b270adb6e 100644 --- a/js/acl.js +++ b/js/acl.js @@ -235,8 +235,8 @@ ACL.prototype.populate = function(data){ var height = Math.ceil(data.tot / that.nw) * 42; that.list_content.height(height); $(data.items).each(function(){ - html = "
"+that.item_tpl+"
"; - html = html.format( this.photo, this.name, this.type, this.id, '', this.network ); + html = "
"+that.item_tpl+"
"; + html = html.format( this.photo, this.name, this.type, this.id, '', this.network, this.link ); if (this.uids!=undefined) that.group_uids[this.id] = this.uids; //console.log(html); that.list_content.append(html); diff --git a/mod/acl.php b/mod/acl.php index cb5959a95..f2d2456a6 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -53,12 +53,13 @@ function acl_init(&$a){ "photo" => "images/default-group-mm.png", "name" => $g['name'], "id" => intval($g['id']), - "uids" => array_map("intval", explode(",",$g['uids'])) + "uids" => array_map("intval", explode(",",$g['uids'])), + "link" => '' ); } - $r = q("SELECT `id`, `name`, `micro`, `network` FROM `contact` + $r = q("SELECT `id`, `name`, `micro`, `network`, `url` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `notify` != '' $sql_extra ORDER BY `name` ASC ", @@ -70,7 +71,8 @@ function acl_init(&$a){ "photo" => $g['micro'], "name" => $g['name'], "id" => intval($g['id']), - "network" => $g['network'] + "network" => $g['network'], + "link" => $g['url'], ); } diff --git a/mod/friendika.php b/mod/friendika.php index c5d7de59f..b12110bd5 100644 --- a/mod/friendika.php +++ b/mod/friendika.php @@ -21,6 +21,7 @@ function friendika_init(&$a) { 'register_policy' => $register_policy[$a->config['register_policy']], 'admin' => $admin, 'site_name' => $a->config['sitename'], + 'platform' => FRIENDIKA_PLATFORM, 'info' => ((x($a->config,'info')) ? $a->config['info'] : '') ); -- cgit v1.2.3 From 59525e1e321d4cdac668bfc79dd5de0962ab5f56 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 27 Sep 2011 05:24:26 -0700 Subject: restore privacy icons after theme upgrade --- view/theme/duepuntozero/wall_item.tpl | 2 +- view/theme/duepuntozero/wallwall_item.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/view/theme/duepuntozero/wall_item.tpl b/view/theme/duepuntozero/wall_item.tpl index a4508b067..32820fb7c 100644 --- a/view/theme/duepuntozero/wall_item.tpl +++ b/view/theme/duepuntozero/wall_item.tpl @@ -16,7 +16,7 @@
- $lock + {{ if $lock }}{{ endif }}
$location
diff --git a/view/theme/duepuntozero/wallwall_item.tpl b/view/theme/duepuntozero/wallwall_item.tpl index daad6ad14..58d5e16f6 100644 --- a/view/theme/duepuntozero/wallwall_item.tpl +++ b/view/theme/duepuntozero/wallwall_item.tpl @@ -21,7 +21,7 @@
- $lock + {{ if $lock }}{{ endif }}
$location
-- cgit v1.2.3 From 75af366122fa472c28a4105553646c53ec0a16e7 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 27 Sep 2011 06:50:18 -0700 Subject: zot/salmon new key format for batch keys --- mod/hostxrd.php | 4 +++- mod/xrd.php | 4 +++- view/xrd_host.tpl | 4 ++++ view/xrd_person.tpl | 6 +++++- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/mod/hostxrd.php b/mod/hostxrd.php index 1cc18da7a..e057cccad 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -1,11 +1,13 @@ $r[0]['nickname'], '$accturi' => $uri, '$profile_url' => $a->get_baseurl() . '/profile/' . $r[0]['nickname'], '$hcard_url' => $a->get_baseurl() . '/hcard/' . $r[0]['nickname'], @@ -50,7 +51,8 @@ function xrd_init(&$a) { '$dspr' => $dspr, '$salmon' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'], '$salmen' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'] . '/mention', - '$modexp' => 'data:application/magic-public-key,' . $salmon_key + '$modexp' => 'data:application/magic-public-key,' . $salmon_key, + '$bigkey' => salmon_key($r[0]['pubkey']) )); diff --git a/view/xrd_host.tpl b/view/xrd_host.tpl index ee687ffa9..d27f948ac 100644 --- a/view/xrd_host.tpl +++ b/view/xrd_host.tpl @@ -21,5 +21,9 @@ type="http://purl.org/zot/1.0/accept" zot:accept="application/atom+xml" /> + $bigkey + diff --git a/view/xrd_person.tpl b/view/xrd_person.tpl index 7373499bf..2b5af3d0d 100644 --- a/view/xrd_person.tpl +++ b/view/xrd_person.tpl @@ -5,7 +5,7 @@ $accturi $profile_url - + $bigkey + -- cgit v1.2.3 From 4f9c072d661939680bd26b366b3c248d94a3b8da Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 27 Sep 2011 19:27:47 -0700 Subject: requeue deliveries on 503 errors which have 'retry-after' headers --- boot.php | 2 +- include/diaspora.php | 3 ++- include/items.php | 3 +++ include/salmon.php | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index 2e58f88d9..24f965283 100644 --- a/boot.php +++ b/boot.php @@ -8,7 +8,7 @@ require_once("include/pgettext.php"); require_once('include/nav.php'); define ( 'FRIENDIKA_PLATFORM', 'Free Friendika'); -define ( 'FRIENDIKA_VERSION', '2.3.1116' ); +define ( 'FRIENDIKA_VERSION', '2.3.1117' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DB_UPDATE_VERSION', 1092 ); diff --git a/include/diaspora.php b/include/diaspora.php index 5b51314ac..1ae8ca800 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -1267,7 +1267,7 @@ function diaspora_transmit($owner,$contact,$slap,$public_batch) { $return_code = $a->get_curl_code(); logger('diaspora_transmit: ' . $logid . ' returns: ' . $return_code); - if(! $return_code) { + if((! $return_code) || (($curl_stat == 503) && (stristr($a->get_curl_headers(),'retry-after')))) { logger('diaspora_transmit: queue message'); // queue message for redelivery q("INSERT INTO `queue` ( `cid`, `created`, `last`, `content`,`batch`) @@ -1280,5 +1280,6 @@ function diaspora_transmit($owner,$contact,$slap,$public_batch) { ); } + return(($return_code) ? $return_code : (-1)); } diff --git a/include/items.php b/include/items.php index da5a18cad..a1baf7471 100644 --- a/include/items.php +++ b/include/items.php @@ -1042,6 +1042,9 @@ function dfrn_deliver($owner,$contact,$atom, $dissolve = false) { if((! $curl_stat) || (! strlen($xml))) return(-1); // timed out + if(($curl_stat == 503) && (stristr($a->get_curl_headers(),'retry-after'))) + return(-1); + if(strpos($xml,'get_curl_headers(),'retry-after'))) + return(-1); + return ((($return_code >= 200) && ($return_code < 300)) ? 0 : 1); } -- cgit v1.2.3 From 44d7c6aac3548e94e35aed87ba7c06b04f374fc2 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 27 Sep 2011 22:03:07 -0700 Subject: connect button overlapping profile details --- view/theme/duepuntozero/style.css | 4 ++++ view/theme/loozah/style.css | 1 + 2 files changed, 5 insertions(+) diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index b0aa99a97..1bdd4a99f 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -507,6 +507,10 @@ input#dfrn-url { margin-bottom: 30px; } +#profile-extra-links { + clear: both; +} + #profile-extra-links ul { list-style-type: none; padding: 0px; diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css index 9289c9354..962d08fc0 100644 --- a/view/theme/loozah/style.css +++ b/view/theme/loozah/style.css @@ -406,6 +406,7 @@ nav { } #profile-extra-links { + clear: both; margin-top: 20px; margin-bottom: 20px; margin-left: 20px; -- cgit v1.2.3