{"id":13782172,"url":"https://gitlab.com/fedstoa/moa","last_synced_at":"2025-05-11T15:32:16.368Z","repository":{"id":54457328,"uuid":"24164840","full_name":"fedstoa/moa","owner":"fedstoa","description":"New home of [Moa](https://moa.party). Cross post between Mastodon, Twitter, and Instagram.\r\n\r\nOriginal repo on GitHub https://github.com/foozmeat/moa","archived":false,"fork":false,"pushed_at":null,"size":null,"stargazers_count":120,"open_issues_count":53,"forks_count":18,"subscribers_count":null,"default_branch":"master","last_synced_at":"2025-04-27T13:01:49.819Z","etag":null,"topics":["instagram","mastodon","twitter"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://gitlab.com/uploads/-/system/project/avatar/24164840/moa-avatar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-04T23:08:11.718Z","updated_at":"2024-12-04T20:02:05.354Z","dependencies_parsed_at":"2022-08-20T07:21:06.234Z","dependency_job_id":null,"html_url":"https://gitlab.com/fedstoa/moa","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/fedstoa%2Fmoa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/fedstoa%2Fmoa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/fedstoa%2Fmoa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/fedstoa%2Fmoa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners/fedstoa","download_url":"https://gitlab.com/fedstoa/moa/-/archive/master/moa-master.zip","host":{"name":"gitlab.com","url":"https://gitlab.com","kind":"gitlab","repositories_count":4518942,"owners_count":6979,"icon_url":"https://github.com/gitlab.png","version":null,"created_at":"2022-05-30T11:31:42.605Z","updated_at":"2024-07-18T11:24:13.055Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners"}},"keywords":["instagram","mastodon","twitter"],"created_at":"2024-08-03T18:01:33.708Z","updated_at":"2025-05-11T15:32:14.895Z","avatar_url":"https://gitlab.com/uploads/-/system/project/avatar/24164840/moa-avatar.png","language":null,"readme":"Hello! We are prepping to run Moa as a public utility!\n\nThank you to [James Moore](https://jmoore.me/) as the original creator and maintainer of both the code and the public service.\n\nJoin us on Matrix chat [#moaparty:matrix.org](https://matrix.to/#/!zPwMsygFdoMjtdrDfo:matrix.org?via=matrix.org) to get involved, or file an issue here.\n\n```\n                 _ __ ___   ___   __ _\n                | '_ ` _ \\ / _ \\ / _` |\n                | | | | | | (_) | (_| |\n                |_| |_| |_|\\___/ \\__,_|\n\n┌──────────────┐     ╔══════════════╗      ┌──────────────┐\n│  Instagram   │────▶║  moa.party   ║◀────▶│   Twitter    │\n└──────────────┘     ╚══════════════╝      └──────────────┘\n                             ▲\n                             │\n                             ▼\n                     ┌──────────────┐\n                     │   Mastodon   │\n                     └──────────────┘\n```\n\nLink your Mastodon account to Twitter and Instagram\n\nhttps://moa.party\n\n## Install\n\n#### Requires python 3.6+\n\nMoa is a flask app and can be run with `python` or proxied via WSGI.\n\n* clone it\n* On Debian/Ubuntu you'll need to `apt install python-dev python3-dev build-essential`\n* Install pipenv `pip3 install pipenv`\n* `PIPENV_VENV_IN_PROJECT=1 pipenv install`\n* `cp config.py.sample config.py` and override the settings from `defaults.py`\n* `MOA_CONFIG=config.DevelopmentConfig /usr/local/bin/pipenv run python -m moa.models` to create the DB tables\n* `MOA_CONFIG=config.DevelopmentConfig /usr/local/bin/pipenv run python app.py`\n* run the worker with `MOA_CONFIG=DevelopmentConfig /usr/local/bin/pipenv run python -m moa.worker`\n\n## Features\n* preserves image alt text\n* handles boosts/retweets\n\nSome code lifted from https://github.com/halcy/MastodonToTwitter\n\n## Twitter App setup\n\nIf you plan to use twitter then you'll need to create a twitter app first so the required crednetials can be obtained.\n\n* Follow the steps here to get started https://python-twitter.readthedocs.io/en/latest/getting_started.html\n* For the Callback URL use [moa_base_url]/twitter_oauthorized e.g. https://example.com/twitter_oauthorized\n* Access Permissions need to be \"read\" and \"write\"\n\n\n## Example nginx/passenger configuration\n\n```\nserver {\n    listen 80;\n    server_name moa.party;\n    return 301 https://$server_name$request_uri;\n}\n\nserver {\n    listen 443 ;\n    server_name moa.party;\n    \n    # SSL\n    \n    ssl on;\n    ssl_certificate     /etc/certificates/moa.crt;\n    ssl_certificate_key /etc/certificates/moa.key;\n    \n    client_max_body_size 1G;\n    \n    access_log /var/www/moa/logs/access.log;\n    error_log /var/www/moa/logs/error.log;\n    \n    location = /favicon.ico { log_not_found off; access_log off; }\n    location = /robots.txt  { log_not_found off; access_log off; }\n    \n    passenger_enabled on;\n    passenger_app_env production;\n    passenger_python /var/www/moa/.venv/bin/python3;\n    passenger_env_var MOA_CONFIG config.ProductionConfig;\n    \n    root /var/www/moa/public;\n}\n```\n\n![](static/madewpc.gif)\n","funding_links":[],"categories":["\u003ca id=\"tag-communication\" href=\"#tag-communication\"\u003eCommunication\u003c/a\u003e"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Ffedstoa%2Fmoa","html_url":"https://awesome.ecosyste.ms/projects/gitlab.com%2Ffedstoa%2Fmoa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Ffedstoa%2Fmoa/lists"}