Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mastodon] Warn about a moved account #2939

Closed
AlttiRi opened this issue Sep 19, 2022 · 1 comment
Closed

[mastodon] Warn about a moved account #2939

AlttiRi opened this issue Sep 19, 2022 · 1 comment

Comments

@AlttiRi
Copy link

AlttiRi commented Sep 19, 2022

A moved account's JSON looks like this:

"account": {
  "acct": "OldName",
  "moved": {
    "acct": "NewAccName"
  }
}

I would like if gallery-dl will warn if an account is moved, since new posts will be posted on the new account.
Or just automatically follow to the new account and download it too.

Since I just use a list of URL with --input-file option without visiting the profiles in a web browser, I can't know if someone has moved to a new page, so I just miss the new content posted after the profile moving.


An account can move to another mastodon instance also:

  "moved": {
    "acct": "[email protected]",
  }

An example I found: https://mastodon.social/@body -> https://glaceon.social/@argr

@mikf
Copy link
Owner

mikf commented Sep 20, 2022

Implemented a simple warning message for now (2787c85)

$ gallery-dl https://mastodon.social/@body
[mastodon.social][warning] Account 'body' moved to '[email protected]'
/tmp/mastodon/mastodon.social/body/mast…06812754755699210_106812750412766707.png
...

Automatically downloading from the new account might not be possible since it needs an access_token for the potentially new mastodon instance to get the new user ID.

The id in the moved section is not the one needed, otherwise this could work without said access token.
(should be 124392)

"moved":{"id":"106818876077774066"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants