aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'markdown/dont-link-urls-in-code-blocks' into 'dev'Mario2024-10-021-16/+0
|\ | | | | | | | | markdown: Don't link URLs in code blocks. See merge request hubzilla/core!2145
| * markdown: Don't link URLs in code blocks.Harald Eilertsen2024-09-301-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When passing a content throught the `markdown_to_bb` function to convert any markdown in the content, any recognized URLs in the content would be converted to BBCode links as a post processing step after the main conversion. After commit a1ccacb825edac6ae36e5db4f62ebfe7aeaebe9f this did no longer consider content within code blocks, and would thus convert them as to BBCode links. Example: The following content [code] example url: https://example.com [/code] Would be converted to [code] example url: [url=https://example.com]https://example.com[/url] [/code] Prior to commit a1ccacb825edac6ae36e5db4f62ebfe7aeaebe9f, code blocks would be protected, so this would not happen. This patch removes the post processing step for converting plain URLs to links completely from this routine. This functionality is in any case covered in the actual BBCode parser where it belongs. This will have some other side effects as well, such as images and links created using Markdown, will not be converted to [zmg] or [zrl] tags where that would be done automatically before. If you intend to use a [zrl] or [zmg] tag, you now need to do so explicitly.
* | rewrite sql logic to rename photos - there are more DB queries involved now ↵Mario Vavti2024-10-021-21/+19
|/ | | | but the previous logic was throwing error in postgresql (while the result was correct anyway)
* whitespaceMario2024-09-191-1/+0
|
* prefer token if availableMario2024-09-192-16/+15
|
* Adjust fix_attached_permissions() so that if we got a token, we will just ↵Mario2024-09-182-8/+18
| | | | add the token to the original ACL instead of rewriting the ACL to theitem ACL - it probably makes much more sense that way
* not yet ready for primetimeMario2024-09-181-1/+1
|
* allow uploading to comments if ocap tokens are enabledMario2024-09-181-7/+13
|
* refactor get_security_ids() to remove some legacy code from the zot/zot6 ↵Mario2024-09-181-36/+41
| | | | transition and re-add scope sql to item_permissions_sql()
* improved content and comment collapse/expand renderingMario2024-08-041-4/+4
|
* streamline location renderingMario2024-08-021-4/+8
|
* fa2bi fixesMario2024-08-021-4/+4
|
* fa2bi: catch some remainsMario2024-08-023-5/+5
|
* fa2bi: some sed woodoo on templates and manual fixes in js and php filesMario2024-08-021-1/+1
|
* fix html2bbcode table and add testMario2024-08-021-5/+2
|
* fa2bi continuedMario2024-07-311-37/+37
|
* fa2bi continuedMario2024-07-301-18/+7
|
* fa2bi continuedMario2024-07-291-4/+4
|
* this will be a longer journey - we will start to use bootstrap icons now ↵Mario2024-07-231-7/+7
| | | | since forkawesome is dead
* some cleanupMario2024-07-231-7/+8
|
* the tag_deliver permission is not used anymoreMario2024-07-231-3/+0
|
* make sure to failà the tgroup_check() for group posts if they do not have ↵Mario2024-07-231-2/+1
| | | | the post_wall permission.
* item buttons redesign - initial checkinMario2024-07-221-15/+13
|
* fix wrong logic after last commitMario2024-07-041-1/+1
|
* revert the strlen checkMario2024-07-041-1/+1
|
* fix possible php errorMario2024-07-041-1/+7
|
* fix issue where event items were parsed multiple timesMario2024-06-211-4/+9
|
* Merge branch 'misc-fixes' into 'dev'Mario2024-06-171-6/+9
|\ | | | | | | | | Add module test helper expectRedirectTo + api docs See merge request hubzilla/core!2138
| * Refactor is_local_url() and add api doc.Harald Eilertsen2024-06-161-6/+9
| |
* | Use empty() to check if array entry exist in create_identity.Harald Eilertsen2024-06-141-2/+2
| |
* | Allow passing callable as array to hooks.Harald Eilertsen2024-06-141-10/+11
|/
* Fix warnings exposed by tests.Harald Eilertsen2024-06-131-1/+2
| | | | Mainly missing variables for templates, and channel entries.
* docu and remove superfluous break statement after return statementMario2024-06-131-3/+1
|
* Merge branch 'fix-test-warnings' into 'dev'Mario2024-06-131-3/+4
|\ | | | | | | | | Fix test warnings See merge request hubzilla/core!2134
| * includes/menu: Fix timestamp handling in menu_create.Harald Eilertsen2024-06-121-3/+4
| | | | | | | | | | Referencing undefined array keys are not allowed anymore, so we need to check whether they exist first.
* | duplicate array keyMario2024-06-101-1/+0
| |
* | too many argsMario2024-06-101-2/+2
| |
* | fix wrong variableMario2024-06-101-1/+1
| |
* | docuMario2024-06-101-2/+2
| |
* | docuMario2024-06-101-2/+2
| |
* | fix updated not supported in wrapper functionMario2024-06-101-2/+2
| |
* | docu and declare return type for t()Mario2024-06-101-2/+2
| |
* | remove superfluous param, fix wrong var and declare types for unparse_url()Mario2024-06-101-3/+3
| |
* | adjusting to the wrong direction when exporting ical and do not use Z ↵Mario2024-06-051-2/+2
| | | | | | | | because timezone is attached
* | Merge branch 'disable-mfa-for-dav-and-cdav' into 'dev'Mario2024-06-051-2/+35
|\ \ | | | | | | | | | | | | Skip checking MFA status for WebDAV and CardDAV requests. See merge request hubzilla/core!2131
| * | Skip checking MFA status for WebDAV and CardDAV requests.Harald Eilertsen2024-06-051-2/+35
| |/
* / Fix default timeouts for z_(fetch|post)_url.Harald Eilertsen2024-05-291-3/+3
|/ | | | | | | | | | | | | | | | | | When fetching the default timouts from config, the result is converted to an int via `intval()`, the result of that again is compared strictly to `false`. Since 0 !== false, the default values will never be used, and 0 (no timeout) is passed to curl. This cause requests to hang indefinitely (or until they are killed) when receiving actions that require a lookup or fetch to another site as part of the request processing. (E.g webfinger, or fetching objects that we received an announce action for.) This again cause the request never to return a useful status to the site sending the action, and could cause them to think the Hubzilla site is dead. This patch fixes this by comparing the fetched value from config to 0 instead of false, making the defaults work again if the config is not set (or set to 0).
* remove p tags from li. otherwise we will get unwanted new lines in the list. ↵Mario2024-05-081-0/+5
| | | | add test.
* more fixes for issue #1843Mario2024-05-082-10/+7
|
* add bbcode support for the HTML5 del tagMario2024-05-072-1/+5
|