X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fuser.ex;h=01d532ab3158b3060e26a3fb0d3d69f6c37c5bcc;hb=14bc6bd40f0ea7879cd75444939669ee6e6ac85c;hp=12e0e818ebf0f6951603e53facb56245c5fb1a26;hpb=90d0d055fccc630066e66627281432e382aefdb1;p=akkoma diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 12e0e818e..01d532ab3 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -1193,9 +1193,6 @@ defmodule Pleroma.User do def parse_bio(bio, _user) when bio == "", do: bio def parse_bio(bio, user) do - mentions = Formatter.parse_mentions(bio) - tags = Formatter.parse_tags(bio) - emoji = (user.info.source_data["tag"] || []) |> Enum.filter(fn %{"type" => t} -> t == "Emoji" end) @@ -1204,7 +1201,8 @@ defmodule Pleroma.User do end) bio - |> CommonUtils.format_input(mentions, tags, "text/plain", user_links: [format: :full]) + |> CommonUtils.format_input("text/plain", mentions_format: :full) + |> elem(0) |> Formatter.emojify(emoji) end