From 07d1df2cef287758b5798ec850bc6e4e6c0fd10e Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Thu, 6 Jul 2017 08:46:21 -0700 Subject: [PATCH] convert rsvp value to lowercase according to http://microformats.org/wiki/h-entry the rsvp values should be interpreted case-insensitive --- lib/XRay/Formats/Mf2.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/XRay/Formats/Mf2.php b/lib/XRay/Formats/Mf2.php index b749c1c..33ee529 100644 --- a/lib/XRay/Formats/Mf2.php +++ b/lib/XRay/Formats/Mf2.php @@ -330,6 +330,9 @@ class Mf2 extends Format { // Single plaintext and URL values self::collectSingleValues(['published','summary','rsvp','swarm-coins'], ['url'], $item, $data, $http); + if(isset($data['rsvp'])) + $data['rsvp'] = strtolower($data['rsvp']); + // These properties are always returned as arrays and may contain plaintext content // First strip leading hashtags from category values if present if(array_key_exists('category', $item['properties'])) {