forked from rDrama/rDrama
css
parent
fa785f2acb
commit
48bf361028
|
@ -50,6 +50,11 @@ def api_flag_comment(cid, v):
|
|||
if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.gif'):
|
||||
reason = reason.replace(f':{i.group(1)}:', f'<img data-toggle="tooltip" title="{i.group(1)}" delay="0" height=20 src="https://{site}/assets/images/emojis/{i.group(1)}.gif"<span>')
|
||||
|
||||
flag = CommentFlag(post_id=post.id,
|
||||
user_id=v.id,
|
||||
reason=reason,
|
||||
)
|
||||
|
||||
g.db.add(flag)
|
||||
|
||||
return "", 204
|
Loading…
Reference in New Issue