This is a small app that shows how you could use [FakeRelay](https://github.com/g3rv4/FakeRelay/) to import content into your instance that's tagged with hashtags you're interested in.
This doesn't paginate over the tags, that means it will import up to 20 statuses per instance. This also keeps a txt file with all the statuses it has imported.
GetMoarFediverse can download either from a list of predefined tags or it can connect to you Mastodon's PostgreSQL database and pull the hashtags your users are following.
The `FakeRelayApiKey` on the `config.json` is optional. If you don't provide one, you need to pass you FakeRelay key as an environment variable named `FAKERELAY_APIKEY`.
### Pulling from a predefined list of tags
This `config.json` pulls two tags from two instances:
### Downloading all the followed hashtags of your instance
You can pass `MastodonPostgresConnectionString` with a connection string to your postgres database and GetMoarFediverse will download content for all the hashtags the users on your server follow. Here's an example:
#### And download all the hashtags pinned by your users!
If you add `"PinnedTags": true`, you can also populate the hashtags pinned by your users :) thanks [@nberlee](https://github.com/nberlee), this is great!
* This means you don't have to have anything running on your infrastructure!
* This also means you need to maintain the list of tags you want to pull (they can't be updated dynamically, as GitHub Actions workers can't connect to your postgres database (hopefully!))
* [You can run a prebuilt executable](#download-a-prebuilt-executable)
* You need to run it in your infrastructure
* You can download content with the tags your users are following
* This is the fastest way to run it
* Executables are trimmed so that they're smaller than 10 MB
* [You can run it as a docker container](#you-can-run-it-on-docker)
* You need to run it in your infrastructure
* You can download content with the tags your users are following
* This gives you better isolation, whatever GetMoarFediverse does, it can't escape its container
### Running it as a GitHub Action
I recommend you watch [this demo I recorded](https://youtu.be/XOBD8OsdjGY). Basically you can run GetMoarFediverse as a GitHub Action, so that you don't have to think about setting anything up on your infrastructure:
4. Uncomment the two lines on `GetMoarFediverse.yml` that run it on a scheduled route. Keep in mind that [the schedule event can be delayed during periods of high loads of GitHub Actions workflow runs](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule).
You can download an executable for your environment [on the releases page](https://github.com/g3rv4/GetMoarFediverse/releases). In addition to that, you will need to create a `config.json` file with your desired logic. Once you have that file, all you need to run is `./GetMoarFediverse /path/to/config.json`. You can put it on a cron like this :)
I'd recommend you use the executable... but if you really want to, you can run it on Docker on Windows and set up a scheduled task. You can watch [this demo by Jeff Lindborg](https://www.youtube.com/watch?v=v73ZKtP0rzE).