Added recursive action behavior to recursively go over selected messages
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,8 +6,6 @@ kind = "action"
|
||||
|
||||
showstatus = True
|
||||
|
||||
astoken = os.environ["AS_TOKEN"]
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"space_id": ["space_id"],
|
||||
@@ -25,11 +23,6 @@ keys = [
|
||||
|
||||
method = "PUT"
|
||||
|
||||
#path = [
|
||||
# "https://loxthelion.com/_matrix/client/v3/profile/rmass_",
|
||||
# {"resolved": "sender"},
|
||||
# {"suffix": "/displayname"},
|
||||
#]
|
||||
path = [
|
||||
"https://loxthelion.com/_matrix/client/v3/rooms/",
|
||||
{"resolved": "space_id"},
|
||||
@@ -46,6 +39,3 @@ headers = {
|
||||
"Content-Type": "application/json",
|
||||
}
|
||||
|
||||
#outputs = {
|
||||
# "user_id": "user_id",
|
||||
#}
|
||||
|
||||
@@ -10,15 +10,9 @@ astoken = os.environ["AS_TOKEN"]
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
#"messageid": ["message", "id"],
|
||||
"username": ["profile", "username"],
|
||||
#"location": ["profile", "location"],
|
||||
}
|
||||
keys = [
|
||||
#{
|
||||
# "keytitle": "type",
|
||||
# "keyvalue": "m.login.application_service",
|
||||
#},
|
||||
{
|
||||
"keytitle": "displayname",
|
||||
"keyvalue": {
|
||||
@@ -29,11 +23,6 @@ keys = [
|
||||
|
||||
method = "PUT"
|
||||
|
||||
#path = [
|
||||
# "https://loxthelion.com/_matrix/client/v3/profile/rmass_",
|
||||
# {"resolved": "sender"},
|
||||
# {"suffix": "/displayname"},
|
||||
#]
|
||||
path = [
|
||||
"https://loxthelion.com/_matrix/client/v3/profile/@rmass_",
|
||||
{"resolved": "sender"},
|
||||
@@ -50,6 +39,3 @@ headers = {
|
||||
"Content-Type": "application/json",
|
||||
}
|
||||
|
||||
#outputs = {
|
||||
# "user_id": "user_id",
|
||||
#}
|
||||
|
||||
@@ -6,14 +6,11 @@ kind = "action"
|
||||
|
||||
showstatus = True
|
||||
|
||||
astoken = os.environ["AS_TOKEN"]
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
#"messageid": ["message", "id"],
|
||||
"username": ["profile", "username"],
|
||||
#"location": ["profile", "location"],
|
||||
}
|
||||
|
||||
keys = [
|
||||
{
|
||||
"keytitle": "name",
|
||||
|
||||
@@ -6,13 +6,17 @@ kind = "action"
|
||||
|
||||
showstatus = True
|
||||
|
||||
recursive = {
|
||||
"source": "messages",
|
||||
"label": "messageitem",
|
||||
}
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"message_id": ["messages", 0, "id"],
|
||||
#"username": ["profile", "username"],
|
||||
"message_body": ["messages", 0, "text"],
|
||||
"sender": ["messageitem", "senderId"],
|
||||
"message_id": ["messageitem", "id"],
|
||||
"message_body": ["messageitem", "text"],
|
||||
"room_id": ["dmroom_id"],
|
||||
#"location": ["profile", "location"],
|
||||
"timestamp": ["messageitem", "createdAt"],
|
||||
}
|
||||
keys = [
|
||||
{
|
||||
@@ -36,7 +40,9 @@ path = [
|
||||
{"resolved": "message_id"},
|
||||
"?user_id=@rmass_",
|
||||
{"resolved": "sender"},
|
||||
":loxthelion.com",
|
||||
":loxthelion.com&ts=",
|
||||
{"resolved": "timestamp"},
|
||||
"000"
|
||||
]
|
||||
|
||||
headers = {
|
||||
|
||||
@@ -6,13 +6,9 @@ kind = "action"
|
||||
|
||||
showstatus = True
|
||||
|
||||
astoken = os.environ["AS_TOKEN"]
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
#"messageid": ["message", "id"],
|
||||
"username": ["profile", "username"],
|
||||
#"location": ["profile", "location"],
|
||||
}
|
||||
keys = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user