1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[mastodon] fix reblogs (#4580)

This commit is contained in:
Mike Fährmann 2023-11-11 00:34:49 +01:00
parent 7a0f145cbe
commit 4288cea94a
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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,
)