mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 11:31:23 +01:00
this also resizes the image down to that value and sends a small image to server move profileImageDimenstion & maximumProfileImageSize from edit to all profile pages, on harmony profile pic can be changed from any page by clicking the avatar change image.resize so it doesn't resize if image is already same width/height
77 lines
2.5 KiB
YAML
77 lines
2.5 KiB
YAML
get:
|
|
tags:
|
|
- users
|
|
summary: Get user profile for editing
|
|
parameters:
|
|
- name: userslug
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
example: admin
|
|
responses:
|
|
"200":
|
|
description: ""
|
|
content:
|
|
application/json:
|
|
schema:
|
|
allOf:
|
|
- $ref: ../../../components/schemas/UserObject.yaml#/UserObjectFull
|
|
- type: object
|
|
properties:
|
|
maximumSignatureLength:
|
|
type: number
|
|
maximumAboutMeLength:
|
|
type: number
|
|
allowProfilePicture:
|
|
type: boolean
|
|
allowCoverPicture:
|
|
type: boolean
|
|
allowProfileImageUploads:
|
|
type: number
|
|
allowedProfileImageExtensions:
|
|
type: string
|
|
allowMultipleBadges:
|
|
type: boolean
|
|
allowAccountDelete:
|
|
type: boolean
|
|
allowAboutMe:
|
|
type: boolean
|
|
allowSignature:
|
|
type: boolean
|
|
defaultAvatar:
|
|
type: string
|
|
sso:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
associated:
|
|
type: boolean
|
|
url:
|
|
type: string
|
|
name:
|
|
type: string
|
|
icon:
|
|
type: string
|
|
deauthUrl:
|
|
type: string
|
|
groupSelectSize:
|
|
type: number
|
|
title:
|
|
type: string
|
|
customUserFields:
|
|
type: array
|
|
editButtons:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
link:
|
|
type: string
|
|
description: A relative path to the page linked to
|
|
text:
|
|
type: string
|
|
description: Button label
|
|
- $ref: ../../../components/schemas/Breadcrumbs.yaml#/Breadcrumbs
|
|
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps |