Commit graph

13425 commits

Author SHA1 Message Date
Art4
2e50e93872 Replace Addon class with AddonHelper in stats modules 2025-04-28 13:32:18 +00:00
Art4
d6b072477d Merge branch 'develop' into phpstan-level-3 2025-04-28 11:44:30 +00:00
Art4
ec16994738 Merge branch 'develop' into eventdispatcher-part3 2025-04-28 11:02:09 +00:00
Philipp
b222aa0c48
Add a bunch of tests for StatsCaching 2025-04-27 21:26:48 +02:00
Philipp
892fa595da
Make PHPCS happy - again 2025-04-27 21:26:47 +02:00
Philipp
5969576585
Add missing license 2025-04-27 21:26:45 +02:00
Philipp
50c720688b
Make PHPCS happy 2025-04-27 21:26:44 +02:00
Philipp
a20828f618
Add Caching stats 2025-04-27 21:26:43 +02:00
Philipp
01296e98f9
Add getStats() method for MemoryCaches 2025-04-27 21:26:28 +02:00
Philipp
ffb621f0e4
Merge pull request #14882 from Art4/refractor-logger-factories
Rework logger factories
2025-04-27 02:15:48 +02:00
Random Penguin
403b0672e6
Strip HTML tags from content sent as Markdown
The "toMarkdown" function prepares content to be sent, primarily, to Diaspora.

The HTML to Markdown converter by default "preserves HTML tags without Markdown equivalents like <span> and <div>." At least according to the README in /friendica/vendor/league/html-to-markdown/ - which also says "To strip HTML tags that don’t have a Markdown equivalent while preserving the content inside them, set strip_tags..."

Diaspora, however, does not appear to know what to DO with the HTML sent to it. It actually appears to encode the HTML and displays the code in the post body rather than rendering it as HTML. In which case it would make more sense to strip out all tags that have no Markdown equivalents.
Example
The post as sent from Friendica mixed BBcode and Markdown:
[class=postbox-ocean]Norddeutscher Bürger ![Noddeutscher Bürger - Bismark Brötchen (Roger Cziwerny - pixapay)](/rscamo/……)[/class]
The BBcode gets converted into an HTML <span> tag. 

It also looks like Diaspora encoded the Markdown for the image rather than parsing it, or at the very least didn't parse it as Markdown. Yet another reason to strip out HTML that has no Markdown equivalents. It looks like it may be encoding the tags and the content inside the tags.

And, yes, I'm aware the [class] BBcode was marked as "deprecated" in the Friendica code, but it's the only way my Bookface scheme for the "Frio" theme could implement both profile "Cover Photos" and "Postboxes." Which won't display to other platforms anyway, so I don't want to see this custom BBcode removed, I just think it needs to be stripped out before content is delivered to other platforms.

(There is a related issue with Hubzilla where the raw BBcode is coming through unparsed because the [class] code apparently does not exist in Hubzilla's BBcodes. But I've no clue where or how to fix that in Friendica or if it can be as it may need to be handled on Hubzilla's end).
2025-04-26 16:44:14 -05:00
Random Penguin
09c6061810
Strip HTML tags from content sent as Markdown
The "toMarkdown" function prepares content to be sent, primarily, to Diaspora.

The HTML to Markdown converter by default "preserves HTML tags without Markdown equivalents like `<span>` and `<div>.`" At least according to the README in _/friendica/vendor/league/html-to-markdown/_ - which also says "To strip HTML tags that don’t have a Markdown equivalent while preserving the content inside them, set strip_tags..."

Diaspora, however, does not appear to know what to DO with the HTML sent to it. It actually appears to _encode_ the HTML and displays the *code* in the post body rather than rendering it as HTML. In which case it would make more sense to strip out all tags that have no Markdown equivalents.
2025-04-20 12:05:26 -05:00
Michael
85e5dfc8cf Issue 14890: Translate page titles 2025-04-18 03:45:04 +00:00
Michael
cd73f6a27b Bluesky: Update actors regularly 2025-04-17 20:13:03 +00:00
Hypolite Petovan
cd3d412a59
Merge pull request #14885 from annando/bluesky-profile-links
Bluesky: use did based profile links
2025-04-17 00:00:01 -04:00
Michael
37d324e63b Bluesky: use did based profile links 2025-04-16 04:13:09 +00:00
Art4
fa58d8b11a Fix compat with PHP 7.4 2025-04-15 06:11:17 +00:00
Michael
cc4ff9584f Fixed codestyle 2025-04-15 02:09:19 +00:00
Michael
e7bd6e7663 Issue 14881: Fixed language detection for danish 2025-04-15 02:03:35 +00:00
Art4
32b657b793 fix code style 2025-04-14 15:06:30 +00:00
Art4
60ad014a6e Hard-deprecation for now unused factory classes 2025-04-14 14:51:52 +00:00
Art4
d410758cdd Remove obsolet LegacyLoggerFactory 2025-04-14 14:40:44 +00:00
Art4
c0065a68b3 Set new factories as internal 2025-04-14 14:39:39 +00:00
Art4
fc1d8e92f3 Fix code style 2025-04-14 14:38:49 +00:00
Art4
af29baf11e deprecate value monolog for config system.logger_config 2025-04-14 14:36:46 +00:00
Art4
8fb2fae841 Create DelegatingLoggerFactory 2025-04-14 12:58:15 +00:00
Art4
252b3980d0 Deprecate SyslogLogger factory in favour of SyslogLoggerFactory 2025-04-14 10:47:11 +00:00
Art4
0cec451497 Create SyslogLoggerFactory 2025-04-14 10:36:12 +00:00
Art4
0b41eb1528 Deprecate StreamLogger factory in favour of StreamLoggerFactory 2025-04-14 08:05:43 +00:00
Art4
77269f52eb Create StreamLoggerFactory with tests 2025-04-14 08:00:31 +00:00
Art4
65624e2c19 Create FileSystemUtil interface 2025-04-14 07:14:31 +00:00
Art4
2e672414b3 Fix compat with PHP 7.4 2025-04-11 08:38:30 +00:00
Art4
f1abd57356 Fix compat with PHP 7.4 2025-04-11 08:32:05 +00:00
Art4
2a7d329c52 Create event for profile_edit and profile_post hooks 2025-04-11 08:21:29 +00:00
Art4
c436f5249b Create events for enotify hooks 2025-04-11 07:46:48 +00:00
Art4
7531a2fb36 Create event for acl_lookup_end hook 2025-04-11 06:55:51 +00:00
Art4
531a47f7cb Merge branch 'develop' into eventdispatcher-part3 2025-04-10 14:37:40 +00:00
Art4
3ea20e9eee create event for profile_advanced hook 2025-04-10 14:36:57 +00:00
Art4
86ebbecff5 Create event for photo upload hooks 2025-04-10 14:17:20 +00:00
Art4
7bfd42ac55 log uncaught exceptions as critical 2025-04-10 11:18:38 +00:00
Art4
8ebbe8141a Merge branch 'develop' into eventdispatcher-part3 2025-04-10 11:14:16 +00:00
Art4
39439fe26b Fix missing dependency for EventDispatcher 2025-04-10 11:13:43 +00:00
Art4
ff3c4046e0 Create event for lockview_content hook 2025-04-10 11:04:10 +00:00
Art4
f08aef86f1 set EventDispatcher via constructor injection 2025-04-09 14:38:54 +00:00
Art4
2a7ebc860c Create event for moderation_users_tabs hook 2025-04-09 14:25:00 +00:00
Art4
a34a93c0b9 Create events for networt_tabs and network_content_init hooks 2025-04-02 12:41:22 +00:00
Michael
6cab9c010d Fix blurred images 2025-03-31 20:38:37 +00:00
Hypolite Petovan
fb8cc06ce2 Remove remaining references of unused urlpath config key 2025-03-29 15:45:59 -04:00
Michael
5c1b5bae61 Added more logging to track down issue 14800 2025-03-29 09:07:11 +00:00
Art4
584e7e05b0 Create events for contact_edit and contact_edit_post hooks 2025-03-28 08:31:18 +00:00