]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Some Google stuff that need to be there (or comments)
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Mar 2016 11:25:04 +0000 (12:25 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Mar 2016 11:25:04 +0000 (12:25 +0100)
Note that these won't be shown to the enduser and will never be accessed automatically.

We should put the salmon-protocol stuff on ostatus.org

plugins/OStatus/lib/magicenvelope.php
plugins/OStatus/tests/MagicEnvelopeTest.php
socialfy-another-domain/dot-well-known/webfinger/example@example.com.xml
tests/ActivityParseTests.php

index 579659fa512770300754dde08390521ad9a61173..27ff0de5bf1afc92994ba6620b0d9ea5d34d773a 100644 (file)
@@ -107,6 +107,7 @@ class MagicEnvelope
      * you'll only get the public key ;)
      *
      * The string will (hopefully) be formatted as described in Magicsig specification:
+     * https://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-magicsig-01.html
      *
      * @return string formatted as Magicsig keypair
      */
index a64a1cfbfb8ccc6f52935c93e678d1e1a01eacec..fd5ad54129326a4d952cc0da12273626870f2e3a 100644 (file)
@@ -27,6 +27,7 @@ class MagicEnvelopeTest extends PHPUnit_Framework_TestCase
     static public function provider()
     {
         // Sample case given in spec:
+        // http://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-magicsig-00.html#signing
         $magic_env = new MagicEnvelope();
         $magic_env->data = 'Tm90IHJlYWxseSBBdG9t';
         $magic_env->data_type = 'application/atom+xml';
index 76d02a98ed055542c5508d707cdc349e16a4e376..3e8c9de678c1ac105ff38f8b3a15cc6cc83809af 100644 (file)
@@ -7,6 +7,10 @@
         type="text/html"
        href="https://social.example.com/user/1"/>
 
+  <Link rel="http://schemas.google.com/g/2010#updates-from"
+       type="application/atom+xml"
+       href="https://social.example.com/api/statuses/user_timeline/1.atom"/>
+
   <!-- Is this/was this ever supported?
        <Link rel="http://microformats.org/profile/hcard"
        type="text/html"
index 37dbbd61e4cdc3c33a7d2578992a4bcd49727ae6..90d214c54d6f1042d8f9b9b4b64f9e470c59b5a0 100644 (file)
@@ -795,7 +795,7 @@ EXAMPLE8;
 $_example9 = <<<EXAMPLE9
 <?xml version="1.0" encoding="utf-8"?>
 <feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:media="http://search.yahoo.com/mrss" xmlns:activity="http://activitystrea.ms/spec/1.0/">
-    <link rel="self" type="application/atom+xml" href=""/>
+    <link rel="self" type="application/atom+xml" href="http://"/>
     <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
     <title type="text">Test</title>
     <updated>2010-03-22T01:55:53.596Z</updated>
@@ -806,8 +806,8 @@ $_example9 = <<<EXAMPLE9
         <summary type="text">IMG_1366</summary>
         <published>2010-03-18T04:29:23.000Z</published>
         <updated>2010-03-18T05:14:03.325Z</updated>
-        <id></id>
-        <link rel="alternate" type="text/html" href=""/>
+        <id>test53725745374entry</id>
+        <link rel="alternate" type="text/html" href="http://buzz.example/117848251937215158042/ZU7b6mHJEmC/IMG-1366"/>
         <author>
             <name>Zach Copley</name>
             <uri>https://mywebsite.net/profiles/zcopley</uri>
@@ -824,7 +824,15 @@ $_example9 = <<<EXAMPLE9
             <media:player url="http://farm5.static.flickr.com/4043/4442630390_62da5560ae_o.jpg" height="1200" width="1600"/>
         </media:content>
         <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
-        <link rel="replies" type="application/atom+xml" href="" thr:count="0"/>
+        <activity:object>
+            <activity:object-type>http://activitystrea.ms/schema/1.0/photo</activity:object-type>
+            <id>test53725745374entry</id>
+            <title>Buzz by Zach Copley from Flickr</title>
+            <content type="html">&lt;div&gt;IMG_1366&lt;/div&gt;</content>
+            <link rel="enclosure" href="http://www.flickr.com/photos/22823034@N00/4442630700" type="image/jpeg" title="IMG_1366"/>
+            <link rel="enclosure" href="http://www.flickr.com/photos/22823034@N00/4442630390" type="image/jpeg" title="IMG_1365"/>
+        </activity:object>
+        <link rel="replies" type="application/atom+xml" href="http://buzz.example/test53725745374/comments" thr:count="0"/>
         <thr:total>0</thr:total>
     </entry>
 </feed>