Commit graph

41162 commits

Author SHA1 Message Date
Hannes Heute
a784428f85 make calendar use the default view mode 2025-05-01 22:40:16 +02:00
Philipp
d1b8f31fe8
Merge pull request #14888 from mf-fx/trending_tags_missing_translations
Add missing translations to trending tags
2025-05-01 09:30:58 +02:00
Marcus Funch
42b411788a Add missing translations to trending tags 2025-04-30 20:28:29 +02:00
Art4
4b9a674659 Implement parsing of addon files to AddonInfo 2025-04-29 13:59:58 +00:00
Art4
baaec75bfc fix code style 2025-04-28 14:12:27 +00:00
Art4
362b223c5e Replace Addon class with AddonHelper in vier theme 2025-04-28 14:10:32 +00:00
Art4
f5eee2c334 Replace Addon class with AddonHelper in Post Object 2025-04-28 14:07:20 +00:00
Art4
2ccb62bbd8 Replace Addon class with AddonHelper in Nodeinfo Model 2025-04-28 13:57:21 +00:00
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
c6c6640b81
Fixup woodpecker 2025-04-27 23:20:08 +02:00
Philipp
7b39b3b9c0
Mak PHPCS happy 2025-04-27 21:26:52 +02:00
Philipp
03cfa2d066
Add doc 2025-04-27 21:26:50 +02:00
Philipp
c92d239091
fix test 2025-04-27 21:26:49 +02: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
Michael Vogel
102db4fca0
Merge pull request #14907 from mf-fx/frio_fix_tooltips_positions_scroll
Frio: Fix bug making navigation tooltips disappear after scroll
2025-04-26 08:23:53 +02:00
Marcus Funch
f840d1f582 Frio: Fix bug making navigation tooltips disappear after scroll 2025-04-26 00:49:55 +02: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
Hypolite Petovan
7dc681d18c
Merge pull request #14883 from annando/issue-14881
Issue 14881: Fixed language detection for danish
2025-04-16 23:58:58 -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
6b36d3e87f Replace LegacyLoggerFactory with DelegatingLoggerFactory 2025-04-14 13:54:48 +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