hodgesmr / mastodon_digest

A Python script that aggregates recent popular posts from your Mastodon timeline
BSD 3-Clause "New" or "Revised" License
436 stars 59 forks source link

Working with the Hometown fork #2

Closed samplereality closed 1 year ago

samplereality commented 1 year ago

I'm on a Mastodon instance running the Hometown fork, and am getting this error:

raise MastodonVersionError("Version check failed (Need version " + version + ")")
mastodon.errors.MastodonVersionError: Version check failed (Need version 2.4.3)

This makes me wonder if the mastodon_digest works with Hometown. My instance runs Hometown v1.0.5+3.5.2 (i.e Hometown 1.0.5 and Mastodon 3.5.2)

hodgesmr commented 1 year ago

Under the hood, I'm utilizing Mastodon.py for API access. It documents:

On Mastodon mainline, you can, pass datetime objects as IDs when fetching posts, since the IDs used are Snowflake IDs and dates can be approximately converted to those. This is guaranteed to work on mainline Mastodon servers and very likely to work on all forks, but will not work on other servers implementing the API, like Pleroma, Misskey or Gotosocial.

So, I'm not sure whether Hometown is supported. That said, I've just pushed an update that changes two things of potential relevance:

Take a look and see if any of that helps.

samplereality commented 1 year ago

Yes--the update works. I was already running Mastodon.py 1.8, so the fix must have been with how the environmental variables were sourced. Thanks!