3 if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
4 print "This script must be run from the command line\n";
8 // XXX: we should probably have some common source for this stuff
10 define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
11 define('STATUSNET', true);
13 require_once INSTALLDIR . '/lib/common.php';
15 class ActivityParseTests extends PHPUnit_Framework_TestCase
17 public function testExample1()
20 $dom = DOMDocument::loadXML($_example1);
21 $act = new Activity($dom->documentElement);
23 $this->assertFalse(empty($act));
25 $this->assertEquals(1243860840, $act->time);
26 $this->assertEquals(ActivityVerb::POST, $act->verb);
28 $this->assertFalse(empty($act->objects[0]));
29 $this->assertEquals('Punctuation Changeset', $act->objects[0]->title);
30 $this->assertEquals('http://versioncentral.example.org/activity/changeset', $act->objects[0]->type);
31 $this->assertEquals('Fixing punctuation because it makes it more readable.', $act->objects[0]->summary);
32 $this->assertEquals('tag:versioncentral.example.org,2009:/change/1643245', $act->objects[0]->id);
35 public function testExample2()
38 $dom = DOMDocument::loadXML($_example2);
39 $act = new Activity($dom->documentElement);
41 $this->assertFalse(empty($act));
42 // Did we handle <content type="html"> correctly with a typical payload?
43 $this->assertEquals("<p>Geraldine posted a Photo on PhotoPanic</p>\n " .
44 "<img src=\"/geraldine/photo1.jpg\">", trim($act->content));
47 public function testExample3()
50 $dom = DOMDocument::loadXML($_example3);
52 $feed = $dom->documentElement;
54 $entries = $feed->getElementsByTagName('entry');
56 $entry = $entries->item(0);
58 $act = new Activity($entry, $feed);
60 $this->assertFalse(empty($act));
61 $this->assertEquals(1071340202, $act->time);
62 $this->assertEquals('http://example.org/2003/12/13/atom03.html', $act->link);
64 $this->assertEquals($act->verb, ActivityVerb::POST);
66 $this->assertFalse(empty($act->actor));
67 $this->assertEquals(ActivityObject::PERSON, $act->actor->type);
68 $this->assertEquals('John Doe', $act->actor->title);
69 $this->assertEquals('mailto:johndoe@example.com', $act->actor->id);
71 $this->assertFalse(empty($act->objects[0]));
72 $this->assertEquals(ActivityObject::NOTE, $act->objects[0]->type);
73 $this->assertEquals('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a', $act->objects[0]->id);
74 $this->assertEquals('Atom-Powered Robots Run Amok', $act->objects[0]->title);
75 $this->assertEquals('Some text.', $act->objects[0]->summary);
76 $this->assertEquals('http://example.org/2003/12/13/atom03.html', $act->objects[0]->link);
78 $this->assertFalse(empty($act->context));
80 $this->assertTrue(empty($act->target));
82 $this->assertEquals($act->entry, $entry);
83 $this->assertEquals($act->feed, $feed);
86 public function testExample4()
89 $dom = DOMDocument::loadXML($_example4);
91 $entry = $dom->documentElement;
93 $act = new Activity($entry);
95 $this->assertFalse(empty($act));
96 $this->assertEquals(1266547958, $act->time);
97 $this->assertEquals('http://example.net/notice/14', $act->link);
99 $this->assertFalse(empty($act->context));
100 $this->assertEquals('http://example.net/notice/12', $act->context->replyToID);
101 $this->assertEquals('http://example.net/notice/12', $act->context->replyToUrl);
102 $this->assertEquals('http://example.net/conversation/11', $act->context->conversation);
103 $this->assertEquals(array('http://example.net/user/1'), $act->context->attention);
105 $this->assertFalse(empty($act->objects[0]));
106 $this->assertEquals($act->objects[0]->content,
107 '@<span class="vcard"><a href="http://example.net/user/1" class="url"><span class="fn nickname">evan</span></a></span> now is the time for all good men to come to the aid of their country. #<span class="tag"><a href="http://example.net/tag/thetime" rel="tag">thetime</a></span>');
109 $this->assertFalse(empty($act->actor));
112 public function testExample5()
115 $dom = DOMDocument::loadXML($_example5);
117 $feed = $dom->documentElement;
119 // @todo Test feed elements
121 $entries = $feed->getElementsByTagName('entry');
122 $entry = $entries->item(0);
124 $act = new Activity($entry, $feed);
127 $this->assertEquals($act->verb, ActivityVerb::POST);
128 $this->assertFalse(empty($act->context));
130 // Actor w/Portable Contacts stuff
131 $this->assertFalse(empty($act->actor));
132 $this->assertEquals($act->actor->type, ActivityObject::PERSON);
133 $this->assertEquals($act->actor->title, 'Test User');
134 $this->assertEquals($act->actor->id, 'http://example.net/mysite/user/3');
135 $this->assertEquals($act->actor->link, 'http://example.net/mysite/testuser');
137 $avatars = $act->actor->avatarLinks;
141 'http://example.net/mysite/avatar/3-96-20100224004207.jpeg'
144 $this->assertEquals($act->actor->displayName, 'Test User');
146 $poco = $act->actor->poco;
147 $this->assertEquals($poco->preferredUsername, 'testuser');
148 $this->assertEquals($poco->address->formatted, 'San Francisco, CA');
149 $this->assertEquals($poco->urls[0]->type, 'homepage');
150 $this->assertEquals($poco->urls[0]->value, 'http://example.com/blog.html');
151 $this->assertEquals($poco->urls[0]->primary, 'true');
152 $this->assertEquals($act->actor->geopoint, '37.7749295 -122.4194155');
155 public function testExample6()
159 $dom = DOMDocument::loadXML($_example6);
161 $rss = $dom->documentElement;
163 $channels = $dom->getElementsByTagName('channel');
165 $channel = $channels->item(0);
167 $items = $channel->getElementsByTagName('item');
169 $item = $items->item(0);
171 $act = new Activity($item, $channel);
173 $this->assertEquals($act->verb, ActivityVerb::POST);
175 $this->assertEquals($act->id, 'http://en.blog.wordpress.com/?p=3857');
176 $this->assertEquals($act->link, 'http://en.blog.wordpress.com/2010/03/03/rub-a-dub-dub-in-the-pubsubhubbub/');
177 $this->assertEquals($act->title, 'Rub-a-Dub-Dub in the PubSubHubbub');
178 $this->assertEquals($act->time, 1267634892);
180 $actor = $act->actor;
182 $this->assertFalse(empty($actor));
183 $this->assertEquals($actor->title, "Joseph Scott");
186 public function testExample7()
190 $dom = DOMDocument::loadXML($_example7);
192 $rss = $dom->documentElement;
194 $channels = $dom->getElementsByTagName('channel');
196 $channel = $channels->item(0);
198 $items = $channel->getElementsByTagName('item');
200 $item = $items->item(0);
202 $act = new Activity($item, $channel);
204 $this->assertEquals(ActivityVerb::POST, $act->verb);
205 $this->assertEquals('http://evanpro.posterous.com/checking-out-captain-bones', $act->link);
206 $this->assertEquals('http://evanpro.posterous.com/checking-out-captain-bones', $act->id);
207 $this->assertEquals('Checking out captain bones', $act->title);
208 $this->assertEquals(1269095551, $act->time);
210 $actor = $act->actor;
212 $this->assertEquals(ActivityObject::PERSON, $actor->type);
213 $this->assertEquals('http://posterous.com/people/3sDslhaepotz', $actor->id);
214 $this->assertEquals('Evan Prodromou', $actor->title);
215 $this->assertNull($actor->summary);
216 $this->assertNull($actor->content);
217 $this->assertEquals('http://posterous.com/people/3sDslhaepotz', $actor->link);
218 $this->assertNull($actor->source);
219 $this->assertTrue(is_array($actor->avatarLinks));
220 $this->assertEquals(1, count($actor->avatarLinks));
221 $this->assertEquals('http://files.posterous.com/user_profile_pics/480326/2009-08-05-142447.jpg',
222 $actor->avatarLinks[0]->url);
223 $this->assertNotNull($actor->poco);
224 $this->assertEquals('evanpro', $actor->poco->preferredUsername);
225 $this->assertEquals('Evan Prodromou', $actor->poco->displayName);
226 $this->assertNull($actor->poco->note);
227 $this->assertNull($actor->poco->address);
228 $this->assertEquals(0, count($actor->poco->urls));
231 // Media test - cliqset
232 public function testExample8()
235 $dom = DOMDocument::loadXML($_example8);
237 $feed = $dom->documentElement;
239 $entries = $feed->getElementsByTagName('entry');
241 $entry = $entries->item(0);
243 $act = new Activity($entry, $feed);
245 $this->assertFalse(empty($act));
246 $this->assertEquals($act->time, 1269221753);
247 $this->assertEquals($act->verb, ActivityVerb::POST);
248 $this->assertEquals($act->summary, 'zcopley posted 5 photos on Flickr');
250 $this->assertFalse(empty($act->objects));
251 $this->assertEquals(sizeof($act->objects), 5);
253 $this->assertEquals($act->objects[0]->type, ActivityObject::PHOTO);
254 $this->assertEquals($act->objects[0]->title, 'IMG_1368');
255 $this->assertNull($act->objects[0]->description);
257 $act->objects[0]->thumbnail,
258 'http://media.cliqset.com/6f6fbee9d7dfbffc73b6ef626275eb5f_thumb.jpg'
261 $act->objects[0]->link,
262 'http://www.flickr.com/photos/zcopley/4452933806/'
265 $this->assertEquals($act->objects[1]->type, ActivityObject::PHOTO);
266 $this->assertEquals($act->objects[1]->title, 'IMG_1365');
267 $this->assertNull($act->objects[1]->description);
269 $act->objects[1]->thumbnail,
270 'http://media.cliqset.com/b8f3932cd0bba1b27f7c8b3ef986915e_thumb.jpg'
273 $act->objects[1]->link,
274 'http://www.flickr.com/photos/zcopley/4442630390/'
277 $this->assertEquals($act->objects[2]->type, ActivityObject::PHOTO);
278 $this->assertEquals($act->objects[2]->title, 'Classic');
280 $act->objects[2]->description,
281 '-Powered by pikchur.com/n0u'
284 $act->objects[2]->thumbnail,
285 'http://media.cliqset.com/fc54c15f850b7a9a8efa644087a48c91_thumb.jpg'
288 $act->objects[2]->link,
289 'http://www.flickr.com/photos/zcopley/4430754103/'
292 $this->assertEquals($act->objects[3]->type, ActivityObject::PHOTO);
293 $this->assertEquals($act->objects[3]->title, 'IMG_1363');
294 $this->assertNull($act->objects[3]->description);
297 $act->objects[3]->thumbnail,
298 'http://media.cliqset.com/4b1d307c9217e2114391a8b229d612cb_thumb.jpg'
301 $act->objects[3]->link,
302 'http://www.flickr.com/photos/zcopley/4416969717/'
305 $this->assertEquals($act->objects[4]->type, ActivityObject::PHOTO);
306 $this->assertEquals($act->objects[4]->title, 'IMG_1361');
307 $this->assertNull($act->objects[4]->description);
310 $act->objects[4]->thumbnail,
311 'http://media.cliqset.com/23d9b4b96b286e0347d36052f22f6e60_thumb.jpg'
314 $act->objects[4]->link,
315 'http://www.flickr.com/photos/zcopley/4417734232/'
320 public function testAtomContent()
322 $tests = array(array("<content>Some regular plain text.</content>",
323 "Some regular plain text."),
324 array("<content><b>this is not HTML</b></content>",
325 "<b>this is not HTML</b>"),
326 array("<content type='html'>Some regular plain HTML.</content>",
327 "Some regular plain HTML."),
328 array("<content type='html'><b>this is too HTML</b></content>",
329 "<b>this is too HTML</b>"),
330 array("<content type='html'>&lt;b&gt;but this is not HTML!&lt;/b&gt;</content>",
331 "<b>but this is not HTML!</b>"),
332 array("<content type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'>Some regular plain XHTML.</div></content>",
333 "Some regular plain XHTML."),
334 array("<content type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'><b>This is some XHTML!</b></div></content>",
335 "<b>This is some XHTML!</b>"),
336 array("<content type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'><b>This is not some XHTML!</b></div></content>",
337 "<b>This is not some XHTML!</b>"),
338 array("<content type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'>&lt;b&gt;This is not some XHTML either!&lt;/b&gt;</div></content>",
339 "&lt;b&gt;This is not some XHTML either!&lt;/b&gt;"));
340 foreach ($tests as $data) {
341 list($source, $output) = $data;
342 $xml = "<entry xmlns='http://www.w3.org/2005/Atom'>" .
343 "<id>http://example.com/fakeid</id>" .
344 "<author><name>Test</name></author>" .
345 "<title>Atom content tests</title>" .
348 $dom = DOMDocument::loadXML($xml);
349 $act = new Activity($dom->documentElement);
351 $this->assertFalse(empty($act));
352 $this->assertEquals($output, trim($act->content));
356 public function testRssContent()
358 $tests = array(array("<content:encoded>Some regular plain HTML.</content:encoded>",
359 "Some regular plain HTML."),
360 array("<content:encoded>Some <b>exciting bold HTML</b></content:encoded>",
361 "Some <b>exciting bold HTML</b>"),
362 array("<content:encoded>Some &lt;b&gt;escaped non-HTML.&lt;/b&gt;</content:encoded>",
363 "Some <b>escaped non-HTML.</b>"),
364 array("<description>Some plain text.</description>",
366 array("<description>Some <b>non-HTML text</b></description>",
367 "Some <b>non-HTML text</b>"),
368 array("<description>Some &lt;b&gt;double-escaped text&lt;/b&gt;</description>",
369 "Some &lt;b&gt;double-escaped text&lt;/b&gt;"));
370 foreach ($tests as $data) {
371 list($source, $output) = $data;
372 $xml = "<item xmlns:content='http://purl.org/rss/1.0/modules/content/'>" .
373 "<guid>http://example.com/fakeid</guid>" .
374 "<title>RSS content tests</title>" .
377 $dom = DOMDocument::loadXML($xml);
378 $act = new Activity($dom->documentElement);
380 $this->assertFalse(empty($act));
381 $this->assertEquals($output, trim($act->content));
385 public function testExample10()
388 $dom = new DOMDocument();
389 $dom->loadXML($_example10);
391 // example 10 is a PuSH item of a post on a group feed, as generated
392 // by 0.9.7 code after migration away from <activity:actor> to <author>
393 $feed = $dom->documentElement;
394 $entry = $dom->getElementsByTagName('entry')->item(0);
395 $expected = 'http://lazarus.local/mublog/user/557';
397 // Reading just the entry alone should pick up its own <author>
399 $act = new Activity($entry);
400 $this->assertEquals($act->actor->id, $expected);
402 // Reading the entry in feed context used to be buggy, picking up
403 // the feed's <activity:subject> which referred to the group.
404 // It should now be returning the expected author entry...
405 $act = new Activity($entry, $feed);
406 $this->assertEquals($act->actor->id, $expected);
409 public function testBookmarkRelated()
412 $dom = new DOMDocument();
413 $dom->loadXML($_example11);
415 $feed = $dom->documentElement;
416 $entry = $dom->getElementsByTagName('entry')->item(0);
418 $expected = 'http://blog.teambox.com/open-source-companies';
420 $links = ActivityUtils::getLinks($entry, 'related');
422 $this->assertFalse(empty($links));
423 $this->assertTrue(is_array($links));
424 $this->assertEquals(count($links), 1);
426 $url = $links[0]->getAttribute('href');
428 $this->assertEquals($url, $expected);
432 $_example1 = <<<EXAMPLE1
433 <?xml version='1.0' encoding='UTF-8'?>
434 <entry xmlns='http://www.w3.org/2005/Atom' xmlns:activity='http://activitystrea.ms/spec/1.0/'>
435 <id>tag:versioncentral.example.org,2009:/commit/1643245</id>
436 <published>2009-06-01T12:54:00Z</published>
437 <title>Geraldine committed a change to yate</title>
438 <content type="xhtml">Geraldine just committed a change to yate on VersionCentral</content>
439 <link rel="alternate" type="text/html"
440 href="http://versioncentral.example.org/geraldine/yate/commit/1643245" />
441 <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
442 <activity:verb>http://versioncentral.example.org/activity/commit</activity:verb>
444 <activity:object-type>http://versioncentral.example.org/activity/changeset</activity:object-type>
445 <id>tag:versioncentral.example.org,2009:/change/1643245</id>
446 <title>Punctuation Changeset</title>
447 <summary>Fixing punctuation because it makes it more readable.</summary>
448 <link rel="alternate" type="text/html" href="..." />
453 $_example2 = <<<EXAMPLE2
454 <?xml version='1.0' encoding='UTF-8'?>
455 <entry xmlns='http://www.w3.org/2005/Atom' xmlns:activity='http://activitystrea.ms/spec/1.0/'>
456 <id>tag:photopanic.example.com,2008:activity01</id>
457 <title>Geraldine posted a Photo on PhotoPanic</title>
458 <published>2008-11-02T15:29:00Z</published>
459 <link rel="alternate" type="text/html" href="/geraldine/activities/1" />
461 http://activitystrea.ms/schema/1.0/post
464 <id>tag:photopanic.example.com,2008:photo01</id>
465 <title>My Cat</title>
466 <published>2008-11-02T15:29:00Z</published>
467 <link rel="alternate" type="text/html" href="/geraldine/photos/1" />
468 <activity:object-type>
469 tag:atomactivity.example.com,2008:photo
470 </activity:object-type>
472 <title>Geraldine's Photos</title>
473 <link rel="self" type="application/atom+xml" href="/geraldine/photofeed.xml" />
474 <link rel="alternate" type="text/html" href="/geraldine/" />
477 <content type="html">
478 <p>Geraldine posted a Photo on PhotoPanic</p>
479 <img src="/geraldine/photo1.jpg">
484 $_example3 = <<<EXAMPLE3
485 <?xml version="1.0" encoding="utf-8"?>
487 <feed xmlns="http://www.w3.org/2005/Atom">
489 <title>Example Feed</title>
490 <subtitle>A subtitle.</subtitle>
491 <link href="http://example.org/feed/" rel="self" />
492 <link href="http://example.org/" />
493 <id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>
494 <updated>2003-12-13T18:30:02Z</updated>
496 <name>John Doe</name>
497 <email>johndoe@example.com</email>
501 <title>Atom-Powered Robots Run Amok</title>
502 <link href="http://example.org/2003/12/13/atom03" />
503 <link rel="alternate" type="text/html" href="http://example.org/2003/12/13/atom03.html"/>
504 <link rel="edit" href="http://example.org/2003/12/13/atom03/edit"/>
505 <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
506 <updated>2003-12-13T18:30:02Z</updated>
507 <summary>Some text.</summary>
513 $_example4 = <<<EXAMPLE4
514 <?xml version='1.0' encoding='UTF-8'?>
515 <entry xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:ostatus="http://ostatus.org/schema/1.0">
516 <title>@evan now is the time for all good men to come to the aid of their country. #thetime</title>
517 <summary>@evan now is the time for all good men to come to the aid of their country. #thetime</summary>
520 <uri>http://example.net/user/2</uri>
523 <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
524 <id>http://example.net/user/2</id>
526 <link type="image/png" rel="avatar" href="http://example.net/theme/identica/default-avatar-profile.png"></link>
528 <link rel="alternate" type="text/html" href="http://example.net/notice/14"/>
529 <id>http://example.net/notice/14</id>
530 <published>2010-02-19T02:52:38+00:00</published>
531 <updated>2010-02-19T02:52:38+00:00</updated>
532 <link rel="related" href="http://example.net/notice/12"/>
533 <thr:in-reply-to ref="http://example.net/notice/12" href="http://example.net/notice/12"></thr:in-reply-to>
534 <link rel="ostatus:conversation" href="http://example.net/conversation/11"/>
535 <link rel="ostatus:attention" href="http://example.net/user/1"/>
536 <content type="html">@<span class="vcard"><a href="http://example.net/user/1" class="url"><span class="fn nickname">evan</span></a></span> now is the time for all good men to come to the aid of their country. #<span class="tag"><a href="http://example.net/tag/thetime" rel="tag">thetime</a></span></content>
537 <category term="thetime"></category>
541 $_example5 = <<<EXAMPLE5
542 <?xml version="1.0" encoding="UTF-8"?>
543 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:poco="http://portablecontacts.net/spec/1.0" xmlns:ostatus="http://ostatus.org/schema/1.0">
545 <title>testuser timeline</title>
546 <subtitle>Updates from testuser on Zach Dev!</subtitle>
547 <logo>http://example.net/mysite/avatar/3-96-20100224004207.jpeg</logo>
548 <updated>2010-02-24T06:38:49+00:00</updated>
550 <name>testuser</name>
551 <uri>http://example.net/mysite/user/3</uri>
554 <link href="http://example.net/mysite/testuser" rel="alternate" type="text/html"/>
555 <link href="http://example.net/mysite/api/statuses/user_timeline/3.atom" rel="self" type="application/atom+xml"/>
556 <link href="http://example.net/mysite/main/sup#3" rel="http://api.friendfeed.com/2008/03#sup" type="application/json"/>
557 <link href="http://example.net/mysite/main/push/hub" rel="hub"/>
558 <link href="http://example.net/mysite/main/salmon/user/3" rel="salmon"/>
560 <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
561 <id>http://example.net/mysite/user/3</id>
562 <title>Test User</title>
563 <link rel="alternate" type="text/html" href="http://example.net/mysite/testuser"/>
564 <link type="image/jpeg" rel="avatar" href="http://example.net/mysite/avatar/3-96-20100224004207.jpeg"/>
565 <georss:point>37.7749295 -122.4194155</georss:point>
567 <poco:preferredUsername>testuser</poco:preferredUsername>
568 <poco:displayName>Test User</poco:displayName>
569 <poco:note>Just another test user.</poco:note>
571 <poco:formatted>San Francisco, CA</poco:formatted>
574 <poco:type>homepage</poco:type>
575 <poco:value>http://example.com/blog.html</poco:value>
576 <poco:primary>true</poco:primary>
581 <title>Hey man, is that Freedom Code?! #freedom #hippy</title>
582 <summary>Hey man, is that Freedom Code?! #freedom #hippy</summary>
584 <name>testuser</name>
585 <uri>http://example.net/mysite/user/3</uri>
588 <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
589 <id>http://example.net/mysite/user/3</id>
590 <title>Test User</title>
591 <link rel="alternate" type="text/html" href="http://example.net/mysite/testuser"/>
592 <link type="image/jpeg" rel="avatar" href="http://example.net/mysite/avatar/3-96-20100224004207.jpeg"/>
593 <georss:point>37.7749295 -122.4194155</georss:point>
595 <poco:preferredUsername>testuser</poco:preferredUsername>
596 <poco:displayName>Test User</poco:displayName>
597 <poco:note>Just another test user.</poco:note>
599 <poco:formatted>San Francisco, CA</poco:formatted>
602 <poco:type>homepage</poco:type>
603 <poco:value>http://example.com/blog.html</poco:value>
604 <poco:primary>true</poco:primary>
608 <link rel="alternate" type="text/html" href="http://example.net/mysite/notice/7"/>
609 <id>http://example.net/mysite/notice/7</id>
610 <published>2010-02-24T00:53:06+00:00</published>
611 <updated>2010-02-24T00:53:06+00:00</updated>
612 <link rel="ostatus:conversation" href="http://example.net/mysite/conversation/7"/>
613 <content type="html">Hey man, is that Freedom Code?! #<span class="tag"><a href="http://example.net/mysite/tag/freedom" rel="tag">freedom</a></span> #<span class="tag"><a href="http://example.net/mysite/tag/hippy" rel="tag">hippy</a></span></content>
614 <georss:point>37.8313160 -122.2852473</georss:point>
620 $_example6 = <<<EXAMPLE6
621 <?xml version="1.0" encoding="UTF-8"?>
623 xmlns:content="http://purl.org/rss/1.0/modules/content/"
624 xmlns:wfw="http://wellformedweb.org/CommentAPI/"
625 xmlns:dc="http://purl.org/dc/elements/1.1/"
626 xmlns:atom="http://www.w3.org/2005/Atom"
627 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
628 xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
629 xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
633 <title>WordPress.com News</title>
634 <atom:link href="http://en.blog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
635 <link>http://en.blog.wordpress.com</link>
636 <description>The latest news on WordPress.com and the WordPress community.</description>
637 <lastBuildDate>Thu, 18 Mar 2010 23:25:35 +0000</lastBuildDate>
639 <generator>http://wordpress.com/</generator>
640 <language>en</language>
641 <sy:updatePeriod>hourly</sy:updatePeriod>
642 <sy:updateFrequency>1</sy:updateFrequency>
643 <cloud domain='en.blog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
645 <url>http://www.gravatar.com/blavatar/e6392390e3bcfadff3671c5a5653d95b?s=96&d=http://s2.wp.com/i/buttonw-com.png</url>
646 <title>WordPress.com News</title>
647 <link>http://en.blog.wordpress.com</link>
649 <atom:link rel="search" type="application/opensearchdescription+xml" href="http://en.blog.wordpress.com/osd.xml" title="WordPress.com News" />
650 <atom:link rel='hub' href='http://en.blog.wordpress.com/?pushpress=hub'/>
653 <title>Rub-a-Dub-Dub in the PubSubHubbub</title>
654 <link>http://en.blog.wordpress.com/2010/03/03/rub-a-dub-dub-in-the-pubsubhubbub/</link>
655 <comments>http://en.blog.wordpress.com/2010/03/03/rub-a-dub-dub-in-the-pubsubhubbub/#comments</comments>
656 <pubDate>Wed, 03 Mar 2010 16:48:12 +0000</pubDate>
657 <dc:creator>Joseph Scott</dc:creator>
659 <category><![CDATA[Feeds]]></category>
660 <category><![CDATA[atom]]></category>
661 <category><![CDATA[pubsubhubbub]]></category>
662 <category><![CDATA[rss]]></category>
664 <guid isPermaLink="false">http://en.blog.wordpress.com/?p=3857</guid>
665 <description><![CDATA[From the tongue twisting name department we welcome PubSubHubbub, or as some people have shortened it to: PuSH. Like rssCloud, PuSH is a way for services that subscribe to updates from your blog (think Google Reader, Bloglines or Netvibes) to get updates even faster. In a nutshell, instead of having to periodically ask [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=en.blog.wordpress.com&blog=3584907&post=3857&subd=en.blog&ref=&feed=1" />]]></description>
666 <content:encoded><![CDATA[<p>From the tongue twisting name department we welcome <a href="http://code.google.com/p/pubsubhubbub/">PubSubHubbub</a>, or as some people have shortened it to: PuSH. Like <a href="http://en.blog.wordpress.com/2009/09/07/rss-in-the-clouds/">rssCloud</a>, PuSH is a way for services that subscribe to updates from your blog (think Google Reader, Bloglines or Netvibes) to get updates even faster. In a nutshell, instead of having to periodically ask your blog if there are any updates they can now register to automatically receive updates each time you publish new content. In most cases these updates are sent out within a second or two of when you hit the publish button.</p>
667 <p>Today we’ve turned on PuSH support for the more than 10.5 million blogs on WordPress.com. There’s nothing to configure, it’s working right now behind the scenes to help others keep up to date with your posts.</p>
668 <p>For those using the WordPress.org software we are releasing a new PuSH plugin: <a href="http://wordpress.org/extend/plugins/pushpress/">PuSHPress</a>. This plugin differs from the current PuSH related plugins by including a built-in hub.</p>
669 <p>For more PuSH related reading check out the <a href="http://code.google.com/p/pubsubhubbub/">PubSubHubbub project site</a> and <a href="http://groups.google.com/group/pubsubhubbub?pli=1">Google Group</a>. And if you really want to geek out there’s always the <a href="http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.3.html">PubSubHubbub Spec</a> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
670 <br /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/en.blog.wordpress.com/3857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/en.blog.wordpress.com/3857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/en.blog.wordpress.com/3857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/en.blog.wordpress.com/3857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/en.blog.wordpress.com/3857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/en.blog.wordpress.com/3857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/en.blog.wordpress.com/3857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/en.blog.wordpress.com/3857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/en.blog.wordpress.com/3857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/en.blog.wordpress.com/3857/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=en.blog.wordpress.com&blog=3584907&post=3857&subd=en.blog&ref=&feed=1" />]]></content:encoded>
671 <wfw:commentRss>http://en.blog.wordpress.com/2010/03/03/rub-a-dub-dub-in-the-pubsubhubbub/feed/</wfw:commentRss>
673 <slash:comments>96</slash:comments>
675 <media:content url="http://1.gravatar.com/avatar/582b66ad5ae1b69c7601a990cb9a661a?s=96&d=identicon" medium="image">
676 <media:title type="html">josephscott</media:title>
683 $_example7 = <<<EXAMPLE7
684 <?xml version="1.0" encoding="UTF-8"?>
685 <rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:posterous="http://posterous.com/help/rss/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
687 <title>evanpro's posterous</title>
688 <link>http://evanpro.posterous.com</link>
689 <description>Most recent posts at evanpro's posterous</description>
690 <generator>posterous.com</generator>
691 <link type="application/json" xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://posterous.com/api/sup_update#56bcc5eb7"/>
692 <atom:link rel="self" href="http://evanpro.posterous.com/rss.xml"/>
693 <atom:link rel="hub" href="http://posterous.superfeedr.com"/>
695 <pubDate>Sat, 20 Mar 2010 07:32:31 -0700</pubDate>
696 <title>Checking out captain bones</title>
697 <link>http://evanpro.posterous.com/checking-out-captain-bones</link>
698 <guid>http://evanpro.posterous.com/checking-out-captain-bones</guid>
705 <p><a href="http://evanpro.posterous.com/checking-out-captain-bones">Permalink</a>
707 | <a href="http://evanpro.posterous.com/checking-out-captain-bones#comment">Leave a comment »</a>
712 <posterous:userImage>http://files.posterous.com/user_profile_pics/480326/2009-08-05-142447.jpg</posterous:userImage>
713 <posterous:profileUrl>http://posterous.com/people/3sDslhaepotz</posterous:profileUrl>
714 <posterous:firstName>Evan</posterous:firstName>
715 <posterous:lastnNme>Prodromou</posterous:lastnNme>
716 <posterous:nickName>evanpro</posterous:nickName>
717 <posterous:displayName>Evan Prodromou</posterous:displayName>
724 $_example8 = <<<EXAMPLE8
725 <?xml version="1.0"?>
726 <feed xmlns="http://www.w3.org/2005/Atom">
727 <link href="http://pubsubhubbub.appspot.com/" rel="hub"/>
728 <title type="text">Activity Stream for: zcopley</title>
729 <id>http://cliqset.com/feed/atom?uid=zcopley</id>
730 <entry xmlns:service="http://activitystrea.ms/service-provider" xmlns:activity="http://activitystrea.ms/spec/1.0/">
731 <thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total>
732 <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
733 <published>2010-03-22T01:35:53.000Z</published>
736 <uri>http://flickr.com</uri>
737 <icon>http://cliqset-services.s3.amazonaws.com/flickr.png</icon>
740 <activity:object-type>http://activitystrea.ms/schema/1.0/photo</activity:object-type>
741 <title type="text">IMG_1368</title>
742 <link type="image/jpeg" rel="preview" href="http://media.cliqset.com/6f6fbee9d7dfbffc73b6ef626275eb5f_thumb.jpg"/>
743 <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/zcopley/4452933806/"/>
746 <activity:object-type>http://activitystrea.ms/schema/1.0/photo</activity:object-type>
747 <title type="text">IMG_1365</title>
748 <link type="image/jpeg" rel="preview" href="http://media.cliqset.com/b8f3932cd0bba1b27f7c8b3ef986915e_thumb.jpg"/>
749 <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/zcopley/4442630390/"/>
751 <activity:object xmlns:media="http://purl.org/syndication/atommedia">
752 <activity:object-type>http://activitystrea.ms/schema/1.0/photo</activity:object-type>
753 <title type="text">Classic</title>
754 <link type="image/jpeg" rel="preview" href="http://media.cliqset.com/fc54c15f850b7a9a8efa644087a48c91_thumb.jpg"/>
755 <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/zcopley/4430754103/"/>
756 <media:description type="text">-Powered by pikchur.com/n0u</media:description>
759 <activity:object-type>http://activitystrea.ms/schema/1.0/photo</activity:object-type>
760 <title type="text">IMG_1363</title>
761 <link type="image/jpeg" rel="preview" href="http://media.cliqset.com/4b1d307c9217e2114391a8b229d612cb_thumb.jpg"/>
762 <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/zcopley/4416969717/"/>
765 <activity:object-type>http://activitystrea.ms/schema/1.0/photo</activity:object-type>
766 <title type="text">IMG_1361</title>
767 <link type="image/jpeg" rel="preview" href="http://media.cliqset.com/23d9b4b96b286e0347d36052f22f6e60_thumb.jpg"/>
768 <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/zcopley/4417734232/"/>
770 <title type="text">zcopley posted some photos on Flickr</title>
771 <summary type="text">zcopley posted 5 photos on Flickr</summary>
772 <category scheme="http://schemas.cliqset.com/activity/categories/1.0" term="PhotoPosted" label="Photo Posted"/>
773 <updated>2010-03-22T20:46:42.778Z</updated>
774 <id>tag:cliqset.com,2010-03-22:/user/zcopley/SVgAZubGhtAnSAee</id>
775 <link href="http://cliqset.com/user/zcopley/SVgAZubGhtAnSAee" type="text/xhtml" rel="alternate" title="zcopley posted some photos on Flickr"/>
778 <uri>http://cliqset.com/user/zcopley</uri>
780 <activity:actor xmlns:poco="http://portablecontacts.net/spec/1.0">
781 <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
784 <poco:givenName>Zach</poco:givenName>
785 <poco:familyName>Copley</poco:familyName>
787 <link xmlns:media="http://purl.org/syndication/atommedia" type="image/png" rel="avatar" href="http://dynamic.cliqset.com/avatar/zcopley?s=80" media:height="80" media:width="80"/>
788 <link xmlns:media="http://purl.org/syndication/atommedia" type="image/png" rel="avatar" href="http://dynamic.cliqset.com/avatar/zcopley?s=120" media:height="120" media:width="120"/>
789 <link xmlns:media="http://purl.org/syndication/atommedia" type="image/png" rel="avatar" href="http://dynamic.cliqset.com/avatar/zcopley?s=200" media:height="200" media:width="200"/>
795 $_example9 = <<<EXAMPLE9
796 <?xml version="1.0" encoding="utf-8"?>
797 <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/">
798 <link rel="self" type="application/atom+xml" href="http://buzz.googleapis.com/feeds/117848251937215158042/public/posted"/>
799 <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
800 <title type="text">Google Buzz</title>
801 <updated>2010-03-22T01:55:53.596Z</updated>
802 <id>tag:google.com,2009:buzz-feed/public/posted/117848251937215158042</id>
803 <generator>Google - Google Buzz</generator>
805 <title type="html">Buzz by Zach Copley from Flickr</title>
806 <summary type="text">IMG_1366</summary>
807 <published>2010-03-18T04:29:23.000Z</published>
808 <updated>2010-03-18T05:14:03.325Z</updated>
809 <id>tag:google.com,2009:buzz/z12zwdhxowq2d13q204cjr04kzu0cns5gh0</id>
810 <link rel="alternate" type="text/html" href="http://www.google.com/buzz/117848251937215158042/ZU7b6mHJEmC/IMG-1366"/>
812 <name>Zach Copley</name>
813 <uri>http://www.google.com/profiles/zcopley</uri>
815 <content type="html"><div>IMG_1366</div></content>
816 <link rel="enclosure" href="http://www.flickr.com/photos/22823034@N00/4442630700" type="image/jpeg" title="IMG_1366"/>
817 <media:content url="http://www.flickr.com/photos/22823034@N00/4442630700" type="image/jpeg" medium="image">
818 <media:title>IMG_1366</media:title>
819 <media:player url="http://farm5.static.flickr.com/4053/4442630700_980b19a1a6_o.jpg" height="1600" width="1200"/>
821 <link rel="enclosure" href="http://www.flickr.com/photos/22823034@N00/4442630390" type="image/jpeg" title="IMG_1365"/>
822 <media:content url="http://www.flickr.com/photos/22823034@N00/4442630390" type="image/jpeg" medium="image">
823 <media:title>IMG_1365</media:title>
824 <media:player url="http://farm5.static.flickr.com/4043/4442630390_62da5560ae_o.jpg" height="1200" width="1600"/>
826 <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
828 <activity:object-type>http://activitystrea.ms/schema/1.0/photo</activity:object-type>
829 <id>tag:google.com,2009:buzz/z12zwdhxowq2d13q204cjr04kzu0cns5gh0</id>
830 <title>Buzz by Zach Copley from Flickr</title>
831 <content type="html"><div>IMG_1366</div></content>
832 <link rel="enclosure" href="http://www.flickr.com/photos/22823034@N00/4442630700" type="image/jpeg" title="IMG_1366"/>
833 <link rel="enclosure" href="http://www.flickr.com/photos/22823034@N00/4442630390" type="image/jpeg" title="IMG_1365"/>
835 <link rel="replies" type="application/atom+xml" href="http://buzz.googleapis.com/feeds/117848251937215158042/comments/z12zwdhxowq2d13q204cjr04kzu0cns5gh0" thr:count="0"/>
836 <thr:total>0</thr:total>
841 // Sample PuSH entry from a group feed in 0.9.7
842 // Old <activity:actor> has been removed from entries in this version.
843 // A bug in the order of input processing meant that we were incorrectly
844 // reading the feed's <activity:subject> instead of the entry's <author>,
845 // causing the entry to get rejected as malformed (groups can't post on
846 // their own; we want to see the actual author's info here).
847 $_example10 = <<<EXAMPLE10
848 <?xml version="1.0" encoding="UTF-8"?>
849 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:media="http://purl.org/syndication/atommedia" xmlns:poco="http://portablecontacts.net/spec/1.0" xmlns:ostatus="http://ostatus.org/schema/1.0" xmlns:statusnet="http://status.net/schema/api/1/">
850 <generator uri="http://status.net" version="0.9.7alpha1">StatusNet</generator>
851 <id>http://lazarus.local/mublog/api/statusnet/groups/timeline/22.atom</id>
852 <title>grouptest316173 timeline</title>
853 <subtitle>Updates from grouptest316173 on Blaguette!</subtitle>
854 <logo>http://lazarus.local/mublog/theme/default/default-avatar-profile.png</logo>
855 <updated>2011-01-06T22:44:18+00:00</updated>
857 <activity:object-type>http://activitystrea.ms/schema/1.0/group</activity:object-type>
858 <uri>http://lazarus.local/mublog/group/22/id</uri>
859 <name>grouptest316173</name>
860 <link rel="alternate" type="text/html" href="http://lazarus.local/mublog/group/22/id"/>
861 <link rel="avatar" type="image/png" media:width="96" media:height="96" href="http://lazarus.local/mublog/theme/default/default-avatar-profile.png"/>
862 <link rel="avatar" type="image/png" media:width="48" media:height="48" href="http://lazarus.local/mublog/theme/default/default-avatar-stream.png"/>
863 <link rel="avatar" type="image/png" media:width="24" media:height="24" href="http://lazarus.local/mublog/theme/default/default-avatar-mini.png"/>
864 <poco:preferredUsername>grouptest316173</poco:preferredUsername>
865 <poco:displayName>grouptest316173</poco:displayName>
868 <activity:object-type>http://activitystrea.ms/schema/1.0/group</activity:object-type>
869 <id>http://lazarus.local/mublog/group/22/id</id>
870 <title>grouptest316173</title>
871 <link rel="alternate" type="text/html" href="http://lazarus.local/mublog/group/22/id"/>
872 <link rel="avatar" type="image/png" media:width="96" media:height="96" href="http://lazarus.local/mublog/theme/default/default-avatar-profile.png"/>
873 <link rel="avatar" type="image/png" media:width="48" media:height="48" href="http://lazarus.local/mublog/theme/default/default-avatar-stream.png"/>
874 <link rel="avatar" type="image/png" media:width="24" media:height="24" href="http://lazarus.local/mublog/theme/default/default-avatar-mini.png"/>
875 <poco:preferredUsername>grouptest316173</poco:preferredUsername>
876 <poco:displayName>grouptest316173</poco:displayName>
878 <link href="http://lazarus.local/mublog/group/grouptest316173" rel="alternate" type="text/html"/>
879 <link href="http://lazarus.local/mublog/main/push/hub" rel="hub"/>
880 <link href="http://lazarus.local/mublog/main/salmon/group/22" rel="salmon"/>
881 <link href="http://lazarus.local/mublog/main/salmon/group/22" rel="http://salmon-protocol.org/ns/salmon-replies"/>
882 <link href="http://lazarus.local/mublog/main/salmon/group/22" rel="http://salmon-protocol.org/ns/salmon-mention"/>
883 <link href="http://lazarus.local/mublog/api/statusnet/groups/timeline/22.atom" rel="self" type="application/atom+xml"/>
884 <statusnet:group_info member_count="2"></statusnet:group_info>
886 <activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
887 <id>http://lazarus.local/mublog/notice/1243</id>
888 <title>Group post from local to !grouptest316173, should go out over push.</title>
889 <content type="html">Group post from local to !<span class="vcard"><a href="http://lazarus.local/mublog/group/22/id" class="url"><span class="fn nickname">grouptest316173</span></a></span>, should go out over push.</content>
890 <link rel="alternate" type="text/html" href="http://lazarus.local/mublog/notice/1243"/>
891 <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
892 <published>2011-01-06T22:44:18+00:00</published>
893 <updated>2011-01-06T22:44:18+00:00</updated>
895 <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
896 <uri>http://lazarus.local/mublog/user/557</uri>
897 <name>Pubtest316173 Smith</name>
898 <link rel="alternate" type="text/html" href="http://lazarus.local/mublog/pubtest316173"/>
899 <link rel="avatar" type="image/png" media:width="96" media:height="96" href="http://lazarus.local/mublog/theme/default/default-avatar-profile.png"/>
900 <link rel="avatar" type="image/png" media:width="48" media:height="48" href="http://lazarus.local/mublog/theme/default/default-avatar-stream.png"/>
901 <link rel="avatar" type="image/png" media:width="24" media:height="24" href="http://lazarus.local/mublog/theme/default/default-avatar-mini.png"/>
902 <poco:preferredUsername>pubtest316173</poco:preferredUsername>
903 <poco:displayName>Pubtest316173 Smith</poco:displayName>
904 <poco:note>Stub account for OStatus tests.</poco:note>
906 <poco:type>homepage</poco:type>
907 <poco:value>http://example.org/pubtest316173</poco:value>
908 <poco:primary>true</poco:primary>
911 <link rel="ostatus:conversation" href="http://lazarus.local/mublog/conversation/1131"/>
912 <link rel="ostatus:attention" href="http://lazarus.local/mublog/group/22/id"/>
913 <link rel="mentioned" href="http://lazarus.local/mublog/group/22/id"/>
914 <category term="grouptest316173"></category>
916 <id>http://lazarus.local/mublog/api/statuses/user_timeline/557.atom</id>
917 <title>Pubtest316173 Smith</title>
918 <link rel="alternate" type="text/html" href="http://lazarus.local/mublog/pubtest316173"/>
919 <link rel="self" type="application/atom+xml" href="http://lazarus.local/mublog/api/statuses/user_timeline/557.atom"/>
920 <link rel="license" href="http://creativecommons.org/licenses/by/3.0/"/>
921 <icon>http://lazarus.local/mublog/theme/default/default-avatar-profile.png</icon>
922 <updated>2011-01-06T22:44:18+00:00</updated>
924 <link rel="self" type="application/atom+xml" href="http://lazarus.local/mublog/api/statuses/show/1243.atom"/>
925 <link rel="edit" type="application/atom+xml" href="http://lazarus.local/mublog/api/statuses/show/1243.atom"/>
926 <statusnet:notice_info local_id="1243" source="api"></statusnet:notice_info>
931 $_example11 = <<<EXAMPLE11
932 <?xml version="1.0" encoding="UTF-8"?>
933 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:media="http://purl.org/syndication/atommedia" xmlns:poco="http://portablecontacts.net/spec/1.0" xmlns:ostatus="http://ostatus.org/schema/1.0" xmlns:statusnet="http://status.net/schema/api/1/">
934 <generator uri="http://status.net" version="0.9.7">StatusNet</generator>
935 <id>http://freelish.us/api/statuses/user_timeline/1.atom</id>
936 <title>demon timeline</title>
937 <subtitle>Updates from demon on freelish.us!</subtitle>
938 <logo>http://avatar.status.net/f/freelishus/1-96-20110331163048.jpeg</logo>
939 <updated>2011-05-30T09:36:03-04:00</updated>
941 <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
942 <uri>http://freelishus.status.net/user/1</uri>
944 <link rel="alternate" type="text/html" href="http://freelish.us/demon"/>
945 <link rel="avatar" type="image/jpeg" media:width="192" media:height="192" href="http://avatar.status.net/f/freelishus/1-192-20110331163048.jpeg"/>
946 <link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="http://avatar.status.net/f/freelishus/1-96-20110331163048.jpeg"/>
947 <link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="http://avatar.status.net/f/freelishus/1-48-20110331163048.jpeg"/>
948 <link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="http://avatar.status.net/f/freelishus/1-24-20110331163049.jpeg"/>
949 <georss:point>45.50884 -73.58781</georss:point>
950 <poco:preferredUsername>demon</poco:preferredUsername>
951 <poco:displayName>Evan Prodromou</poco:displayName>
952 <poco:note>Montreal hacker and entrepreneur.</poco:note>
954 <poco:formatted>Montreal, Quebec</poco:formatted>
958 <poco:type>homepage</poco:type>
959 <poco:value>http://evan.status.net/</poco:value>
960 <poco:primary>true</poco:primary>
962 <statusnet:profile_info local_id="1"></statusnet:profile_info>
964 <!--Deprecation warning: activity:subject is present only for backward compatibility. It will be removed in the next version of StatusNet.-->
966 <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
967 <id>http://freelishus.status.net/user/1</id>
968 <title>Evan Prodromou</title>
969 <link rel="alternate" type="text/html" href="http://freelish.us/demon"/>
970 <link rel="avatar" type="image/jpeg" media:width="192" media:height="192" href="http://avatar.status.net/f/freelishus/1-192-20110331163048.jpeg"/>
971 <link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="http://avatar.status.net/f/freelishus/1-96-20110331163048.jpeg"/>
972 <link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="http://avatar.status.net/f/freelishus/1-48-20110331163048.jpeg"/>
973 <link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="http://avatar.status.net/f/freelishus/1-24-20110331163049.jpeg"/>
974 <georss:point>45.50884 -73.58781</georss:point>
975 <poco:preferredUsername>demon</poco:preferredUsername>
976 <poco:displayName>Evan Prodromou</poco:displayName>
977 <poco:note>Montreal hacker and entrepreneur.</poco:note>
979 <poco:formatted>Montreal, Quebec</poco:formatted>
983 <poco:type>homepage</poco:type>
984 <poco:value>http://evan.status.net/</poco:value>
985 <poco:primary>true</poco:primary>
987 <statusnet:profile_info local_id="1"></statusnet:profile_info>
989 <link href="http://freelish.us/demon" rel="alternate" type="text/html"/>
990 <link href="http://freelish.us/main/sup#1" rel="http://api.friendfeed.com/2008/03#sup" type="application/json"/>
991 <link href="http://freelish.us/api/statuses/user_timeline/1.atom?max_id=13210408" rel="next" type="application/atom+xml"/>
992 <link href="http://freelish.us/main/push/hub" rel="hub"/>
993 <link href="http://freelish.us/main/salmon/user/1" rel="salmon"/>
994 <link href="http://freelish.us/main/salmon/user/1" rel="http://salmon-protocol.org/ns/salmon-replies"/>
995 <link href="http://freelish.us/main/salmon/user/1" rel="http://salmon-protocol.org/ns/salmon-mention"/>
996 <link href="http://freelish.us/api/statuses/user_timeline/1.atom" rel="self" type="application/atom+xml"/>
999 <activity:object-type>http://activitystrea.ms/schema/1.0/bookmark</activity:object-type>
1000 <id>http://freelish.us/bookmark/9e930c3e-7ed9-47de-aba5-df6c60cec542</id>
1001 <title>Why you should build an open-source startup | Teambox Blog</title>
1002 <link rel="alternate" type="text/html" href="http://freelish.us/bookmark/9e930c3e-7ed9-47de-aba5-df6c60cec542"/>
1003 <link rel="related" href="http://blog.teambox.com/open-source-companies"/>
1004 <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
1005 <published>2011-05-26T20:36:25+00:00</published>
1006 <updated>2011-05-26T20:36:25+00:00</updated>
1007 <link rel="ostatus:conversation" href="http://freelish.us/conversation/13835232"/>
1008 <category term="opensource"></category>
1009 <category term="startup"></category>
1010 <link rel="self" type="application/atom+xml" href="http://freelish.us/api/statuses/show/13836862.atom"/>
1011 <link rel="edit" type="application/atom+xml" href="http://freelish.us/api/statuses/show/13836862.atom"/>
1012 <statusnet:notice_info local_id="13836862" source="web" favorite="false" repeated="false"></statusnet:notice_info>