getting and setting user background via MastoAPI

This commit is contained in:
Henry Jameson 2019-06-16 20:17:59 +03:00
parent e3638af031
commit 6744396f82
4 changed files with 18 additions and 50 deletions

View file

@ -60,6 +60,9 @@ export const parseUser = (data) => {
if (data.pleroma) {
const relationship = data.pleroma.relationship
output.background_image = data.pleroma.background_image
output.token = data.pleroma.chat_token
if (relationship) {
output.follows_you = relationship.followed_by
output.following = relationship.following