do not try to add null context to the session
This commit is contained in:
parent
4f11bb9f27
commit
cd10fde3a0
1 changed files with 1 additions and 1 deletions
|
@ -556,9 +556,9 @@ def fetch_reply_context(entry, in_reply_to, now):
|
|||
mf2py.parse(url=proxy_url(in_reply_to)), in_reply_to)
|
||||
if parsed:
|
||||
context = hentry_to_entry(parsed, None, False, now)
|
||||
db.session.add(context)
|
||||
|
||||
if context:
|
||||
db.session.add(context)
|
||||
entry.reply_context.append(context)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue