Author: chabotc
Date: Sun Jul 13 06:08:38 2008
New Revision: 676314

URL: http://svn.apache.org/viewvc?rev=676314&view=rev
Log:
remove html tags from activity title (not allowed) and make activity id a valid 
url

Modified:
    
incubator/shindig/trunk/php/src/socialrest/converters/OutputAtomConverter.php

Modified: 
incubator/shindig/trunk/php/src/socialrest/converters/OutputAtomConverter.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialrest/converters/OutputAtomConverter.php?rev=676314&r1=676313&r2=676314&view=diff
==============================================================================
--- 
incubator/shindig/trunk/php/src/socialrest/converters/OutputAtomConverter.php 
(original)
+++ 
incubator/shindig/trunk/php/src/socialrest/converters/OutputAtomConverter.php 
Sun Jul 13 06:08:38 2008
@@ -81,10 +81,10 @@
                                
                                if ($response instanceof Activity) {
                                        $this->addNode($feedEntry, 'updated', 
date(DATE_ATOM, $response->postedTime));
-                                       $this->addNode($feedEntry, 'id', 
$response->id);
+                                       $this->addNode($feedEntry, 'id', 
'urn:guid:'.$response->id);
                                        //FIXME should add a link field but 
don't have URL's available yet:
                                        // <link rel="self" 
type="application/atom+xml" 
href="http://api.example.org/activity/feeds/.../af3778"/>
-                                       $this->addNode($feedEntry, 'title', 
$response->title);
+                                       $this->addNode($feedEntry, 'title', 
strip_tags($response->title));
                                        $this->addNode($feedEntry, 'summary', 
$response->body);
                                        // Unset them so addData doesn't 
include them again
                                        unset($response->postedTime);


Reply via email to