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

Import only the most recent toot when first run #5

Closed janboddez closed 2 years ago

janboddez commented 2 years ago

Main goal of this plugin is to import toots going forward, not create a complete copy/archive of an existing Mastodon account. With that in mind, it may make sense to only import a single pre-existing toot (to be used in combination with since_id next time the cron job is run).

I.e., if no since_id is found, set the limit to one, otherwise set it to the max value.