aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle
diff options
context:
space:
mode:
authoradev <adev2000@gmail.com>2017-11-11 20:04:15 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-05-28 11:42:27 +0200
commit5f08426201c336f96d593954fb45b284d7e60f4a (patch)
treed4cf1267555aeeac5c457beefc15d40ba625726f /src/Wallabag/ApiBundle
parentbf9ace0643f654e7ccd9c020b8b501ad56cd19de (diff)
downloadwallabag-5f08426201c336f96d593954fb45b284d7e60f4a.tar.gz
wallabag-5f08426201c336f96d593954fb45b284d7e60f4a.tar.zst
wallabag-5f08426201c336f96d593954fb45b284d7e60f4a.zip
Fix because of some breaking changes of Graby 2.0
Diffstat (limited to 'src/Wallabag/ApiBundle')
-rw-r--r--src/Wallabag/ApiBundle/Controller/EntryRestController.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php
index aff0534a..d9d99c85 100644
--- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php
@@ -369,9 +369,7 @@ class EntryRestController extends WallabagRestController
369 'language' => !empty($data['language']) ? $data['language'] : $entry->getLanguage(), 369 'language' => !empty($data['language']) ? $data['language'] : $entry->getLanguage(),
370 'date' => !empty($data['publishedAt']) ? $data['publishedAt'] : $entry->getPublishedAt(), 370 'date' => !empty($data['publishedAt']) ? $data['publishedAt'] : $entry->getPublishedAt(),
371 // faking the open graph preview picture 371 // faking the open graph preview picture
372 'open_graph' => [ 372 'image' => !empty($data['picture']) ? $data['picture'] : $entry->getPreviewPicture(),
373 'og_image' => !empty($data['picture']) ? $data['picture'] : $entry->getPreviewPicture(),
374 ],
375 'authors' => \is_string($data['authors']) ? explode(',', $data['authors']) : $entry->getPublishedBy(), 373 'authors' => \is_string($data['authors']) ? explode(',', $data['authors']) : $entry->getPublishedBy(),
376 ] 374 ]
377 ); 375 );