Quoting assumes author is a hyperlink

Created on 23 September 2024, 2 months ago

The javascript in js/quote.js assumes the author will always be a hyperlink:

const username = parent.find('.comment__author a').text();

This means that if the author is not clickable (ie when a user does not have permission to view the comment authors profile page), the username is not identified and the output is "wrote:" with the username missing.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom iancawthorne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024