projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f947376
)
src/Tweeper.php: put a comment right before the code it refers to
author
Antonio Ospite <ao2@ao2.it>
Fri, 9 Nov 2018 14:40:17 +0000
(15:40 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Fri, 9 Nov 2018 14:40:17 +0000
(15:40 +0100)
src/Tweeper.php
patch
|
blob
|
history
diff --git
a/src/Tweeper.php
b/src/Tweeper.php
index
9a449a7
..
831f47d
100644
(file)
--- a/
src/Tweeper.php
+++ b/
src/Tweeper.php
@@
-249,10
+249,12
@@
class Tweeper {
return NULL;
}
+ $data = json_decode($matches[1], $assoc = TRUE);
+
// The "qe" object contains elements which will result in invalid XML
// element names, so remove it.
- $data = json_decode($matches[1], $assoc = TRUE);
unset($data["qe"]);
+
$json = json_encode($data);
return Tweeper::jsonToXml($json, 'instagram');