Adding a new application
Adding a new application to the support table involves two key steps
- Add it to the docker environment provided by the Fediverse pasture
- Tell the components used to build the support tables about it
We will be concerned with the second step
The configuration process
In order to let the tools know about the new application, one needs to add it to the following dictionary.
work.apps.app_name_to_coroutine = {'akkoma': akkoma_app, 'bovine': bovine_app, 'mastodon41': mastodon41_app, 'mastodon42': mastodon42_app, 'mastodon41af': mastodon41_af_app, 'mastodon42af': mastodon42_af_app, 'mitra': mitra_app, 'firefish': firefish_app, 'gotosocial': gotosocial_app, 'hubzilla': hubzilla_app, 'sharkey': sharkey_app}
module-attribute
Used to lookup the coroutine to get the application object
The values in the dictionary are coroutines that return
- An ApplicationAdapterForActor object, which allows one to build the parts that only require the actor object
- An ApplicationAdapterForLastActivity object. This has in addition a coroutine that returns the most recent post. This is necessary to create the support tables on how objects behave.
Inspecting the file fediverse-pasture/work/work/app.py can be useful to understand what one has to do. For example adding an application supporting the Mastodon API is done by using the coroutine activity_for_mastodon.