summaryrefslogtreecommitdiff
path: root/indra/llui/llurlaction.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-05-09 00:07:36 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-05-12 23:17:24 +0300
commitcdb90645e7b1040b4555a9ab8d34c26c301da491 (patch)
treebd2e556eb08eabc2797e2b06ded0b99c22429efe /indra/llui/llurlaction.cpp
parent127fe9bc88ad19d8cbf69be9e09bf9fa2e7abd7b (diff)
#5744 Prefill 'report' floater for objects' IMs
Diffstat (limited to 'indra/llui/llurlaction.cpp')
-rw-r--r--indra/llui/llurlaction.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/llui/llurlaction.cpp b/indra/llui/llurlaction.cpp
index 8b320b59cc..61a529c5d2 100644
--- a/indra/llui/llurlaction.cpp
+++ b/indra/llui/llurlaction.cpp
@@ -269,13 +269,22 @@ void LLUrlAction::reportAbuse(std::string url)
}
}
+void LLUrlAction::reportAbuseObj(std::string url)
+{
+ std::string object_id = getObjectId(url);
+ if (LLUUID::validate(object_id))
+ {
+ executeSLURL("secondlife:///app/object/" + object_id + "/reportAbuse");
+ }
+}
+
void LLUrlAction::blockObject(std::string url)
{
std::string object_id = getObjectId(url);
std::string object_name = getObjectName(url);
if (LLUUID::validate(object_id))
{
- executeSLURL("secondlife:///app/agent/" + object_id + "/block/" + LLURI::escape(object_name));
+ executeSLURL("secondlife:///app/object/" + object_id + "/block/" + LLURI::escape(object_name));
}
}
@@ -285,6 +294,6 @@ void LLUrlAction::unblockObject(std::string url)
std::string object_name = getObjectName(url);
if (LLUUID::validate(object_id))
{
- executeSLURL("secondlife:///app/agent/" + object_id + "/unblock/" + object_name);
+ executeSLURL("secondlife:///app/object/" + object_id + "/unblock/" + LLURI::escape(object_name));
}
}