diff --git a/drama/classes/comment.py b/drama/classes/comment.py index 8a93e34b2..54eae146e 100644 --- a/drama/classes/comment.py +++ b/drama/classes/comment.py @@ -149,6 +149,8 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing): 'deleted_utc': self.deleted_utc, 'is_nsfw': self.over_18, 'permalink': self.permalink, + 'is_pinned': self.is_pinned, + 'distinguish_level': self.distinguish_level, 'post_id': self.post.base36id, 'score': self.score_fuzzed, 'upvotes': self.upvotes_fuzzed, diff --git a/drama/classes/submission.py b/drama/classes/submission.py index 04d8e802e..8c2f3cbf1 100644 --- a/drama/classes/submission.py +++ b/drama/classes/submission.py @@ -236,6 +236,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing): 'upvotes': self.upvotes_fuzzed, 'downvotes': self.downvotes_fuzzed, 'stickied': self.stickied, + 'distinguish_level': self.distinguish_level, #'award_count': self.award_count, 'meta_title': self.meta_title, 'meta_description': self.meta_description, diff --git a/drama/routes/settings.py b/drama/routes/settings.py index d98a53a08..18b0db4a7 100644 --- a/drama/routes/settings.py +++ b/drama/routes/settings.py @@ -329,9 +329,10 @@ def settings_images_profile(v): g.db.rollback() abort(413) - v.profileurl = None + highres = upload_file(name=f"profile.gif", file=request.files["profile"]) imageurl = upload_file(name=f"profile.gif", file=request.files["profile"], resize=(100, 100)) if imageurl: + v.highres = highres v.profileurl = imageurl g.db.add(v) diff --git a/drama/templates/comments.html b/drama/templates/comments.html index f60b72856..077bbba08 100644 --- a/drama/templates/comments.html +++ b/drama/templates/comments.html @@ -196,6 +196,7 @@ {% if c.flags %}
Reported by: +