forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-07-26 05:10:04 +02:00
parent 2934bf5ea8
commit 6612ab454f
1 changed files with 2 additions and 1 deletions

View File

@ -389,6 +389,7 @@ def api_comment(v):
print('z') print('z')
# create comment # create comment
parent_id = parent_fullname.split("_")[1] parent_id = parent_fullname.split("_")[1]
print('b')
post = get_post(parent_id) post = get_post(parent_id)
c = Comment(author_id=v.id, c = Comment(author_id=v.id,
parent_submission=parent_submission, parent_submission=parent_submission,
@ -400,7 +401,7 @@ def api_comment(v):
app_id=v.client.application.id if v.client else None, app_id=v.client.application.id if v.client else None,
shadowbanned=v.shadowbanned shadowbanned=v.shadowbanned
) )
print('a')
g.db.add(c) g.db.add(c)
g.db.flush() g.db.flush()
print("7") print("7")