]> git.mxchange.org Git - friendica.git/commitdiff
diaspora_reshare no content found, d* profile message work in progress, network page...
authorFriendika <info@friendika.com>
Wed, 19 Oct 2011 22:08:16 +0000 (15:08 -0700)
committerFriendika <info@friendika.com>
Wed, 19 Oct 2011 22:08:16 +0000 (15:08 -0700)
boot.php
include/diaspora.php
mod/network.php
mod/settings.php
view/diaspora_profile.tpl [new file with mode: 0644]

index 05e031e7bc77039e0ad3a4163d659f16d528b5ae..b846bcd08a61acd8dcbba683f97f8655cb913dc3 100644 (file)
--- 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.1138' );
+define ( 'FRIENDIKA_VERSION',      '2.3.1139' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1097      );
 
index 4012c02e5e4f167f7eacd210459ac74410ee2020..aa6ee96701d211db5e8e71482a03d870607cd9b9 100644 (file)
@@ -621,7 +621,7 @@ function diaspora_reshare($importer,$xml) {
                return;
        }
        $x = str_replace(array('<activity_streams-photo>','</activity_streams-photo>'),array('<asphoto>','</asphoto>'),$x);
-       $source_xml = parse_xml_string($x,true);
+       $source_xml = parse_xml_string($x,false);
 
        if(strlen($source_xml->asphoto->objectId) && ($source_xml->asphoto->objectId != 0) && ($source_xml->asphoto->image_url))
                $body = '[url=' . notags(unxmlify($source_xml->asphoto->image_url)) . '][img]' . notags(unxmlify($source_xml->asphoto->objectId)) . '[/img][/url]' . "\n";
@@ -631,7 +631,7 @@ function diaspora_reshare($importer,$xml) {
                $body = diaspora2bb($source_xml->status_message->raw_message);
        }
        else {
-               logger('diaspora_reshare: no reshare content found.');
+               logger('diaspora_reshare: no reshare content found: ' . print_r($source_xml,true));
                return;
        }
        if(! $body) {
index 9ab34ebb053f4ec78e6d222f84e6d85d0e3a0f24..04c2a1782b39afd82c6d7433143b720b59763edd 100644 (file)
@@ -151,7 +151,7 @@ function network_content(&$a, $update = 0) {
                ),
                array(
                        'label' => t('Posted Order'),
-                       'url'=>$a->get_baseurl() . '/' . str_replace('/new', '', $a->cmd) . '?order=post' . ((x($_GET,'cid')) ? '?cid=' . $_GET['cid'] : ''), 
+                       'url'=>$a->get_baseurl() . '/' . str_replace('/new', '', $a->cmd) . '?order=post' . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : ''), 
                        'sel'=>$postord_active,
                ),
 
index b5997fbe73d1aee72cbf70635982aa7ab2a1e9e2..84f66d263d875f331254dea8b93938b3f17ef05c 100644 (file)
@@ -293,8 +293,13 @@ function settings_post(&$a) {
                $url = $_SESSION['my_url'];
                if($url && strlen(get_config('system','directory_submit_url')))
                        proc_run('php',"include/directory.php","$url");
+
        }
 
+// not yet ready for prime time
+//             require_once('include/profile_update.php');
+//             profile_change();
+
        $_SESSION['theme'] = $theme;
        if($email_changed && $a->config['register_policy'] == REGISTER_VERIFY) {
 
diff --git a/view/diaspora_profile.tpl b/view/diaspora_profile.tpl
new file mode 100644 (file)
index 0000000..e5c3d3c
--- /dev/null
@@ -0,0 +1,16 @@
+<XML>
+ <post><profile>
+  <diaspora_handle>$handle</diaspora_handle>
+  <first_name>$first</first_name>
+  <last_name>$last</last_name>
+  <image_url>$large</image_url>
+  <image_url_small>$small</image_url_small>
+  <image_url_medium>$medium</image_url_medium>
+  <birthday>$dob</birthday>
+  <gender>$gender</gender>
+  <bio>$about</bio>
+  <location>$location</location>
+  <searchable>$searchable</searchable>
+  <tag_string>$tags</tag_string>
+</profile></post>
+      </XML>