forked from rDrama/rDrama
fdfd
parent
28389b0d3f
commit
111630dc0b
|
@ -11,11 +11,10 @@ def api_flag_post(pid, v):
|
||||||
post = get_post(pid)
|
post = get_post(pid)
|
||||||
|
|
||||||
if v:
|
if v:
|
||||||
existing = g.db.query(Flag).filter_by(
|
existing = g.db.query(Flag).filter_by(user_id=v.id, post_id=post.id).first()
|
||||||
user_id=v.id, post_id=post.id).first()
|
|
||||||
|
|
||||||
if existing: return "", 409
|
if existing: return "", 409
|
||||||
reason = sanitize(request.form.get("reason", "")[:100].strip(), flair=True)
|
reason = sanitize(request.form.get("reason", "").strip()[:100], flair=True)
|
||||||
|
|
||||||
flag = Flag(post_id=post.id,
|
flag = Flag(post_id=post.id,
|
||||||
user_id=v.id,
|
user_id=v.id,
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
<div><img src="{{v.profile_url}}" class="profile-pic-35"></div>
|
<div><img src="{{v.profile_url}}" class="profile-pic-35"></div>
|
||||||
<div class="text-left pl-2">
|
<div class="text-left pl-2">
|
||||||
<div style="color: #{{v.namecolor}}" class="text-small font-weight-bold {% if v.animatedname %}{% if v.patron %}patron{% else %}leaderboard{% endif %}{% endif %}">{{v.username}}</div>
|
<div style="color: #{{v.namecolor}}" class="text-small font-weight-bold {% if v.animatedname %}{% if v.patron %}patron{% else %}leaderboard{% endif %}{% endif %}">{{v.username}}</div>
|
||||||
<div class="text-small-extra text-purple"><i class="fad fa-diamond mr-1"></i>{{v.coins}} {{"SITE_NAME" | app_config}}coins</div>
|
<div class="text-small-extra text-purple"><i class="fad fa-coins mr-1"></i>{{v.coins}} {{"SITE_NAME" | app_config}}coins</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue