| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | | |
When using `OR` in a where clause, a composite index can't be used. We should use a `UNION` to take advantages of it.
Instead, create 2 indexes on each hashed urls and make 2 queries to find an url. It'll be faster than the previous solution.
|
| | |
| | |
| | |
| | | |
Using hashed url we can ensure an index on them to ensure it's fast.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Added index on entry table for given_url field
- Fix tests:
The previous `bit.ly` url redirected to doc.wallabag but that url doesn't exist in the fixtures.
I used our own internal "redirector" to create a redirect to an url which exist in the fixtures.
Also, updating current migration to use the new `WallabagMigration`.
|
| | |
| | |
| | |
| | |
| | | |
It was only used to make an absolute url when downloading images.
The deps is still there (in the `composer.lock`) because Graby use it (not for absolute but for encoding).
|
|/ / |
|
|\ \
| | |
| | | |
Always hash exists url
|
| | |
| | |
| | |
| | | |
Also fix a phpdoc block
|
| | | |
|
| | |
| | |
| | |
| | | |
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Simplify the logic from #3158 by hashing all the urls from the request,
and only doing a search by hash. This allows to get performance benefits
from the new indexed hash column even when using older clients that do
not hash the URL in the request.
Fixes: #3158, #3919
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Preview picture: use the 1st pic retrieved if no og:image set
|
| |/ / |
|
|/ / |
|
|\ \
| | |
| | | |
api/entries: add parameter detail to exclude or include content in response
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
detail=metadata will nullify the content field of entries in order to
make smaller responses.
detail=full keeps the former behavior, it sends the content of entries.
It's the default, for backward compatibility.
Fixes #2817
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Remove preview picture from share view page for #1875
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Essentially, same as commit 038fccd for single entry views. From that commit:
> Showing the preview picture usually leads to showing a duplicate
> image, and frequently leads to showing duplicate images directly
> adjacent to each other.
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
default
Fixes #3889
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add reading time and creation date to rows of list view.
Refactor styles using a sass mixin.
Fixes #3838
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Instead of fetching one domain, we use the same method as in site config (to retrieve the matching file) and handle api.example.org, example.org, .org (yes the last one isn’t useful).
If one of these match, we got it and use it.
|
| |/
|/| |
|
| | |
|
| |
| |
| |
| |
| | |
If Imagick is available, GIF will be saved using it to keep animation.
Otherwise the previous method will be used and the animation won't be kept.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Also, do not run the hashed_url migration into a Doctrine migration
|
| |
| |
| |
| |
| |
| | |
It'll most often be used in addition to the `user_id`.
Also, automatically generate the hash when saving the url.
Switch from `md5` to `sha1`.
|
| |
| |
| |
| |
| |
| | |
- Add migration
- Use md5 instead of sha512 (we don't need security here, just a hash)
- Update tests
|
| |
| |
| |
| | |
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
|
|\| |
|
| |\
| | |
| | | |
Fix PHP warning
|
| | |
| | |
| | |
| | | |
Looks like sometimes (usually from import) the `html` key isn’t available.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit fixes an exception occuring when exporting as epub several
articles with the same title. The chapter filename is now derived from
title and url.
Fixes #3642
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
| |
| |
| |
| | |
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
| |\
| | |
| | | |
epub export: fix missing cover image, only for exports of one article
|
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes #3602
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The expect parameter enables an application to request the whole entry
or only the id when requesting its deletion.
`expects` defaults to `entry` to prevent any API breakage.
Fixes #3711
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
| | |
|