From c4da4808666f07a3174cd950f1e058cf8eb95864 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 14 Jul 2018 10:39:21 -0700 Subject: [PATCH] quotation-of should always be a single value --- lib/XRay/Formats/Mf2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/XRay/Formats/Mf2.php b/lib/XRay/Formats/Mf2.php index a5941ed..7848f43 100644 --- a/lib/XRay/Formats/Mf2.php +++ b/lib/XRay/Formats/Mf2.php @@ -414,7 +414,7 @@ class Mf2 extends Format { $refs = []; // Single plaintext and URL values - self::collectSingleValues(['published','summary','rsvp','swarm-coins'], ['url','featured'], $item, $url, $data); + self::collectSingleValues(['published','summary','rsvp','swarm-coins'], ['url','featured','quotation-of'], $item, $url, $data); if(isset($data['rsvp'])) $data['rsvp'] = strtolower($data['rsvp']); @@ -431,7 +431,7 @@ class Mf2 extends Format { // These properties are always returned as arrays and always URLs // If the value is an h-* object with a URL, the URL is used and a "ref" is added as well - self::collectArrayURLValues(['photo','video','audio','syndication','in-reply-to','like-of','repost-of','bookmark-of','quotation-of'], $item, $data, $refs, $http); + self::collectArrayURLValues(['photo','video','audio','syndication','in-reply-to','like-of','repost-of','bookmark-of'], $item, $data, $refs, $http); self::determineNameAndContent($item, $data);