forked from AkkomaGang/akkoma-fe
actually use embedded relationship if it's present
This commit is contained in:
parent
a6a162177b
commit
b9877a4323
1 changed files with 7 additions and 4 deletions
|
@ -59,10 +59,13 @@ export const parseUser = (data) => {
|
||||||
output.statusnet_profile_url = data.url
|
output.statusnet_profile_url = data.url
|
||||||
|
|
||||||
if (data.pleroma) {
|
if (data.pleroma) {
|
||||||
const pleroma = data.pleroma
|
const relationship = data.pleroma.relationship
|
||||||
output.follows_you = pleroma.follows_you
|
|
||||||
output.statusnet_blocking = pleroma.statusnet_blocking
|
if (relationship) {
|
||||||
output.muted = pleroma.muted
|
output.follows_you = relationship.follows_you
|
||||||
|
output.statusnet_blocking = relationship.statusnet_blocking
|
||||||
|
output.muted = relationship.muted
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Missing, trying to recover
|
// Missing, trying to recover
|
||||||
|
|
Loading…
Reference in a new issue