aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/bookmark
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1665 from ArthurHoaro/fix/metadata-regexes-2ArthurHoaro2020-12-291-2/+4
|\ | | | | Fix metadata extract regex (2)
| * Fix metadata extract regex (2)ArthurHoaro2020-12-171-2/+4
| | | | | | | | | | | | Reference: https://stackoverflow.com/questions/8055727/negating-a-backreference-in-regular-expressions Fixes #1656
* | Fix: soft fail if the mutex is not workingArthurHoaro2020-11-241-2/+20
|/ | | | | | And display the error in server admin page Fixes #1650
* Manually fix remaining PHPCS errorsArthurHoaro2020-11-093-3/+6
|
* Apply PHP Code Beautifier on source code for linter automatic fixesArthurHoaro2020-11-0911-40/+47
|
* Merge pull request #1621 from ArthurHoaro/feature/tag-separatorsArthurHoaro2020-11-084-35/+99
|\
| * Feature: support any tag separatorArthurHoaro2020-11-054-35/+99
| | | | | | | | | | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* | Merge pull request #1629 from ArthurHoaro/fix/demo-vimeoArthurHoaro2020-11-081-2/+2
|\ \ | | | | | | Replace vimeo link in demo bookmarks due to IP ban on the demo instance
| * | Replace vimeo link in demo bookmarks due to IP ban on the demo instanceArthurHoaro2020-11-081-2/+2
| |/ | | | | | | Fixes #1148
* / Fix an issue truncating extracted metadata contentArthurHoaro2020-11-081-4/+4
|/ | | | Previous regex forced the selection to stop at either the first single or double quote found, regardless of the opening quote. Using '\1', we're sure to wait for the proper quote before stopping the capture.
* Default formatter: add a setting to disable auto-linkificationArthurHoaro2020-11-031-3/+8
| | | | | | | + update documentation + single parameter for both URL and hashtags Fixes #1094
* Raise 404 error instead of 500 if permalink access is deniedArthurHoaro2020-10-281-1/+1
|
* Feature: add weekly and monthly view/RSS feed for daily pageArthurHoaro2020-10-272-21/+44
| | | | | | | | | - Heavy refactoring of DailyController - Add a banner like in tag cloud to display monthly and weekly links - Translations: t() now supports variables with optional first letter uppercase Fixes #160
* Feature: Share private bookmarks using a URL containing a private keyArthurHoaro2020-10-272-4/+8
| | | | | | | | | | - Add a share link next to « Permalink » in linklist (using share icon from fork awesome) - This link generates a private key associated to the bookmark - Accessing the bookmark while logged out with the proper key will display it Fixes #475
* Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-201-0/+18
| | | | | | | | | This feature is based general.enable_async_metadata setting and works with existing metadata.js file. The script is compatible with any template: - the thumbnail div bloc must have attribute - the bookmark bloc must have attribute with the bookmark ID as value Fixes #1564
* Feature: highlight fulltext search resultsArthurHoaro2020-10-162-18/+139
| | | | | | | | | | | | | | | | | | | | How it works: 1. when a fulltext search is made, Shaarli looks for the first occurence position of every term matching the search. No change here, but we store these positions in an array, in Bookmark's additionalContent. 2. when formatting bookmarks (through BookmarkFormatter implementation): 1. first we insert specific tokens at every search result positions 2. we format the content (escape HTML, apply markdown, etc.) 3. as a last step, we replace our token with displayable span elements Cons: this tightens coupling between search filters and formatters Pros: it was absolutely necessary not to perform the search twice. this solution has close to no impact on performances. Fixes #205
* Strict types: fix an issue in daily where the date could be an intArthurHoaro2020-10-161-1/+1
|
* Add strict types for bookmarks managementArthurHoaro2020-10-137-162/+170
| | | | | | | | Parameters typing and using strict types overall increase the codebase quality by enforcing the a given parameter will have the expected type. It also removes the need to unnecessary unit tests checking methods behavior with invalid input.
* Add mutex on datastore I/O operationsArthurHoaro2020-10-133-21/+34
| | | | | | To make sure that there is no concurrent operation on the datastore file. Fixes #1132
* Merge pull request #1540 from ArthurHoaro/fix/metadata-regexesArthurHoaro2020-10-131-2/+4
|\ | | | | Improve regex to extract HTML metadata (title, description, etc.)
| * Improve regex to extract HTML metadata (title, description, etc.)ArthurHoaro2020-09-031-2/+4
| | | | | | | | | | | | Also added a bunch of tests to cover more use cases. Fixes #1375
* | Fix warning if the encoding retrieved from external headers is invalidArthurHoaro2020-09-301-1/+1
| | | | | | | | Also fixed the regex to support this failing header: charset="utf-8"\r\n"
* | Merge pull request #1552 from ArthurHoaro/feature/better-initializerArthurHoaro2020-09-121-11/+63
|\ \
| * | Improve default bookmarks after installArthurHoaro2020-09-101-11/+63
| |/ | | | | | | | | | | | | Used @nodiscc suggestion in #1148 (slightly edited). It provides a description of what Shaarli does, Markdown rendering demo, and a thumbnail link. Fixes #1148
* / Fix visibility issue on daily pageArthurHoaro2020-09-062-7/+14
|/ | | | | | This filter (links by day) didn't apply any visibility parameter. Fixes #1543
* Fixed: Pinned bookmarks are displayed first in ATOM/RSS feedsArthurHoaro2020-08-293-7/+24
| | | | Fixes #1485
* Bookmark's thumbnails PHPDoc improvementArthurHoaro2020-08-011-3/+3
|
* Remove anonymous permission and initialize bookmarks on loginArthurHoaro2020-08-015-44/+33
|
* Better support for notes permalinkArthurHoaro2020-07-281-2/+2
|
* Process Shaarli install through Slim controllerArthurHoaro2020-07-233-9/+42
|
* Process main page (linklist) through Slim controllerArthurHoaro2020-07-231-1/+1
| | | | | Including a bunch of improvements on the container, and helper used across new controllers.
* Handle shaare creation/edition/deletion through Slim controllersArthurHoaro2020-07-231-106/+0
|
* Process Daily RSS feed through Slim controllerArthurHoaro2020-07-232-8/+9
| | | | The daily RSS template has been entirely rewritten to handle the whole feed through the template engine.
* Process daily page through Slim controllerArthurHoaro2020-07-231-1/+1
|
* Handle tag filtering in the Bookmark serviceArthurHoaro2020-07-231-0/+1
|
* Slim router: handle add tag routeArthurHoaro2020-07-231-1/+1
|
* Migrate cache purge function to a proper classArthurHoaro2020-07-232-3/+6
| | | | | | And update dependencies and tests. Note that SESSION['tags'] has been removed a log ago
* Process picwall rendering through Slim controller + UTArthurHoaro2020-07-231-1/+1
|
* Fix an issue with private tags and fix nomarkdown tagArthurHoaro2020-01-181-2/+7
| | | | | | | | The new bookmark service wasn't handling private tags properly. nomarkdown tag is now shown only for logged in user in bookmarks, and hidden for everyone in tag clouds/lists. Fixes #726
* Add and update unit test for the new system (Bookmark + Service)ArthurHoaro2020-01-181-2/+2
| | | | See #1307
* Apply the new system (Bookmark + Service) to the whole code baseArthurHoaro2020-01-181-1/+1
| | | | See https://github.com/shaarli/Shaarli/issues/1307
* Introduce Bookmark object and Service layer to retrieve themArthurHoaro2020-01-1713-665/+1583
| | | | See https://github.com/shaarli/Shaarli/issues/1307 for details
* Make sure that bookmark sort is consistent, even with equal timestampsArthurHoaro2019-08-071-2/+5
| | | | Fixes #1348
* Automatically retrieve description for new bookmarksArthurHoaro2019-07-061-4/+81
| | | | | | | | | | | | | | | If the option is enabled, it will try to find a meta tag containing the page description and keywords, just like we do for the page title. It will either look for regular meta tag or OpenGraph ones. The option is disabled by default. Note that keywords meta tags is mostly not used. In `configure` template, the variable associated with this setting is `$retrieve_description`. Fixes #1302
* Merge pull request #1271 from ArthurHoaro/hotfix/thumb-note-retrieveArthurHoaro2019-03-021-0/+13
|\ | | | | Do not try to retrieve thumbnails for internal link
| * Do not try to retrieve thumbnails for internal linkArthurHoaro2019-02-241-0/+13
| | | | | | | | Also adds a helper function to determine if a link is a note and apply it across multiple files.
* | Merge pull request #1270 from ArthurHoaro/hotfix/sticky-warningArthurHoaro2019-02-241-1/+5
|\ \ | | | | | | Fix a warning if links sticky status isn't set
| * | Fix a warning if links sticky status isn't setArthurHoaro2019-02-091-1/+5
| |/ | | | | | | | | - initiate its status to false when the link is created - if not defined, initiate its status to false (can happen if the updater hasn't run)
* / Remove the redirector settingArthurHoaro2019-02-092-55/+10
|/ | | | Fixes #1239
* Optimize and cleanup importsVirtualTam2019-01-131-1/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>