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
b520d44b
Commit
b520d44b
authored
Dec 19, 2018
by
Ivan Tashkinov
Browse files
[#114] `mix format`
parent
27909622
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/twitter_api/twitter_api_controller.ex
View file @
b520d44b
...
...
@@ -100,7 +100,9 @@ def show_user(conn, params) do
for_user
=
conn
.
assigns
.
user
with
{
:ok
,
shown
}
<-
TwitterAPI
.
get_user
(
params
),
true
<-
User
.
auth_active?
(
shown
)
||
for_user
&&
(
for_user
.
id
==
shown
.
id
||
User
.
superuser?
(
for_user
))
do
true
<-
User
.
auth_active?
(
shown
)
||
(
for_user
&&
(
for_user
.
id
==
shown
.
id
||
User
.
superuser?
(
for_user
)))
do
params
=
if
for_user
do
%{
user:
shown
,
for:
for_user
}
...
...
Write
Preview
Supports
Markdown
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