Show public activities to everrybody

This commit is contained in:
Tim Zöller 2025-12-02 22:01:27 +01:00
parent 9c745cf07d
commit d47daa6dfc
3 changed files with 39 additions and 8 deletions

View file

@ -595,12 +595,16 @@
// Setup like button click handler
document.getElementById('likeBtn').addEventListener('click', handleLikeClick);
// Show comment form for authenticated users
document.getElementById('commentForm').style.display = 'block';
// Setup comment form submit handler
document.getElementById('addCommentForm').addEventListener('submit', handleCommentSubmit);
} else {
// Show login prompt for non-authenticated users
document.getElementById('loginPrompt').style.display = 'block';
document.getElementById('likeBtn').disabled = true;
// Hide like button for non-authenticated users
document.getElementById('likeBtn').style.display = 'none';
}
}