fdfd
parent
ae8a18d265
commit
410536bed5
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -196,6 +196,7 @@
|
|||
{% if c.flags %}
|
||||
<div id="flaggers-{{c.id}}" class="flaggers">
|
||||
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
|
||||
<pre></pre>
|
||||
<ul style="padding-left:20px; margin-bottom: 0;">
|
||||
{% for f in c.flags %}
|
||||
<li><a href="{{f.user.url}}">@{{f.user.username}}</a>: {{f.reason}}</li>
|
||||
|
|
|
@ -504,6 +504,7 @@
|
|||
{% if p.flags %}
|
||||
<div id="flaggers" class="flaggers">
|
||||
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
|
||||
<pre></pre>
|
||||
<ul style="padding-left:20px; margin-bottom: 0;">
|
||||
{% for f in p.flags %}
|
||||
<li><a href="{{f.user.url}}">@{{f.user.username}}</a>: {{f.reason}}</li>
|
||||
|
|
|
@ -412,6 +412,7 @@
|
|||
{% if p.flags %}
|
||||
<div id="flaggers-{{p.id}}" class="flaggers">
|
||||
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
|
||||
<pre></pre>
|
||||
<ul style="padding-left:20px; margin-bottom: 0;">
|
||||
{% for f in p.flags %}
|
||||
<li><a href="{{f.user.url}}">@{{f.user.username}}</a>: {{f.reason}}</li>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<div class="container-fluid">
|
||||
<div class="d-md-flex text-center text-md-left">
|
||||
<div>
|
||||
<a href="{{u.profile_url}}"><img src="{{u.profile_url}}" class="profile-pic profile-pic-100 mb-5"></a>
|
||||
<a href="{% if u.highres %}{{u.highres}}{% else %}{{u.profile_url}}{% endif %}"><img src="{{u.profile_url}}" class="profile-pic profile-pic-100 mb-5"></a>
|
||||
</div>
|
||||
<div class="ml-3 w-100">
|
||||
{% if u.is_banned %}
|
||||
|
@ -277,7 +277,7 @@
|
|||
<div class="row border-bottom">
|
||||
<div class="col">
|
||||
<div style="margin-top: -34px;">
|
||||
<a href="{{u.profile_url}}"><img src="{{u.profile_url}}" class="profile-pic-65 bg-white border-2 border-white mb-2"></a>
|
||||
<a href="{% if u.highres %}{{u.highres}}{% else %}{{u.profile_url}}{% endif %}"><img src="{{u.profile_url}}" class="profile-pic-65 bg-white border-2 border-white mb-2"></a>
|
||||
</div>
|
||||
<div class="mt-n3 py-3">
|
||||
{% if u.is_banned %}
|
||||
|
|
Loading…
Reference in New Issue