Skip to content
Snippets Groups Projects
Commit 1785b178 authored by feld's avatar feld
Browse files

Merge branch 'cherry-pick-d021c77a' into 'release/2.0.2'

Merge branch 'fix/emails-with-symbols' into 'master'

See merge request !113
parents 65af72bd 95729814
No related branches found
No related tags found
3 merge requests!119Hide Invites from menu when invites are disabled,!116AdminFE 2.0.2 release,!113Merge branch 'fix/emails-with-symbols' into 'master'
Pipeline #24076 passed
...@@ -13,14 +13,13 @@ export async function generateInviteToken(max_use, expires_at, authHost, token) ...@@ -13,14 +13,13 @@ export async function generateInviteToken(max_use, expires_at, authHost, token)
} }
export async function inviteViaEmail(email, name, authHost, token) { export async function inviteViaEmail(email, name, authHost, token) {
const url = name.length > 0 const data = name.length > 0 ? { email, name } : { email }
? `/api/pleroma/admin/users/email_invite?email=${email}&name=${name}`
: `/api/pleroma/admin/users/email_invite?email=${email}`
return await request({ return await request({
baseURL: baseName(authHost), baseURL: baseName(authHost),
url, url: '/api/pleroma/admin/users/email_invite',
method: 'post', method: 'post',
headers: authHeaders(token) headers: authHeaders(token),
data
}) })
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment