[twitter] always provide an 'author' field (#831, #833)

The idea was to have less metadata clutter for most Tweets were
'author' and 'user' are the same (non-retweets), and only provide
a 'user' field.

The original Tweet author could be gotten with
{author[…]|user[…]}, but basically no one knows about that.
This commit is contained in:
Mike Fährmann
2020-06-18 00:12:36 +02:00
parent 7158bdd7c7
commit 3561d1020a

View File

@@ -154,6 +154,8 @@ class TwitterExtractor(Extractor):
if "author" in tweet:
tdata["author"] = self._transform_user(tweet["author"])
else:
tdata["author"] = tdata["user"]
return tdata