[bug] content and contentMap contain different HTML #928

Closed
opened 2025-05-15 19:22:55 +00:00 by silverpill · 0 comments

Your setup

No response

Extra details

No response

Version

3.15.2-0-g5bceb1d

PostgreSQL version

No response

What were you trying to do?

I am trying to detect the primary language of a post

What did you expect to happen?

The exact copy of content should be present in contentMap.

What actually happened?

Values don't match.

Example: https://netzsphaere.xyz/objects/db21d154-9a24-4069-8bf2-71642b69bc6c

{
  "content": "<br/><a href=\"https://netzsphaere.xyz/media/5412c37f67848fe69765a39fec861d185822b13e0ccbb34f485b9afa0484c09d.jpeg\"></a>",
  "contentMap": {
    "en": "<br><a href=\"https://netzsphaere.xyz/media/5412c37f67848fe69765a39fec861d185822b13e0ccbb34f485b9afa0484c09d.jpeg\" class='attachment'></a>"
  }
 }

Logs

No response

Severity

I can manage

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup _No response_ ### Extra details _No response_ ### Version 3.15.2-0-g5bceb1d ### PostgreSQL version _No response_ ### What were you trying to do? I am trying to detect the primary language of a post ### What did you expect to happen? The exact copy of `content` should be present in `contentMap`. ### What actually happened? Values don't match. Example: https://netzsphaere.xyz/objects/db21d154-9a24-4069-8bf2-71642b69bc6c ```json { "content": "<br/><a href=\"https://netzsphaere.xyz/media/5412c37f67848fe69765a39fec861d185822b13e0ccbb34f485b9afa0484c09d.jpeg\"></a>", "contentMap": { "en": "<br><a href=\"https://netzsphaere.xyz/media/5412c37f67848fe69765a39fec861d185822b13e0ccbb34f485b9afa0484c09d.jpeg\" class='attachment'></a>" } } ``` ### Logs _No response_ ### Severity I can manage ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
silverpill added the
bug
label 2025-05-15 19:22:55 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#928
No description provided.