summaryrefslogtreecommitdiff
path: root/indra/llui/llurlaction.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2025-07-29 18:47:44 +0300
committerGitHub <noreply@github.com>2025-07-29 18:47:44 +0300
commit514b658fde13bb0c0ec862b081eeebf47bace70d (patch)
tree73224d97f9588cf673b3f0cdd79c3d62c798919c /indra/llui/llurlaction.cpp
parent3b8b408b9031f295a936eb5e3342fbb7eb671c7c (diff)
#4385 show agent name next to @ mention url in chat logs
Diffstat (limited to 'indra/llui/llurlaction.cpp')
-rw-r--r--indra/llui/llurlaction.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llui/llurlaction.cpp b/indra/llui/llurlaction.cpp
index b6b450c2a1..d017f536f0 100644
--- a/indra/llui/llurlaction.cpp
+++ b/indra/llui/llurlaction.cpp
@@ -142,6 +142,16 @@ void LLUrlAction::copyLabelToClipboard(std::string url)
}
}
+std::string LLUrlAction::getURLLabel(std::string url)
+{
+ LLUrlMatch match;
+ if (LLUrlRegistry::instance().findUrl(url, match))
+ {
+ return match.getLabel();
+ }
+ return "";
+}
+
void LLUrlAction::showProfile(std::string url)
{
// Get id from 'secondlife:///app/{cmd}/{id}/{action}'