fix iceshrimp for real this time
This commit is contained in:
parent
2bf584b89f
commit
a171f5cbe7
1 changed files with 3 additions and 1 deletions
|
|
@ -91,6 +91,8 @@ export const parseUser = (data) => {
|
||||||
|
|
||||||
output.bot = data.bot
|
output.bot = data.bot
|
||||||
|
|
||||||
|
output.privileges = []
|
||||||
|
|
||||||
if (data.pleroma) {
|
if (data.pleroma) {
|
||||||
if (data.pleroma.settings_store) {
|
if (data.pleroma.settings_store) {
|
||||||
output.storage = data.pleroma.settings_store['pleroma-fe']
|
output.storage = data.pleroma.settings_store['pleroma-fe']
|
||||||
|
|
@ -129,7 +131,7 @@ export const parseUser = (data) => {
|
||||||
output.birthday = data.pleroma.birthday
|
output.birthday = data.pleroma.birthday
|
||||||
|
|
||||||
if (data.pleroma.privileges) {
|
if (data.pleroma.privileges) {
|
||||||
output.privileges = data.pleroma.privileges ?? []
|
output.privileges = data.pleroma.privileges
|
||||||
} else if (data.pleroma.is_admin) {
|
} else if (data.pleroma.is_admin) {
|
||||||
output.privileges = [
|
output.privileges = [
|
||||||
'users_read',
|
'users_read',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue