No Branch/Tag Specified
translations
develop
stable
contentMap
language-on-posts
rabbit
credo-on-pr
unify-http
normalise-markup-by-default
buildx
v1.1.5
v1.1.4
pre-rebase
soapbox-v1.0.0
soapbox-v1.1.0
soapbox-v1.1.1
stable-2022.07
stable-202209
v0.0.1
v0.9.0
v1.0.0
v1.0.1
v1.0.2
v1.0.3
v1.0.4
v1.0.5
v1.0.6
v1.0.7
v1.0.90
v1.0.91
v1.1.0
v1.1.1
v1.1.2
v1.1.3
v1.1.6
v1.1.7
v1.1.8
v1.1.9
v2.0.0
v2.0.1
v2.0.2
v2.0.3
v2.0.4
v2.0.5
v2.0.6
v2.0.7
v2.1.0
v2.1.1
v2.1.2
v2.2.0
v2.2.1
v2.2.2
v2.3.0
v2.4.0
v2.4.1
v2.4.2
v2.4.3
v2.4.4
v2.5.0
v2.5.0-1
v2.5.0-2
v2.5.0-3
v2.5.0-4
v2.5.0-5
v2.5.0-6
v2.5.0-7
v2.5.0-8
v2.5.1
v2.5.2
v2.5.2-1
v2.5.2-2
v2.5.2-3
v2.5.2-4
v2.5.2-5
v2.5.2-6
v3.0.0
v3.1.0
v3.2.0
v3.2.1
v3.2.2
v3.2.3
v3.3.0
v3.3.1
v3.4.0
v3.5.0
v3.6.0
v3.7.0
v3.7.1
Labels
Something is not working configuration
This requires config changes documentation
This is about human-readable docs duplicate
This issue or pull request already exists enhancement
New feature extremely low priority feature request
Something new? help wanted
Need some help invalid
Something is wrong mastodon_api needs docs needs tests not a bug planned pleroma_api privacy question
More information is needed static_fe triage wontfix
This won't be fixed
Apply labels
Clear labels
approved, awaiting change
bug
Something is not working configuration
This requires config changes documentation
This is about human-readable docs duplicate
This issue or pull request already exists enhancement
New feature extremely low priority feature request
Something new? help wanted
Need some help invalid
Something is wrong mastodon_api needs docs needs tests not a bug planned pleroma_api privacy question
More information is needed static_fe triage wontfix
This won't be fixed
No Label
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
2 Participants
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#58
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
this is a problem I encountered while writing marked-mfm:
the
mfm_content
attribute is completely plaintext as opposed toraw_html
. this is fine for things like markdown or HTML, since Marked is going to parse them on the frontend, with two exceptions: mentions and hashtags.I could parse them on the frontend through Marked, but I think that's not a good idea for a few reasons:
HashtagLink
andMentionsLine
given the proper attributeswhat if instead of being completely plaintext,
mfm_content
came with the mentions and hashtags already linked? then all we'd have to do is parse it usingmarked-mfm
, shove it in a RichContent (in the case of pleroma-fe) and it's done.my rationale for this is that, while mfm rendering is done entirely by the client, even
plaintext
posts have mentions and hashtagsALSO!!! this would be very useful for people who don't wanna see mfm formatting
if we show them
mfm_content
regardless, but just don't parse it, they're gonna see the$[tada plain mfm]
instead of italic textkilling two birds with one stone
psuedocode (i don't know elixir hhh):
and on the frontend:
basically, completely ignoring what HTML Misskey chose to send us (it probably wasn't anything good anyway)
yeah, we probably should be able to pre-link it
but i'm not a fan of the per-content-type flag, it feels prone to being extended in the future and we won't want
is_someothertype
checksmy proposal would be to pre-link in the same way as plaintext, but then have the frontend rely on a
status.content_type
fieldthat's a better solution, yes
currently the frontend relies on
status.mfm_content
existing to figure out if it's mfm or not but that would work with this solution so i added a flagbut using Content-Types is better
ok, i've got an example format for you
returned as the status json
that feeling better to you?
yes
one other thing i noticed is how the backend rewrites
\n
to<br>
on all types other than mfmso currently i replace it in the frontend but if it can be replaced here that would be better i think, for consistency
yea luckily a side-effect of using the linker is that it does that - so it'll be
<br>
post change(obv ignore the unlinked @ i have a buggo)
reckon we can probably close this one off now