diff --git a/boot.php b/boot.php
index 9bee6c35c..b8742b458 100644
--- a/boot.php
+++ b/boot.php
@@ -16,7 +16,7 @@ require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica Red');
define ( 'FRIENDICA_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1014 );
+define ( 'DB_UPDATE_VERSION', 1015 );
define ( 'EOL', '
' . "\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/images/red.png b/images/red.png
index 1d0a2950e..c7831bb52 100644
Binary files a/images/red.png and b/images/red.png differ
diff --git a/include/items.php b/include/items.php
index 3cfdd59da..432f26804 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4200,13 +4200,15 @@ function fetch_post_tags($items) {
$tag_finder = array();
if($items) {
foreach($items as $item) {
- if(array_key_exists('item_id',$item)) {
- if(! in_array($item['item_id'],$tag_finder))
- $tag_finder[] = $item['item_id'];
- }
- else {
- if(! in_array($item['id'],$tag_finder))
- $tag_finder[] = $item['id'];
+ if(is_array($item)) {
+ if(array_key_exists('item_id',$item)) {
+ if(! in_array($item['item_id'],$tag_finder))
+ $tag_finder[] = $item['item_id'];
+ }
+ else {
+ if(! in_array($item['id'],$tag_finder))
+ $tag_finder[] = $item['id'];
+ }
}
}
}
@@ -4222,7 +4224,7 @@ function fetch_post_tags($items) {
for($x = 0; $x < count($items); $x ++) {
- if(count($tags)) {
+ if($tags) {
foreach($tags as $t) {
if(array_key_exists('item_id',$items[$x])) {
if($t['oid'] == $items[$x]['item_id']) {
diff --git a/include/notifier.php b/include/notifier.php
index 71571cbd5..ebb6f7bb5 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -49,7 +49,7 @@ require_once('include/html2plain.php');
require_once('include/cli_startup.php');
require_once('include/zot.php');
-
+require_once('include/queue_fn.php');
function notifier_run($argv, $argc){
@@ -261,8 +261,8 @@ function notifier_run($argv, $argc){
stringify_array_elms($recipients);
if(! $recipients)
return;
- logger('notifier: recipients: ' . print_r($recipients,true));
+ logger('notifier: recipients: ' . print_r($recipients,true));
$env_recips = null;
if($private) {
diff --git a/include/zot.php b/include/zot.php
index 46f0bd397..5771b67d1 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -358,7 +358,13 @@ function zot_register_hub($arr) {
$guid_hash = base64url_encode(hash('whirlpool',$arr['guid'] . $arr['guid_sig'], true));
- $x = z_fetch_url($arr['url'] . '/.well-known/zot-info/?f=&hash=' . $guid_hash);
+ $url = $arr['url'] . '/.well-known/zot-info/?f=&guid_hash=' . $guid_hash;
+
+ logger('zot_register_hub: ' . $url);
+
+ $x = z_fetch_url($url);
+
+ logger('zot_register_hub: ' . print_r($x,true));
if($x['success']) {
$record = json_decode($x['body'],true);
diff --git a/install/database.sql b/install/database.sql
index 5a17346e1..a4d885541 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -805,7 +805,7 @@ CREATE TABLE IF NOT EXISTS `tokens` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `verify` (
- `id` int(10) unsigned NOT NULL,
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`channel` int(10) unsigned NOT NULL DEFAULT '0',
`type` char(32) NOT NULL DEFAULT '',
`token` char(255) NOT NULL DEFAULT '',
diff --git a/install/update.php b/install/update.php
index 549ae63ed..cff3115a2 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
set_widget('archive',posted_date_widget($a->get_baseurl(true) . '/channel/' . $a->profile['nickname'],$a->profile['profile_uid'],true));
- $a->set_widget('categories',categories_widget($a->get_baseurl(true) . '/channel/' . $a->profile['nickname'],$cat));
+ $x = q("select uid as profile_uid from channel where address = '%s' limit 1",
+ dbesc(argv(1))
+ );
+ if($x) {
+ $a->profile = $x[0];
+ $channel_display = get_pconfig($a->profile['profile_uid'],'system','channel_format');
+ if(! $channel_display)
+ profile_load($a,$which,$profile);
+ if($channel_display === 'full')
+ $a->page['template'] = 'full';
+ else {
+ $a->set_widget('archive',posted_date_widget($a->get_baseurl(true) . '/channel/' . $a->profile['nickname'],$a->profile['profile_uid'],true));
+ $a->set_widget('categories',categories_widget($a->get_baseurl(true) . '/channel/' . $a->profile['nickname'],$cat));
+ }
+ }
}
diff --git a/mod/search.php b/mod/search.php
index 3f34587ef..6f40ad4b0 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -88,6 +88,9 @@ function search_content(&$a) {
require_once('include/conversation.php');
require_once('include/items.php');
+
+ $observer = $a->get_observer();
+
$o = '