logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: bf0008594622acc31af6f43607c4d89f1c19d287
parent 83189d9d41042177b32f97341ee3484ae4ec0152
Author: feld <feld@feld.me>
Date:   Sun,  1 Sep 2024 16:12:39 +0000

Merge branch 'oauth-app-name' into 'develop'

Simplify the OAuth client_name

See merge request pleroma/pleroma-fe!1930

Diffstat:

Achangelog.d/oauth-app-name.change1+
Msrc/services/new_api/oauth.js3++-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/changelog.d/oauth-app-name.change b/changelog.d/oauth-app-name.change @@ -0,0 +1 @@ +Simplify the OAuth client_name to 'PleromaFE' diff --git a/src/services/new_api/oauth.js b/src/services/new_api/oauth.js @@ -10,7 +10,8 @@ export const getOrCreateApp = ({ clientId, clientSecret, instance, commit }) => const url = `${instance}/api/v1/apps` const form = new window.FormData() - form.append('client_name', `PleromaFE_${window.___pleromafe_commit_hash}_${(new Date()).toISOString()}`) + form.append('client_name', 'PleromaFE') + form.append('website', 'https://pleroma.social') form.append('redirect_uris', REDIRECT_URI) form.append('scopes', 'read write follow push admin')