MRF to reject misskey animations? #2774

Open
opened 2021-10-19 08:27:38 +00:00 by mightypork · 1 comment
Member

Something to add to the MRF wishlist.

I'm now blocking Misskey MFM and LaTeX with these keywords, but it's far from reliable.
(alternatively pleroma-fe could implement it 🤔)

Screenshot_20211019_102426

Something to add to the MRF wishlist. I'm now blocking Misskey MFM and LaTeX with these keywords, but it's far from reliable. (alternatively pleroma-fe could implement it :thinking:) ![Screenshot_20211019_102426](/attachments/efaa4c65-6454-4b00-a648-2d2e101c5e86)
Member

In case of misskey, I see that misskey has both a content and a _misskey_content field. It seems the regular content field already has a bunch of the MFM stripped, but not everything.

If the goal is to really drop the posts, then I guess some sort of check could be done in an MRF on these fields. If the goal is just to not see things like \\hspace{190mu}, then maybe it's rather something misskey should do (since they already strip some parts, I assume it's a bug on their side that they do not strip all of it).

For LaTeX I don't have an example of a post, so I'm not sure how it's done AP-wise.

Misskey example

  "content": "<p><div><i>☁️</i><code>\\hspace{190mu}</code><i>🌕</i><span><br></span><code>\\\\[-70mu]</code><i><code>\\hspace{50mu}</code><i><code>\\hspace{50mu}</code><i><i><i><i>:blobcatwitch:</i></i><span><br></span><code>\\\\[-65mu]</code><code>\\hspace{7mu}</code><i>🧹</i></i></i></i></i><span><br><br><br>Blobcat on his way to the Halloween party<br>(Thank you </span><a href=\"https://mk.striker.net.eu.org/@striker\" class=\"u-url mention\">@striker@mk.striker.net.eu.org</a><span> for inspiration)</span></div></p>",
  "_misskey_content": "<center>\n$[x3 ☁️]\\(\\hspace{190mu}\\)$[x3 🌕]\n\\(\\\\[-70mu]\\)$[spin.speed=10s \\(\\hspace{50mu}\\)$[spin.left,speed=5s \\(\\hspace{50mu}\\)$[spin.speed=10s $[twitch.speed=20s $[flip $[x2 :blobcatwitch:]]\n\\(\\\\[-65mu]\\)\\(\\hspace{7mu}\\)$[x3 🧹]]]]]\n\n\nBlobcat on his way to the Halloween party\n(Thank you @striker@mk.striker.net.eu.org for inspiration)\n</center>",
In case of misskey, I see that misskey has both a `content` and a `_misskey_content` field. It seems the regular `content` field already has a bunch of the MFM stripped, but not everything. If the goal is to really drop the posts, then I guess some sort of check could be done in an MRF on these fields. If the goal is just to not see things like `\\hspace{190mu}`, then maybe it's rather something misskey should do (since they already strip some parts, I assume it's a bug on their side that they do not strip all of it). For LaTeX I don't have an example of a post, so I'm not sure how it's done AP-wise. Misskey example ``` "content": "<p><div><i>☁️</i><code>\\hspace{190mu}</code><i>🌕</i><span><br></span><code>\\\\[-70mu]</code><i><code>\\hspace{50mu}</code><i><code>\\hspace{50mu}</code><i><i><i><i>:blobcatwitch:</i></i><span><br></span><code>\\\\[-65mu]</code><code>\\hspace{7mu}</code><i>🧹</i></i></i></i></i><span><br><br><br>Blobcat on his way to the Halloween party<br>(Thank you </span><a href=\"https://mk.striker.net.eu.org/@striker\" class=\"u-url mention\">@striker@mk.striker.net.eu.org</a><span> for inspiration)</span></div></p>", "_misskey_content": "<center>\n$[x3 ☁️]\\(\\hspace{190mu}\\)$[x3 🌕]\n\\(\\\\[-70mu]\\)$[spin.speed=10s \\(\\hspace{50mu}\\)$[spin.left,speed=5s \\(\\hspace{50mu}\\)$[spin.speed=10s $[twitch.speed=20s $[flip $[x2 :blobcatwitch:]]\n\\(\\\\[-65mu]\\)\\(\\hspace{7mu}\\)$[x3 🧹]]]]]\n\n\nBlobcat on his way to the Halloween party\n(Thank you @striker@mk.striker.net.eu.org for inspiration)\n</center>", ```
Sign in to join this conversation.
No milestone
No project
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
pleroma/pleroma#2774
No description provided.