]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Parse properties of links in XRD files
authorEvan Prodromou <evan@status.net>
Mon, 3 Jan 2011 15:41:13 +0000 (07:41 -0800)
committerEvan Prodromou <evan@status.net>
Mon, 3 Jan 2011 15:41:13 +0000 (07:41 -0800)
lib/xrd.php

index 9c6d9f3ab70044a4d8573ff713c38778fca51f88..40372b9d7a454c313fb7f7f3ea98cda4362cc412 100644 (file)
@@ -173,6 +173,13 @@ class XRD
                 switch($node->tagName) {
                 case 'Title':
                     $link['title'][] = $node->nodeValue;
+                    break;
+                case 'Property':
+                    $link['property'][] = array('type' => $node->getAttribute('type'),
+                                                'value' => $node->nodeValue);
+                    break;
+                default:
+                    common_log(LOG_NOTICE, "Unexpected tag name {$node->tagName} found in XRD file.");
                 }
             }
         }