core issueshttps://framagit.org/hubzilla/core/-/issues2023-07-04T08:05:35Zhttps://framagit.org/hubzilla/core/-/issues/1776Mentions in BBcode converted to HTTPS URLs in [nobb] environments, sometimes ...2023-07-04T08:05:35ZJupiter RowlandMentions in BBcode converted to HTTPS URLs in [nobb] environments, sometimes also in [code] environmentsHubzilla converts Webfinger mentions in posts, comments or DMs into valid embedded links using ``[zrl=][/zrl]`` tags.
However, it even does so between ``[nobb][/nobb]`` tags, and under certain circumstances, it also does so between ``[c...Hubzilla converts Webfinger mentions in posts, comments or DMs into valid embedded links using ``[zrl=][/zrl]`` tags.
However, it even does so between ``[nobb][/nobb]`` tags, and under certain circumstances, it also does so between ``[code][/code]`` tags. This goes against the purpose of these tags of not changing whatever is written between them.
## Details
Only using ``[code][/code]`` tags, e.g.
```
@Webfinger ID
[code]@Webfinger ID[/code]
```
or
```
@Webfinger ID
[code]@{Webfinger ID}[/code]
```
or
```
@Webfinger ID
[code]@{Webfinger ID}[/code]
[code]@Webfinger ID[/code]
[code]@Webfinger ID[/code]
[code]@{Webfinger ID}[/code]
[code]@Webfinger ID[/code]
```
seems to work as expected.
As soon as ``[nobb][/nobb]`` comes into play, it breaks.
```
@Webfinger ID
[nobb]@Webfinger ID[/nobb]
```
doesn't work.
```
@Webfinger ID
[nobb]@{Webfinger ID}[/nobb]
```
doesn't work either.
``[nobb][/nobb]`` with curly brackets also breaks ``[code][/code]`` with curly brackets. ``[nobb][/nobb]`` without curly brackets breaks ``[code][/code]`` with and without curly brackets.
This actually becomes a problem for example when a Hubzilla user tries to explain to a Mastodon user or a user on an instance of another ActivityPub-based project why mentions coming from Hubzilla look as "weird" as they do. This would require showing them Webfinger mention code verbatim, but it's exactly this that Hubzilla makes impossible because it _always_ changes Webfinger mentions into valid BBcode.
## Steps to reproduce
1. Start a post.
2. Add one of the following code blocks:
```
[code]@jupiter_rowland@hub.netzgemeinde.eu[/code]
[code]@{jupiter_rowland@hub.netzgemeinde.eu}[/code]
[nobb]@{jupiter_rowland@hub.netzgemeinde.eu}[/nobb]
```
```
[code]@jupiter_rowland@hub.netzgemeinde.eu[/code]
[code]@{jupiter_rowland@hub.netzgemeinde.eu}[/code]
[nobb]@jupiter_rowland@hub.netzgemeinde.eu[/nobb]
```
3. Preview or submit the post.
### Expected result
The content of the ``[code][/code]`` tags is shown as code, but otherwise remains unchanged.
The content of the ``[nobb][/nobb]`` tags remains unchanged.
### Actual result
In the first example, the content of the ``[code][/code]`` tags without curly brackets is shown as code, but otherwise remains unchanged. The content of the ``[code][/code]`` tags with curly brackets is converted to ``[zrl=][/zrl]``.
In the second example, the content of the ``[code][/code]`` tags is always converted to ``[zrl=][/zrl]``.
The content of the ``[nobb][/nobb]`` tags is converted to ``[zrl=][/zrl]`` in both cases.https://framagit.org/hubzilla/core/-/issues/1599Wiki sync broken when primary is dead & unkown to destination clone.2021-11-24T00:18:51ZMalendurWiki sync broken when primary is dead & unkown to destination clone.See https://zotum.net/display/b64.aHR0cHM6Ly96b3R1bS5uZXQvYWN0aXZpdHkvMDE3NDEwMWItNzY1Zi00MDEzLTgwNjYtZjljMDRiOTY4ZDQ1See https://zotum.net/display/b64.aHR0cHM6Ly96b3R1bS5uZXQvYWN0aXZpdHkvMDE3NDEwMWItNzY1Zi00MDEzLTgwNjYtZjljMDRiOTY4ZDQ1