a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[backend/libmfm] Fix potential crash on HTML ruby handling

Kopper fdfcb806 b2a147d7

+3 -2
+3 -2
Iceshrimp.Backend/Core/Helpers/LibMfm/Parsing/HtmlParser.cs
··· 100 100 foreach (var rp in node.ChildNodes.QuerySelectorAll("rp")) 101 101 rp.Remove(); 102 102 103 - node.RemoveChild(rt); // so ParseChildren(node) below does not see it 104 - return $"$[ruby {ParseChildren(node)} {ParseChildren(rt)}]"; 103 + var rtChildren = ParseChildren(rt); 104 + rt.Remove(); // so ParseChildren(node) below does not see it 105 + return $"$[ruby {ParseChildren(node)} {rtChildren}]"; 105 106 } 106 107 107 108 case "VIDEO":