Added user avatar assignment

This commit is contained in:
Lyncoln
2026-10-18 00:17:19 -04:00
parent d58ea3112a
commit 4e1034d630
3 changed files with 120 additions and 0 deletions
@@ -0,0 +1,30 @@
name = "Upload Avatar to Synapse"
kind = "action"
alias = "uploadavatar"
showstatus = True
isrequest = True
method = "POST"
#To add resolution suffix, second item must be a dictionary. References the "path" library under resolved
path = [
"https://loxthelion.com/_matrix/media/v3/upload?filename=avatar.jpg",
]
headers = {
"Authorization": {
"os": "AS_TOKEN",
"prefix": "Bearer ",
},
"Content-Type": "image/jpeg",
}
requestdata = "useravatar"
outputs = {
"uploadimage": "content_uri",
}