From e15c7f824d102397862c61453a2dd7ad4cb10c3d Mon Sep 17 00:00:00 2001 From: Akhilesh Thite Date: Thu, 23 May 2024 17:31:55 +0530 Subject: [PATCH] refactor: change pUserName element from 'div' to 'a' for hyperlink functionality --- actor-profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actor-profile.js b/actor-profile.js index e55c642..9e34f34 100644 --- a/actor-profile.js +++ b/actor-profile.js @@ -83,7 +83,7 @@ class ActorProfile extends HTMLElement { } if (actorInfo.preferredUsername) { - const pUserName = document.createElement('div') + const pUserName = document.createElement('a') pUserName.classList.add('profile-username') pUserName.href = db.getObjectPage(actorInfo) pUserName.textContent = `@${actorInfo.preferredUsername}`