aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper/ContentProxy.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix empty title and domain_name when exception is thrown during fetchKevin Decherf2017-12-131-4/+33
| | | | | | | | | | Add a new helper to set a default title when it's empty: 1/ use basename part of entry's path, if any 2/ or use domain name Fixes #2053 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Define storeArticleHeaders false by defaultJeremy Benoist2017-11-211-1/+1
| | | | | Fix tests which must use `$storeArticleHeaders`. Fix CS
* Added internal setting to enable/disable headers storageNicolas Lœuillet2017-11-201-2/+4
|
* CSJeremy Benoist2017-10-091-1/+1
|
* Add a test for updatePublishedAtJeremy Benoist2017-07-241-3/+9
| | | | | | | To avoid error when a content is re-submitted and it previously add a published date. Also, fix the `testPostSameEntry`
* Fix updatePublishedAt on already parsed article's dateSimounet2017-07-241-1/+1
|
* CSJeremy Benoist2017-07-031-70/+70
|
* Fix validateAndSetPreviewPictureJeremy Benoist2017-07-031-4/+1
| | | | Which wasn't covered by a test!
* Fix PATCH methodJeremy Benoist2017-07-031-37/+52
| | | | | The PATCH method for the entry should only update what user sent to us and not the whole entry as it was before. Also, sending tags when patching an entry will now remove all current tags & assocatied new ones.
* Add a real configuration for CS-FixerJeremy Benoist2017-07-011-5/+5
|
* Fix empty language and preview picsThomas Citharel2017-06-121-2/+2
|
* Convert - to _ in languageJeremy Benoist2017-06-091-0/+4
| | | | Mostly to increase language supports
* Use Locale instead of LanguageJeremy Benoist2017-06-091-2/+2
|
* CSJeremy Benoist2017-06-081-1/+2
|
* Validate language & preview picture fieldsJeremy Benoist2017-06-081-11/+67
| | | | | Instead of saving the value of each field right into the content without any validation, it seems better to validate them. This might sounds obvious now we say that.
* Add ability to patch an entry with more fieldsJeremy Benoist2017-06-021-1/+1
| | | | | | | | | Like when we create an entry, we can now patch an entry with new fields: - content - language - preview_picture - published_at - authors
* No need to catch that ExceptionJeremy Benoist2017-06-011-9/+2
|
* Rewrote code & fix testsJeremy Benoist2017-06-011-46/+20
|
* CSJeremy Benoist2017-06-011-3/+3
|
* Fix testsJeremy Benoist2017-06-011-8/+19
|
* Add disableContentUpdate import optionJerome Charaoui2017-06-011-22/+54
| | | | | | This commit also decouples the "import" and "update" functions inside ContentProxy. If a content array is available, it must be passed to the new importEntry method.
* Avoid returning objects passed by reference.Jerome Charaoui2017-06-011-4/+0
| | | | | | Objects are always passed by reference, so it doesn't make sense to return an object which is passed by reference as it will always be the same object. This change makes the code a bit more readable.
* Forced date can now be a timestamp tooJeremy Benoist2017-05-311-1/+8
| | | | Add adding more tests for forced content
* Improve docsJeremy Benoist2017-05-311-3/+3
|
* Remove htmlawed and use graby insteadJeremy Benoist2017-05-311-18/+1
| | | | | Instead of using htmlawed (which is already used in graby) use graby directly (which require some refacto on graby side). Still needs some tests.
* Use graby ContentExtractor to clean htmlJeremy Benoist2017-05-311-0/+10
| | | | It might be better to re-use some graby functionalities to clean html instead of building a new system.
* Allow other fields to be send using APIJeremy Benoist2017-05-311-7/+23
| | | | | | | | | | | | | | | | Entry API can now have these new fields: - content - language - preview_picture - published_at Re-use the ContentProxy to be able to do the same using the web UI (in the future). htmLawed is used to clean stuff from content, I hope it’ll be enough to avoid security breach. Lower content validation when we want to update an entry with content already defined. Before, language & content_type were required. If there weren’t provided, we re-fetched the content using graby. I think these fields aren’t required for an entry to be created. So I removed them. Which means some import from the v1 export won’t be re-fetched since they provide content, url & title. Also, remove liberation link from Readability import to avoid overlaping import (from wallabag v1, which had the same link)
* CSThomas Citharel2017-05-281-1/+0
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Move Tags assigner to a separate fileThomas Citharel2017-05-271-53/+3
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Added headers field in EntryNicolas Lœuillet2017-05-111-0/+4
|
* Added author of articleNicolas Lœuillet2017-04-091-1/+5
|
* Added publication dateNicolas Lœuillet2017-04-051-0/+4
|
* Avoid false preview imageJeremy Benoist2017-01-101-1/+1
| | | | | If the website doesn't provide an og_image, the value will be false and so it'll be saved like that in the database. We prefer to leave it as null instead of false.
* Add some commentsJeremy Benoist2016-12-041-0/+3
|
* Prevent undefined index when import fetching failsJerome Charaoui2016-12-021-3/+3
|
* Imported entries which fail to fetch get standard error bodyJerome Charaoui2016-12-021-1/+1
|
* Retain imported content if fetching fails, fixes #2658Jerome Charaoui2016-12-021-2/+7
|
* Merge remote-tracking branch 'origin/master' into 2.2Jeremy Benoist2016-11-191-0/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # .editorconfig # docs/de/index.rst # docs/de/user/import.rst # docs/en/index.rst # docs/en/user/configuration.rst # docs/en/user/import.rst # docs/fr/index.rst # docs/fr/user/import.rst # src/Wallabag/CoreBundle/Command/InstallCommand.php # src/Wallabag/CoreBundle/Resources/translations/messages.da.yml # src/Wallabag/CoreBundle/Resources/translations/messages.de.yml # src/Wallabag/CoreBundle/Resources/translations/messages.en.yml # src/Wallabag/CoreBundle/Resources/translations/messages.es.yml # src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml # src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml # src/Wallabag/CoreBundle/Resources/translations/messages.it.yml # src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml # src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml # src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml # src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml # src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml # src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig # web/bundles/wallabagcore/themes/baggy/css/style.min.css # web/bundles/wallabagcore/themes/baggy/js/baggy.min.js # web/bundles/wallabagcore/themes/material/css/style.min.css # web/bundles/wallabagcore/themes/material/js/material.min.js
| * Display a bigger image in case of image contentJeremy Benoist2016-11-081-0/+8
| | | | | | | | | | | | If the content is only an image, we can display a bigger preview image because we won’t have text to display. Also, split different card view to avoid too much complexity in the entries.html.twig
* | Added http_status in Entry entityNicolas Lœuillet2016-11-181-0/+1
| |
* | Fixing testsJeremy Benoist2016-10-301-2/+1
| |
* | Use doctrine event to download imagesJeremy Benoist2016-10-301-6/+0
| |
* | CleanupJeremy Benoist2016-10-301-2/+2
| |
* | CSJeremy Benoist2016-10-291-1/+1
| |
* | Download pictures successfullyThomas Citharel2016-10-291-169/+9
| | | | | | | | Needs to rewrite them properly (get base url)
* | first draft (from v1)Thomas Citharel2016-10-291-0/+168
|/
* CSJeremy Benoist2016-09-251-4/+3
|
* Use scheduled entity insertions to avoid tag duplicateJeremy Benoist2016-09-251-5/+20
| | | | Using `getScheduledEntityInsertions()` we can retrieve not yet flushed but already persisted entities and then avoid tags duplication on import.
* Convert array + phpDocJeremy Benoist2016-04-121-2/+2
| | | | Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
* Fix some Scrutinizer issuesJeremy Benoist2016-03-271-5/+29
|