]>
git.mxchange.org Git - friendica.git/log
Random Penguin [Sat, 26 Apr 2025 21:44:14 +0000 (16:44 -0500)]
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 [/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).
Random Penguin [Sun, 20 Apr 2025 17:05:26 +0000 (12:05 -0500)]
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.
Hypolite Petovan [Thu, 17 Apr 2025 04:00:01 +0000 (00:00 -0400)]
Merge pull request #14885 from annando/bluesky-profile-links
Bluesky: use did based profile links
Hypolite Petovan [Thu, 17 Apr 2025 03:58:58 +0000 (23:58 -0400)]
Merge pull request #14883 from annando/issue-14881
Issue 14881: Fixed language detection for danish
Michael [Wed, 16 Apr 2025 04:13:09 +0000 (04:13 +0000)]
Bluesky: use did based profile links
Michael [Tue, 15 Apr 2025 02:09:19 +0000 (02:09 +0000)]
Fixed codestyle
Michael [Tue, 15 Apr 2025 02:03:35 +0000 (02:03 +0000)]
Issue 14881: Fixed language detection for danish
Hypolite Petovan [Thu, 10 Apr 2025 14:06:27 +0000 (10:06 -0400)]
Merge pull request #14880 from Art4/log-exceptions-as-critical
Log uncaught exceptions as critical
Art4 [Thu, 10 Apr 2025 11:18:38 +0000 (11:18 +0000)]
log uncaught exceptions as critical
Hypolite Petovan [Mon, 31 Mar 2025 21:49:30 +0000 (17:49 -0400)]
Merge pull request #14873 from annando/issue-14800-2
Fix blurred images
Michael [Mon, 31 Mar 2025 20:38:37 +0000 (20:38 +0000)]
Fix blurred images
Hypolite Petovan [Sat, 29 Mar 2025 20:10:25 +0000 (16:10 -0400)]
Merge pull request #14870 from annando/issue-14800
Added more logging to track down issue 14800
Michael [Sat, 29 Mar 2025 09:07:11 +0000 (09:07 +0000)]
Added more logging to track down issue 14800
Michael Vogel [Wed, 19 Mar 2025 03:32:31 +0000 (04:32 +0100)]
Merge pull request #14852 from MrPetovan/bug/warnings
Add support for more datetime formats
Hypolite Petovan [Tue, 18 Mar 2025 23:29:51 +0000 (19:29 -0400)]
Merge pull request #14862 from annando/fixcontacts
Add missing public contacts and account-user entries
Hypolite Petovan [Tue, 18 Mar 2025 23:29:00 +0000 (19:29 -0400)]
Merge pull request #14860 from annando/backfill
Improved support for backfilled posts
Hypolite Petovan [Tue, 18 Mar 2025 23:07:25 +0000 (19:07 -0400)]
Fix formatting in DateTimeFormatTest
Hypolite Petovan [Thu, 13 Mar 2025 02:46:36 +0000 (22:46 -0400)]
Add support for more datetime formats
- Unix Timestamp
- RFC 3339 extended + timezone name in square brackets
- Address https://github.com/friendica/friendica/issues/14647#issuecomment-
2719430131
Michael [Tue, 18 Mar 2025 05:33:01 +0000 (05:33 +0000)]
Add missing public contacts and account-user entries
Michael [Sat, 15 Mar 2025 05:35:55 +0000 (05:35 +0000)]
Improved support for backfilled posts
Michael Vogel [Sat, 15 Mar 2025 05:54:05 +0000 (06:54 +0100)]
Merge pull request #14859 from nupplaphil/feat/woodpecker
[CI] Woodpecker improvements
Philipp [Fri, 14 Mar 2025 23:39:35 +0000 (00:39 +0100)]
Avoid deprecated polluting
Philipp [Fri, 14 Mar 2025 23:18:39 +0000 (00:18 +0100)]
[CI] avoid safe.directory issues when cloning
Philipp [Fri, 14 Mar 2025 23:04:30 +0000 (00:04 +0100)]
Workaround for git.friendi.ca issue -> enforce external access
Philipp [Fri, 14 Mar 2025 22:53:11 +0000 (23:53 +0100)]
[CI] Bump PHP versions in woodpecker
Hypolite Petovan [Wed, 12 Mar 2025 13:13:48 +0000 (09:13 -0400)]
Merge pull request #14849 from Art4/patch-1
Remove BC promise for extending any non-abstract class
Artur Weigandt [Wed, 12 Mar 2025 10:06:28 +0000 (11:06 +0100)]
remove BC for extending any non-abstract class
Michael Vogel [Tue, 11 Mar 2025 14:06:59 +0000 (15:06 +0100)]
Merge pull request #14848 from MrPetovan/bug/warnings
Ward against missing array key in Protocol\Feed
Hypolite Petovan [Sat, 8 Mar 2025 21:45:11 +0000 (16:45 -0500)]
Ward against missing array key in Protocol\Feed
- Address https://github.com/friendica/friendica/issues/14647#issuecomment-
2667306693
Hypolite Petovan [Tue, 11 Mar 2025 13:02:00 +0000 (09:02 -0400)]
Merge pull request #14846 from annando/warning
Add public contact if missing
Michael [Tue, 11 Mar 2025 04:54:16 +0000 (04:54 +0000)]
Fix codestyle
Michael [Tue, 11 Mar 2025 04:43:44 +0000 (04:43 +0000)]
Add public contact if missing
Hypolite Petovan [Mon, 10 Mar 2025 14:24:49 +0000 (10:24 -0400)]
Merge pull request #14845 from annando/issue-14433
Issue 14433: Display reshared content in feeds
Michael [Sun, 9 Mar 2025 07:52:58 +0000 (07:52 +0000)]
Issue 14433: Display reshared content in feeds
Hypolite Petovan [Mon, 10 Mar 2025 00:55:25 +0000 (20:55 -0400)]
Merge pull request #14795 from Art4/deprecate-strategies-via-addons
Deprecate the strategy concept for addons
Hypolite Petovan [Sat, 8 Mar 2025 20:58:37 +0000 (15:58 -0500)]
Merge pull request #14837 from annando/fatal
Fixes fatal error "Return value must be of type Friendica\Object\OEmbed, string returned"
Michael Vogel [Sat, 8 Mar 2025 16:58:59 +0000 (17:58 +0100)]
Merge pull request #14843 from MrPetovan/bug/14828-expireposts-performance
Replace NOT EXIST(SELECT) with LEFT JOIN WHERE IS NULL in ExpirePosts
Hypolite Petovan [Sat, 8 Mar 2025 03:44:01 +0000 (22:44 -0500)]
Replace NOT EXIST(SELECT) with LEFT JOIN WHERE IS NULL in ExpirePosts
- Improves the query execution plan
Michael [Mon, 3 Mar 2025 22:30:19 +0000 (22:30 +0000)]
Fixes fatal error "Return value must be of type Friendica\Object\OEmbed, string returned"
Michael Vogel [Thu, 6 Mar 2025 04:02:57 +0000 (05:02 +0100)]
Merge pull request #14841 from MrPetovan/bug/14801-safari-workaround
[frio] Fix Safari bug where notification icon jumps to next line
Hypolite Petovan [Thu, 6 Mar 2025 00:07:10 +0000 (19:07 -0500)]
[frio] Fix Safari bug where notification icon jumps to next line
Hypolite Petovan [Wed, 5 Mar 2025 04:00:06 +0000 (23:00 -0500)]
Merge pull request #14835 from annando/api
Improved Mastodon API compatibility
Michael [Sun, 2 Mar 2025 14:38:54 +0000 (14:38 +0000)]
Support for language and publification date
Michael [Sat, 1 Mar 2025 14:40:50 +0000 (14:40 +0000)]
Fix codestyle
Michael [Sat, 1 Mar 2025 12:38:09 +0000 (12:38 +0000)]
Improved Mastodon API compatibility
Hypolite Petovan [Wed, 26 Feb 2025 15:42:42 +0000 (10:42 -0500)]
Merge pull request #14799 from Art4/replace-hooks-with-eventdispatcher
Replace Hooks with EventDispatcher Part 2
Artur Weigandt [Wed, 26 Feb 2025 07:06:35 +0000 (08:06 +0100)]
Update src/Content/OEmbed.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
Art4 [Mon, 24 Feb 2025 08:42:54 +0000 (08:42 +0000)]
Fix code style
Art4 [Mon, 24 Feb 2025 08:40:07 +0000 (08:40 +0000)]
Create Events for protocol support hooks
Art4 [Sat, 22 Feb 2025 19:22:23 +0000 (19:22 +0000)]
Create Event for jot_networks hook
Art4 [Thu, 20 Feb 2025 08:24:52 +0000 (08:24 +0000)]
Create Event for contact_block_end hook
Art4 [Mon, 17 Feb 2025 10:56:04 +0000 (10:56 +0000)]
Fix code style
Art4 [Mon, 17 Feb 2025 10:55:05 +0000 (10:55 +0000)]
Create event for html2bbcode hook
Art4 [Mon, 17 Feb 2025 10:01:25 +0000 (10:01 +0000)]
Fix code style
Art4 [Mon, 17 Feb 2025 09:54:33 +0000 (09:54 +0000)]
Fix Transmitter test
Art4 [Mon, 17 Feb 2025 09:51:21 +0000 (09:51 +0000)]
Merge branch 'develop' into replace-hooks-with-eventdispatcher
Art4 [Mon, 17 Feb 2025 09:49:16 +0000 (09:49 +0000)]
Fix Mastodon Status tests
Art4 [Mon, 17 Feb 2025 09:45:04 +0000 (09:45 +0000)]
Fix smilies tests
Tobias Diekershoff [Sun, 16 Feb 2025 15:32:10 +0000 (16:32 +0100)]
Merge pull request #14823 from annando/fix-14819
Fixes PR #14819: Add missing index
Michael [Sun, 16 Feb 2025 10:52:55 +0000 (10:52 +0000)]
Fixes PR #14819: Add missing index
Tobias Diekershoff [Sun, 16 Feb 2025 09:00:25 +0000 (10:00 +0100)]
Merge pull request #14820 from annando/exception
Fixes: Uncaught Exception TypeError: "array_merge(): Argument #1 must be of type array, int given"
Michael [Sun, 16 Feb 2025 05:59:23 +0000 (05:59 +0000)]
Fixes: Uncaught Exception TypeError: "array_merge(): Argument #1 must be of type array, int given"
Hypolite Petovan [Sun, 16 Feb 2025 00:56:37 +0000 (19:56 -0500)]
Merge pull request #14819 from annando/redirected
Handle redirected servers in server detection.
Michael [Sat, 15 Feb 2025 20:13:21 +0000 (20:13 +0000)]
Fix codestyle
Michael [Sat, 15 Feb 2025 14:43:23 +0000 (14:43 +0000)]
Handle redirected servers in server detection.
Art4 [Fri, 14 Feb 2025 15:05:12 +0000 (15:05 +0000)]
fix code style
Art4 [Fri, 14 Feb 2025 15:03:29 +0000 (15:03 +0000)]
Create events for bbcode hooks
Art4 [Fri, 14 Feb 2025 13:02:28 +0000 (13:02 +0000)]
fix code style
Art4 [Fri, 14 Feb 2025 13:00:21 +0000 (13:00 +0000)]
create event for smilie hook
Art4 [Fri, 14 Feb 2025 12:26:50 +0000 (12:26 +0000)]
Create event for page_info_data hook
Art4 [Fri, 14 Feb 2025 12:15:17 +0000 (12:15 +0000)]
Fix code style
Art4 [Fri, 14 Feb 2025 12:11:17 +0000 (12:11 +0000)]
Create event for oembed_fetch_url hook
Art4 [Fri, 14 Feb 2025 10:33:17 +0000 (10:33 +0000)]
create event for item_photo_menu hook
Art4 [Fri, 14 Feb 2025 10:19:55 +0000 (10:19 +0000)]
create event for render_location hook
Art4 [Fri, 14 Feb 2025 09:47:30 +0000 (09:47 +0000)]
Remove not needed hook call
Art4 [Fri, 14 Feb 2025 09:42:57 +0000 (09:42 +0000)]
Create Event for display_item hook
Art4 [Fri, 14 Feb 2025 08:39:58 +0000 (08:39 +0000)]
Fix code style
Art4 [Fri, 14 Feb 2025 08:38:59 +0000 (08:38 +0000)]
create event for conversation_start hook
Art4 [Fri, 14 Feb 2025 08:14:27 +0000 (08:14 +0000)]
Fix code style
Art4 [Fri, 14 Feb 2025 08:12:59 +0000 (08:12 +0000)]
Create Event for jot_tool hook
Art4 [Fri, 14 Feb 2025 07:30:35 +0000 (07:30 +0000)]
Merge branch 'develop' into replace-hooks-with-eventdispatcher
Art4 [Fri, 14 Feb 2025 07:24:47 +0000 (07:24 +0000)]
Fix code style
Art4 [Thu, 13 Feb 2025 15:29:52 +0000 (15:29 +0000)]
Create event for network_to_name hook
Hypolite Petovan [Thu, 13 Feb 2025 15:15:57 +0000 (10:15 -0500)]
Merge pull request #14811 from annando/page-language
Set the page language
Michael [Thu, 13 Feb 2025 06:55:10 +0000 (06:55 +0000)]
Fix codestyle
Michael [Thu, 13 Feb 2025 06:47:19 +0000 (06:47 +0000)]
Set the page language
Art4 [Wed, 12 Feb 2025 21:13:24 +0000 (21:13 +0000)]
Merge branch 'develop' into replace-hooks-with-eventdispatcher
Hypolite Petovan [Wed, 12 Feb 2025 16:22:26 +0000 (11:22 -0500)]
Merge pull request #14622 from Art4/introduce-phpmd
Introduce PHPMD
Michael Vogel [Wed, 12 Feb 2025 11:24:59 +0000 (12:24 +0100)]
Merge pull request #14810 from tobiasd/
20250212 -lng
updated translations
Tobias Diekershoff [Wed, 12 Feb 2025 07:10:11 +0000 (08:10 +0100)]
updated translations
Hypolite Petovan [Tue, 11 Feb 2025 16:43:52 +0000 (11:43 -0500)]
Merge pull request #14808 from MarekBenjamin/patch-1
Added dedicated friendica clients FAQ.md
MarekBenjamin [Tue, 11 Feb 2025 16:29:07 +0000 (17:29 +0100)]
Update doc/FAQ.md
new line for new sentence
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
MarekBenjamin [Tue, 11 Feb 2025 11:58:58 +0000 (12:58 +0100)]
Added dedicated friendica clients FAQ.md
Added Raccoon for Friendica and Relatic to the list, marked dedicated friendica client in bold
Art4 [Tue, 11 Feb 2025 09:59:13 +0000 (09:59 +0000)]
Merge branch 'develop' into replace-hooks-with-eventdispatcher
Michael Vogel [Tue, 11 Feb 2025 09:46:10 +0000 (10:46 +0100)]
Merge pull request #14807 from Art4/fix-database-structure
Fix database doc
Art4 [Tue, 11 Feb 2025 08:58:14 +0000 (08:58 +0000)]
Update database doc
Art4 [Tue, 11 Feb 2025 08:57:56 +0000 (08:57 +0000)]
Add composer script for update db structure
Art4 [Tue, 11 Feb 2025 07:57:29 +0000 (07:57 +0000)]
Merge branch 'develop' into introduce-phpmd
Hypolite Petovan [Tue, 11 Feb 2025 03:08:43 +0000 (22:08 -0500)]
Merge pull request #14806 from annando/refresh
Fix refresh after commenting
Michael [Mon, 10 Feb 2025 23:46:05 +0000 (23:46 +0000)]
Fix refresh after commenting