Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
pleroma-fe
Commits
341416b0
Commit
341416b0
authored
5 years ago
by
Ivan Tashkinov
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Merge branch 'revert-
96cab6d8
' into 'develop'"
This reverts merge request
!1032
parent
c7376b83
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1034
Reinstate `push` and `admin` scopes
,
!1028
`master` refresh with `develop`
Pipeline
#21063
passed
5 years ago
Stage: lint
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/services/new_api/oauth.js
+2
-2
2 additions, 2 deletions
src/services/new_api/oauth.js
with
2 additions
and
2 deletions
src/services/new_api/oauth.js
+
2
−
2
View file @
341416b0
...
...
@@ -12,7 +12,7 @@ export const getOrCreateApp = ({ clientId, clientSecret, instance, commit }) =>
form
.
append
(
'
client_name
'
,
`PleromaFE_
${
window
.
___pleromafe_commit_hash
}
_
${(
new
Date
()).
toISOString
()}
`
)
form
.
append
(
'
redirect_uris
'
,
REDIRECT_URI
)
form
.
append
(
'
scopes
'
,
'
read write follow
'
)
form
.
append
(
'
scopes
'
,
'
read write follow
push admin
'
)
return
window
.
fetch
(
url
,
{
method
:
'
POST
'
,
...
...
@@ -28,7 +28,7 @@ const login = ({ instance, clientId }) => {
response_type
:
'
code
'
,
client_id
:
clientId
,
redirect_uri
:
REDIRECT_URI
,
scope
:
'
read write follow
'
scope
:
'
read write follow
push admin
'
}
const
dataString
=
reduce
(
data
,
(
acc
,
v
,
k
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment