Skip to content

Commit

Permalink
original post discovery: support note attachments, eg for quote tweets
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jul 24, 2019
1 parent 560ebef commit 41fd491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion granary/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def original_post_discovery(activity, domains=None, cache=None,

# find all candidate URLs
tags = [t.get('url') for t in obj.get('attachments', []) + obj.get('tags', [])
if t.get('objectType') in ('article', 'mention', None)]
if t.get('objectType') in ('article', 'mention', 'note', None)]
candidates = tags + util.extract_links(content) + obj.get('upstreamDuplicates', [])

# Permashortcitations (http://indiewebcamp.com/permashortcitation) are short
Expand Down

0 comments on commit 41fd491

Please sign in to comment.