aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* implement sodium-plus library to replace unmaintained sjclMario2024-03-101-20/+18
|
* move escape_tags() to Lib/Text.php and add testMario2024-03-101-4/+2
|
* we usually use ENT_COMPAT for content, so stick to thisMario2024-03-101-2/+2
|
* more work on emojisMario2024-03-093-8/+62
|
* fix php warningsMario2024-03-081-6/+18
|
* inbound support for custom emojisMario2024-03-082-45/+75
|
* list attachments in the original orderMario2024-03-071-4/+5
|
* fix unterminated entity reference error when dealing with domxpath and add a ↵Mario2024-03-061-2/+3
| | | | test
* we are checking for null|array union type later - false would throw an errorMario2024-03-011-2/+2
|
* Merge branch 'some-bbcode-cleanup' into 'dev'Mario2024-03-012-326/+341
|\ | | | | | | | | Add some beginning tests for bbcode, and a bit of refactoring See merge request hubzilla/core!2110
| * Add some beginning tests for bbcode, and a bit of refactoringHarald Eilertsen2024-03-012-326/+341
| |
* | Merge branch 'dba-transactions' into 'dev'Mario2024-03-011-0/+64
|\ \ | | | | | | | | | | | | include/dba: Make Dba driver transaction aware. See merge request hubzilla/core!2108
| * | include/dba: Make Dba driver transaction aware.Harald Eilertsen2024-02-261-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduced database transaction support to the Dba driver via the DbaTransaction class. The goal of this is to allow the driver control over the creation and finalization of database transactions. Until now code that has needed transaction support has done so directly by issuing "BEGIN", "ROLLBACK" and "COMMIT" commands to the underlying database directly. This has several disadvantages: - We do have no control or knowledge of whether any transactions being active. - Since transactions can not be nested, we run the risk of unrelated code trying to create a transaction when one is already active. - Code using transactions are not testable, as the test runner wraps all tests within a transaction to begin with. This patch should eliminate all these problems. A transaction is started by instantiating the DbaTransaction class: $my_transaction = new \DbaTransaction(); The transaction will automatically be _rolled back_ if it has not been committed before the instance is destroyed. (When the variable holding it goes out of scope, i.e when the containing function returns.) A transaction is committed like this: $my_transaction->commit(); This will immediately commit the changes in the transaction, and the transaction will be marked as committed, so it will not be attempted to be rolled back on destruction. I have chosen to "ignore" the problem of nested transactions by having the DbaTransaction class _not_ initiate a new transaction if one is already active. This also makes the rollback and commit actions of the DbaTransaction class into no-ops. An alternative would be to simulate nested transactions by using save points if a transaction is already active. However, I'm unsure about wether there's any safe way to avoid all potential pitfalls when doing that. In any case, nested transactions should preferably be avoided, and afaict we don't rely on that in any of the existing code. The reason we need to support it in some way is that it's needed for testing where the code under test is creating a transaction on it's own. (Since each test is run within a db transaction to begin with.) Also, I have taken the liberty to assume a PDO based db driver for this stuff. I don't think that's going to be a problem, as that's the only thing supported by the rest of the code in any case.
* | | handle imagick readImageBlob() exceptionMario2024-03-011-1/+8
| | |
* | | AS2 Follow/IgnoreMario2024-03-011-3/+2
| | |
* | | more cleanupMario2024-02-292-7/+7
| | |
* | | some cleanupMario2024-02-291-6/+10
| | |
* | | AS2 Update and implement a first draft of AS2 Profile activitiesMario2024-02-295-124/+57
| |/ |/|
* | some cloeanup after last commitMario2024-02-281-27/+1
| |
* | do away with deprecated activity typesMario2024-02-283-205/+1
|/
* AS2Mario2024-02-2511-477/+67
|
* make sure to decode html special chars before sending over the wire andMario2024-02-211-0/+7
|
* update to Bootstrap 5Rocky2024-02-141-25/+35
|
* do not feed null to TimeZoneUtil::getTimeZone()Mario2024-02-131-1/+1
|
* fix some whitespace issues after recent changesMario2024-02-092-16/+20
|
* another tryMario2024-02-091-2/+2
|
* let's try thisMario2024-02-091-2/+2
|
* move parsing of a tags upà to fix an issue where mentions arriving from ↵Mario2024-02-081-4/+3
| | | | masto did not parse correctly, fix typo when restoring temporary linebreaks and remove redundant codeline when converting span tags
* Support code blocks with language in markdown and html.Harald Eilertsen2024-02-081-0/+1
|
* Fix: Preserve hard linebreaks from markdown and htmlHarald Eilertsen2024-02-071-1/+5
|
* Don't concert html nodes with no bbcode equivalent.Harald Eilertsen2024-02-071-0/+4
|
* Fix: Keep indentation in html and md code blocks.Harald Eilertsen2024-02-071-17/+16
| | | | | | | Moves the logic for unwrapping broken lines in html (and Markdown) to the node processing, instead of doing it over the full html content. This allows us to skip if for code blocks (aka `<code>` elements within `<pre>` elements).
* Fix convert code blocs from markdown/html to bbcodeHarald Eilertsen2024-02-061-2/+9
|
* Fix image with alt text for html/md to bbcodeHarald Eilertsen2024-02-061-0/+1
|
* streams collection branch compatibilityMario2024-02-021-0/+4
|
* start using uuid for internal reference instead of base64 encoded midMario2024-02-013-15/+20
|
* refactor fetch_and_store_parents() and inroduce the fetchparents daemonMario2024-01-252-1/+8
|
* restructure Libzot::process_delivery()Mario2024-01-241-1/+1
|
* process source xchan in xchan_query()Mario2024-01-231-1/+4
|
* store the original announce actor (the one that pushed the item into our ↵Mario2024-01-221-1/+1
| | | | stream first) in source_xchan instead of owner_xchan. this way we will preserve the real owner for the thread and not have conflicts when dealing with deletes of comments or likes
* missing includeMario Vavti2024-01-211-0/+1
|
* Merge branch 'improve-validate-email' into 'dev'Mario2024-01-191-10/+17
|\ | | | | | | | | Improve validate_email function See merge request hubzilla/core!2088
| * Improve the validate_email functionHarald Eilertsen2024-01-151-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The validate_email function relied on doing an actual domain lookup (on supported platforms) to validate the domain of the email address. This does not work too well in testing environments where we may not want to spam the DNS system, if it at all is available. Apart from the the function did very little to actually verify that it was a valid email address. This patch tries to change that by usng a somewhat stricted regex based validation. While this may not be perfect, it should be good enough in the vast majority of cases. For platforms where no validation was performed with the old version, it will at least be an improvement. Also, it allows testing without having an external network connection. Also clarify the doc comment, that it does not actually try to resolve the email address, just the domain.
* | native repeats continuedMario2024-01-191-13/+25
|/
* fix more php deprecationsMario2024-01-141-2/+4
|
* Handling HTML entities via mbstring is deprecatedMario2024-01-143-4/+18
|
* provide some more jsonld builtinsMario2024-01-111-0/+4
|
* prepare outbound fep-8b32 (object integrity) but do not enable yet since the ↵Mario2024-01-101-12/+5
| | | | additional context seems to break ldsig for some reason, introduce Activity::build_packet() and Activity::ap_context() to reduce code duplication, implement fep-2c59 (webfinger) and some cleanup
* reflect new fields in low level functionsMario2024-01-072-0/+4
|
* ekey and xchan_updated updatesMario2024-01-072-0/+13
|