From 80d240a45b3e73f642de11e724db121807da5e10 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 11 Nov 2022 17:22:10 +0200 Subject: [PATCH] show join date on popover --- files/assets/js/comments+submission_listing.js | 1 + files/classes/user.py | 1 + files/templates/popover.html | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/files/assets/js/comments+submission_listing.js b/files/assets/js/comments+submission_listing.js index 5b0f0bcf7..6740f3332 100644 --- a/files/assets/js/comments+submission_listing.js +++ b/files/assets/js/comments+submission_listing.js @@ -58,6 +58,7 @@ function popclick(e) { popover.getElementsByClassName('pop-commentcount')[0].innerHTML = author["comment_count"] popover.getElementsByClassName('pop-coins')[0].innerHTML = author["coins"] popover.getElementsByClassName('pop-viewmore')[0].href = author["url"] + popover.getElementsByClassName('pop-created-date')[0].innerHTML = author["created_date"] }, 5); } diff --git a/files/classes/user.py b/files/classes/user.py index 9ee9d090a..a7b136081 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -808,6 +808,7 @@ class User(Base): 'post_count': 0 if self.shadowbanned and not (v and v.can_see_shadowbanned) else self.post_count, 'comment_count': 0 if self.shadowbanned and not (v and v.can_see_shadowbanned) else self.comment_count, 'badges': [x.path for x in self.badges], + 'created_date': self.created_date, } return data diff --git a/files/templates/popover.html b/files/templates/popover.html index 5183117bf..3f4c50504 100644 --- a/files/templates/popover.html +++ b/files/templates/popover.html @@ -7,7 +7,8 @@
-
+
+ Joined