mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
[mastodon] fix reblogs (#4580)
This commit is contained in:
parent
7a0f145cbe
commit
4288cea94a
@ -45,6 +45,9 @@ class MastodonExtractor(BaseExtractor):
|
||||
attachments = status["media_attachments"]
|
||||
del status["media_attachments"]
|
||||
|
||||
if status["reblog"]:
|
||||
attachments.extend(status["reblog"]["media_attachments"])
|
||||
|
||||
status["instance"] = self.instance
|
||||
acct = status["account"]["acct"]
|
||||
status["instance_remote"] = \
|
||||
@ -113,7 +116,10 @@ class MastodonUserExtractor(MastodonExtractor):
|
||||
|
||||
return api.account_statuses(
|
||||
api.account_id_by_username(self.item),
|
||||
only_media=not self.config("text-posts", False),
|
||||
only_media=(
|
||||
not self.reblogs and
|
||||
not self.config("text-posts", False)
|
||||
),
|
||||
exclude_replies=not self.replies,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user