Issue 6149: Making OWA (hopefully) compatible with Hubzilla
authorMichael <heluecht@pirati.ca>
Tue, 8 Jan 2019 11:17:05 +0000 (11:17 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 8 Jan 2019 11:17:05 +0000 (11:17 +0000)
mod/xrd.php
src/Module/Magic.php
src/Module/Owa.php
view/templates/xrd_person.tpl

index 4b9b0ee..1611540 100644 (file)
@@ -92,7 +92,7 @@ function xrd_json($a, $uri, $alias, $profile_url, $r)
                        ['rel' => 'http://salmon-protocol.org/ns/salmon-mention', 'href' => System::baseUrl().'/salmon/'.$r['nickname'].'/mention'],
                        ['rel' => 'http://ostatus.org/schema/1.0/subscribe', 'template' => System::baseUrl().'/follow?url={uri}'],
                        ['rel' => 'magic-public-key', 'href' => 'data:application/magic-public-key,'.$salmon_key],
-                       ['rel' => 'http://purl.org/openwebauth/v1', 'type' => 'application/x-dfrn+json', 'href' => System::baseUrl().'/owa']
+                       ['rel' => 'http://purl.org/openwebauth/v1', 'type' => 'application/x-zot+json', 'href' => System::baseUrl().'/owa']
                ]
        ];
 
index f0be114..491ed31 100644 (file)
@@ -74,7 +74,7 @@ class Magic extends BaseModule
                                $basepath = $exp[0];
 
                                $headers = [];
-                               $headers['Accept'] = 'application/x-dfrn+json';
+                               $headers['Accept'] = 'application/x-dfrn+json, application/x-zot+json';
                                $headers['X-Open-Web-Auth'] = Strings::getRandomHex();
 
                                // Create a header that is signed with the local users private key.
index bfe108c..7243c11 100644 (file)
@@ -86,6 +86,6 @@ class Owa extends BaseModule
                                }
                        }
                }
-               System::jsonExit($ret, 'application/x-dfrn+json');
+               System::jsonExit($ret, 'application/x-zot+json');
        }
 }
index aa402b1..578698b 100644 (file)
@@ -34,6 +34,6 @@
     <Link rel="magic-public-key" 
           href="{{$modexp}}" />
     <Link rel="http://purl.org/openwebauth/v1"
-          type="application/x-dfrn+json"
+          type="application/x-zot+json"
           href="{{$openwebauth}}" />
 </XRD>