aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper/ContentProxy.php
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Move assignTagsToEntry in ContentProxy helperJeremy Benoist2016-02-191-1/+39
|
* php csNicolas Lœuillet2015-12-081-1/+1
|
* Errors in the automatic tagging do not prevent the entry from being addedKévin Gomez2015-11-111-2/+12
|
* PoC of rule-based taggingKévin Gomez2015-11-111-2/+6
|
* Move readingTime & domainName in ContentProxyJeremy Benoist2015-09-281-0/+3
| | | | So, everything is centralized in one place when we save a new entry.
* Handle entry in languageJeremy Benoist2015-09-221-0/+1
| | | | Fix #1333
* CSJeremy Benoist2015-09-101-4/+4
|
* Move fetching content in a separate classJeremy Benoist2015-09-101-0/+60