]> git.mxchange.org Git - friendica.git/commitdiff
Some changes to stay compatible to Diaspora
authorMichael Vogel <icarus@dabo.de>
Sat, 19 Sep 2015 12:00:33 +0000 (14:00 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 19 Sep 2015 12:00:33 +0000 (14:00 +0200)
include/identity.php
view/templates/diaspora_vcard.tpl
view/templates/xrd_host.tpl

index 9f3e1dda06b83178a6a9a1c46396a672f1255fb9..0fba0c592f02d60f214d34838837e58befd96590 100644 (file)
@@ -285,6 +285,7 @@ if(! function_exists('profile_sidebar')) {
                $lastname = (($firstname === $profile['name']) ? '' : trim(substr($profile['name'],strlen($firstname))));
 
                $diaspora = array(
+                       'guid' => $profile['guid'],
                        'podloc' => $a->get_baseurl(),
                        'searchable' => (($profile['publish'] && $profile['net-publish']) ? 'true' : 'false' ),
                        'nickname' => $profile['nickname'],
index 25a0fe0fcd0b157500ce179f40f17fd10baf23e1..58419bd13d0f181a8de17fbba08220d8e45b01b2 100644 (file)
@@ -1,34 +1,45 @@
 
 <div style="display:none;">
+       <dl class="entity_uid">
+               <dt>Uid</dt>
+               <dd>
+                       <span class="uid">{{$diaspora.guid}}</span>
+               </dd>
+       </dl>
        <dl class='entity_nickname'>
                <dt>Nickname</dt>
                <dd>            
-                       <a class="nickname url uid" href="{{$diaspora.podloc}}/" rel="me">{{$diaspora.nickname}}</a>
+                       <span class="nickname">{{$diaspora.nickname}}</span>
                </dd>
        </dl>
-       <dl class='entity_fn'>
-               <dt>Full name</dt>
+       <dl class='entity_full_name'>
+               <dt>Full_name</dt>
                <dd>
                        <span class='fn'>{{$diaspora.fullname}}</span>
                </dd>
        </dl>
-
-       <dl class='entity_given_name'>
-               <dt>First name</dt>
+       <dl class="entity_searchable">
+               <dt>Searchable</dt>
+               <dd>
+                       <span class="searchable">{{$diaspora.searchable}}</span>
+               </dd>
+       </dl>
+       <dl class='entity_first_name'>
+               <dt>First_name</dt>
                <dd>
                <span class='given_name'>{{$diaspora.firstname}}</span>
                </dd>
        </dl>
        <dl class='entity_family_name'>
-               <dt>Family name</dt>
+               <dt>Family_name</dt>
                <dd>
                <span class='family_name'>{{$diaspora.lastname}}</span>
                </dd>
        </dl>
        <dl class="entity_url">
-               <dt>URL</dt>
+               <dt>Url</dt>
                <dd>
-                       <a class="url" href="{{$diaspora.podloc}}/" id="pod_location" rel="me">{{$diaspora.podloc}}/</a>
+                       <a id="pod_location" class="url" rel="me" href="{{$diaspora.podloc}}/">{{$diaspora.podloc}}/</a>
                </dd>
        </dl>
        <dl class="entity_photo">
                </dd>
        </dl>
        <dl class="entity_photo_medium">
-               <dt>Photo</dt>
+               <dt>Photo_medium</dt>
                <dd> 
                        <img class="photo avatar" height="100" width="100" src="{{$diaspora.photo100}}">
                </dd>
        </dl>
        <dl class="entity_photo_small">
-               <dt>Photo</dt>
+               <dt>Photo_small</dt>
                <dd>
                        <img class="photo avatar" height="50" width="50" src="{{$diaspora.photo50}}">
                </dd>
        </dl>
-       <dl class="entity_searchable">
-               <dt>Searchable</dt>
-               <dd>
-                       <span class="searchable">{{$diaspora.searchable}}</span>
-               </dd>
-       </dl>
 </div>
index 29d9e7a6d51cd6c6dd5a372e2efdc45c813d3a68..5df18b173e38f7c368139af5c421742b407be697 100644 (file)
@@ -1,11 +1,10 @@
-
 <?xml version='1.0' encoding='UTF-8'?>
 <XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'
      xmlns:hm='http://host-meta.net/xrd/1.0'>
  
     <hm:Host>{{$zhost}}</hm:Host>
  
-    <Link rel='lrdd' template='{{$domain}}/xrd/?uri={uri}' />
+    <Link rel='lrdd' type='application/xrd+xml' template='{{$domain}}/xrd/?uri={uri}' />
     <Link rel='acct-mgmt' href='{{$domain}}/amcd' />
     <Link rel='http://services.mozilla.com/amcd/0.1' href='{{$domain}}/amcd' />
        <Link rel="http://oexchange.org/spec/0.8/rel/resident-target" type="application/xrd+xml" 
@@ -14,6 +13,4 @@
     <Property xmlns:mk="http://salmon-protocol.org/ns/magic-key"
         type="http://salmon-protocol.org/ns/magic-key"
         mk:key_id="1">{{$bigkey}}</Property>
-
-
 </XRD>