aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/user.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-09-01 09:25:32 +0300
committerrinpatch <rinpatch@sdf.org>2020-09-01 10:45:42 +0300
commit126461942b63bbb74900f296ebcee72d2a33f3d2 (patch)
treedda738dce0a6236e835650abf752d6ec779803ba /lib/pleroma/user.ex
parentdc3a418c270e48c6849159097f8bba57d2a2578e (diff)
downloadpleroma-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.ex4
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,