diff options
author | rinpatch <rinpatch@sdf.org> | 2020-09-01 09:25:32 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-01 10:45:42 +0300 |
commit | 126461942b63bbb74900f296ebcee72d2a33f3d2 (patch) | |
tree | dda738dce0a6236e835650abf752d6ec779803ba /lib/pleroma/user.ex | |
parent | dc3a418c270e48c6849159097f8bba57d2a2578e (diff) | |
download | pleroma-126461942b63bbb74900f296ebcee72d2a33f3d2.tar.gz |
User table: ensure bio is always a string
Gets rid of '|| ""' in multiple places and fixes #2067
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r-- | lib/pleroma/user.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index d2ad9516f..94c96de8d 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -83,7 +83,7 @@ defmodule Pleroma.User do ] schema "users" do - field(:bio, :string) + field(:bio, :string, default: "") field(:raw_bio, :string) field(:email, :string) field(:name, :string) @@ -1587,7 +1587,7 @@ defmodule Pleroma.User do # "Right to be forgotten" # https://gdpr.eu/right-to-be-forgotten/ change(user, %{ - bio: nil, + bio: "", raw_bio: nil, email: nil, name: nil, |