Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AUTHORIZED_FETCH disclaimer to Actor Profile error messages #19

Merged
merged 8 commits into from
May 27, 2024
1 change: 1 addition & 0 deletions actor-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class ActorProfile extends HTMLElement {
if (actorInfo.preferredUsername) {
const pUserName = document.createElement('div')
RangerMauve marked this conversation as resolved.
Show resolved Hide resolved
pUserName.classList.add('profile-username')
pUserName.href = db.getObjectPage(actorInfo)
pUserName.textContent = `@${actorInfo.preferredUsername}`
actorContainer.appendChild(pUserName) // Append to the actor container

Expand Down
4 changes: 2 additions & 2 deletions profile.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>User Profile</title>
<title>Reader Profile</title>
<style>
@import url("./actor-profile.css");
@import url("./common.css");
Expand All @@ -23,7 +23,7 @@
</div>
<script>
document.addEventListener('usernameUpdated', (event) => {
document.title = `@${event.detail.username}`;
document.title += ` @${event.detail.username}`;
});

// Get actor url
Expand Down
Loading