diff options
author | adev <adev2000@gmail.com> | 2017-11-11 20:04:15 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-05-28 11:42:27 +0200 |
commit | 5f08426201c336f96d593954fb45b284d7e60f4a (patch) | |
tree | d4cf1267555aeeac5c457beefc15d40ba625726f /src/Wallabag/ApiBundle | |
parent | bf9ace0643f654e7ccd9c020b8b501ad56cd19de (diff) | |
download | wallabag-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.php | 4 |
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 | ); |