Browse Source

convert rsvp value to lowercase

according to http://microformats.org/wiki/h-entry the rsvp values should be interpreted case-insensitive
pull/49/head
Aaron Parecki 6 years ago
parent
commit
07d1df2cef
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lib/XRay/Formats/Mf2.php

+ 3
- 0
lib/XRay/Formats/Mf2.php View File

@ -330,6 +330,9 @@ class Mf2 extends Format {
// Single plaintext and URL values // Single plaintext and URL values
self::collectSingleValues(['published','summary','rsvp','swarm-coins'], ['url'], $item, $data, $http); 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 // These properties are always returned as arrays and may contain plaintext content
// First strip leading hashtags from category values if present // First strip leading hashtags from category values if present
if(array_key_exists('category', $item['properties'])) { if(array_key_exists('category', $item['properties'])) {

Loading…
Cancel
Save