Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
95e6e821
Commit
95e6e821
authored
Feb 22, 2018
by
lain
Browse files
Correctly display accounts without name.
parent
27576828
Pipeline
#801
failed with stage
in 2 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/mastodon_api/views/account_view.ex
View file @
95e6e821
...
...
@@ -18,7 +18,7 @@ def render("account.json", %{user: user}) do
id:
to_string
(
user
.
id
),
username:
hd
(
String
.
split
(
user
.
nickname
,
"@"
)),
acct:
user
.
nickname
,
display_name:
user
.
name
,
display_name:
user
.
name
||
user
.
nickname
,
locked:
false
,
created_at:
Utils
.
to_masto_date
(
user
.
inserted_at
),
followers_count:
user_info
.
follower_count
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment