Commit 8acd53bf authored by Mark Harding's avatar Mark Harding
Browse files

(chore): If mobile app then return generic urn

parent c920f910
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -118,6 +118,10 @@ class Exportable implements \JsonSerializable
                $exported['ownerObj']['guid'] = (string) $exported['ownerObj']['guid'];
            }

            if (isset($exported['urn']) && isset($_SERVER['HTTP_APP_VERSION'])) {
                $exported['urn'] = "urn:entity:{$exported['guid']}";
            }

            foreach ($this->exceptions as $exception) {
                $exported[$exception] = $item->{$exception};
            }