parent
618b8c93e1
commit
5a449eb0be
|
@ -33,8 +33,8 @@ extension GetInstanceCommentView on Comment {
|
|||
// TODO: change it to something more robust? regex?
|
||||
String _extract(String s) => cleanUpUrl(s.split('/')[2]);
|
||||
|
||||
extension ProperName on UserSafe {
|
||||
String get properName {
|
||||
extension DisplayName on UserSafe {
|
||||
String get displayName {
|
||||
final name = () {
|
||||
if (preferredUsername != null && preferredUsername != '') {
|
||||
return preferredUsername;
|
||||
|
|
|
@ -216,7 +216,7 @@ class CommentWidget extends HookWidget {
|
|||
}
|
||||
|
||||
// decide which username to use
|
||||
final username = comment.creator.properName;
|
||||
final username = comment.creator.displayName;
|
||||
|
||||
final body = () {
|
||||
if (isDeleted.value) {
|
||||
|
|
|
@ -195,7 +195,7 @@ class PostWidget extends HookWidget {
|
|||
text: 'by',
|
||||
style: TextStyle(fontWeight: FontWeight.w300)),
|
||||
TextSpan(
|
||||
text: ' ${post.creator.properName}',
|
||||
text: ' ${post.creator.displayName}',
|
||||
style:
|
||||
const TextStyle(fontWeight: FontWeight.w600),
|
||||
recognizer: TapGestureRecognizer()
|
||||
|
|
Loading…
Reference in New Issue