janboddez / import-from-mastodon

Automatically turn toots—short messages on Mastodon—into WordPress posts.
GNU General Public License v3.0
13 stars 2 forks source link

Add option to ignore/include non-public posts #6

Closed janboddez closed 2 years ago

janboddez commented 2 years ago

Authentication/authorization isn't actually required to read public toots. Make auth optional? (And provide a username field as an alternative? Or use / replace the instance URL field, but let users input an account's timeline/URL instead.)

janboddez commented 2 years ago

On the other hand, it kind of just works the way it is. Plus, you could import private toots, should you want to.

janboddez commented 2 years ago

Plus, you could import private toots, should you want to.

Turns out this is an issue: #12.

If imported, they should automatically get a post_status of private (or draft?). There should be a way to disable this behavior (not send the bearer token).

janboddez commented 2 years ago

Not sure if there is a query parameter for visibility? Otherwise we should just not include the auth token by default, that would give us the public toots only.

What if we want to import "unlisted" but not "private" posts, though? Seems like a skip filter might be the solution here.

janboddez commented 2 years ago

OK, so we're now skipping direct messages always. And there's an option to include only public toots, too. See d4fe0e00a5772a2e5868a0cad9cdab3b9e830cd9