User table: ensure bio is always a string
authorrinpatch <rinpatch@sdf.org>
Tue, 1 Sep 2020 06:25:32 +0000 (09:25 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 1 Sep 2020 07:45:42 +0000 (10:45 +0300)
commit126461942b63bbb74900f296ebcee72d2a33f3d2
treedda738dce0a6236e835650abf752d6ec779803ba
parentdc3a418c270e48c6849159097f8bba57d2a2578e
User table: ensure bio is always a string

Gets rid of '|| ""' in multiple places and fixes #2067
lib/pleroma/user.ex
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/auth/pleroma_authenticator.ex
lib/pleroma/web/mastodon_api/views/account_view.ex
lib/pleroma/web/metadata/opengraph.ex
lib/pleroma/web/metadata/twitter_card.ex
priv/repo/migrations/20200901061256_ensure_bio_is_string.exs [new file with mode: 0644]
priv/repo/migrations/20200901061637_bio_set_not_null.exs [new file with mode: 0644]
test/user_test.exs
test/web/admin_api/controllers/admin_api_controller_test.exs
test/web/twitter_api/util_controller_test.exs