only use entries from h-feeds when fetching reply contexts, otherwise we get ugly RSS formatted entries
This commit is contained in:
parent
5519d1d0e8
commit
bbe2d99d0a
1 changed files with 4 additions and 1 deletions
|
@ -442,7 +442,10 @@ def hentry_to_entry(hentry, feed, backfill, now):
|
|||
def fetch_reply_context(entry_id, in_reply_to, now):
|
||||
with flask_app():
|
||||
entry = Entry.query.get(entry_id)
|
||||
context = Entry.query.filter_by(permalink=in_reply_to).first()
|
||||
context = Entry.query\
|
||||
.join(Entry.feed)\
|
||||
.filter(Entry.permalink==in_reply_to, Feed.type == 'html')\
|
||||
.first()
|
||||
|
||||
if not context:
|
||||
current_app.logger.info('fetching in-reply-to url: %s',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue