mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Fix warnings.
This commit is contained in:
parent
8682be29a5
commit
d6bf06ab4f
1 changed files with 2 additions and 2 deletions
|
@ -807,8 +807,8 @@ defmodule Pleroma.User do
|
|||
end
|
||||
|
||||
def parse_bio(bio, user \\ %User{info: %{source_data: %{}}})
|
||||
def parse_bio(nil, user), do: ""
|
||||
def parse_bio(bio, user) when bio == "", do: bio
|
||||
def parse_bio(nil, _user), do: ""
|
||||
def parse_bio(bio, _user) when bio == "", do: bio
|
||||
|
||||
def parse_bio(bio, user) do
|
||||
mentions = Formatter.parse_mentions(bio)
|
||||
|
|
Loading…
Reference in a new issue