{"id":20217952,"url":"https://github.com/matrix-org/synapse-auto-accept-invite","last_synced_at":"2025-10-22T06:31:38.257Z","repository":{"id":39748458,"uuid":"426706931","full_name":"matrix-org/synapse-auto-accept-invite","owner":"matrix-org","description":"Synapse module to automatically accept invites","archived":true,"fork":false,"pushed_at":"2025-01-10T14:23:29.000Z","size":43,"stargazers_count":19,"open_issues_count":2,"forks_count":7,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-28T19:49:26.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matrix-org.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-10T17:03:37.000Z","updated_at":"2025-03-19T16:36:21.000Z","dependencies_parsed_at":"2024-05-06T21:43:45.209Z","dependency_job_id":null,"html_url":"https://github.com/matrix-org/synapse-auto-accept-invite","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrix-org%2Fsynapse-auto-accept-invite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrix-org%2Fsynapse-auto-accept-invite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrix-org%2Fsynapse-auto-accept-invite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrix-org%2Fsynapse-auto-accept-invite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matrix-org","download_url":"https://codeload.github.com/matrix-org/synapse-auto-accept-invite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252842458,"owners_count":21812670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T06:36:36.073Z","updated_at":"2025-10-22T06:31:32.960Z","avatar_url":"https://github.com/matrix-org.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This repository is no longer maintained!\n\nFor users of Element Synapse v1.109.0 or later, this functionality is now directly integrated into Synapse and does not need an external module.\nSee [the Synapse configuration manual](https://element-hq.github.io/synapse/v1.122/usage/configuration/config_documentation.html#auto_accept_invites) for more information.\n\nFor users of earlier Synapse versions, this module should continue to work as-is.\n\n# Auto-accept invites\n\nSynapse module to automatically accept invites.\n\nCompatible with Synapse v1.84.0 and later.\n\n## Installation\n\nFrom the virtual environment that you use for Synapse, install this module with:\n```shell\npip install synapse-auto-accept-invite\n```\n(If you run into issues, you may need to upgrade `pip` first, e.g. by running\n`pip install --upgrade pip`)\n\nThen alter your homeserver configuration, adding to your `modules` configuration:\n```yaml\nmodules:\n  - module: synapse_auto_accept_invite.InviteAutoAccepter\n    config:\n      # Optional: if set to true, then only invites for direct messages (1:1 rooms)\n      # will be auto accepted.\n      # Defaults to false.\n      accept_invites_only_for_direct_messages: false\n\n      # Optional: if set to true, then only invites from local users will be auto \n      # accepted.\n      # Defaults to false.\n      accept_invites_only_from_local_users: false\n\n      # (For workerised Synapse deployments)\n      #\n      # This module should only be active on a single worker process at once,\n      # otherwise invites may be accepted by multiple workers simultaneously.\n      #\n      # By default, this module is only enabled on the main process, and is disabled\n      # on workers. To choose a worker to run this module on (to reduce load on the\n      # main process), specify that worker's configured 'worker_name' below.\n      #\n      # Any worker may be specified. If this worker does not have the ability to\n      # write to Synapse's events stream, it will end up calling out to one that\n      # does.\n      #\n      #worker_to_run_on: workername1\n```\n\n\n### A note about logging\n\nYour Synapse logging configuration should have the following option set in it:\n\n```yaml\ndisable_existing_loggers: False\n```\n\nWithout it, logging from this module (and potentially others) may not appear in your logs.\n\n\n## Development\n\nIn a virtual environment with pip ≥ 21.1, run\n```shell\npip install -e .[dev]\n```\n\nTo run the unit tests, you can either use:\n```shell\ntox -e py\n```\nor\n```shell\ntrial tests\n```\n\nTo run the linters and `mypy` type checker, use `./scripts-dev/lint.sh`.\n\n\n## Releasing\n\n 1. Set a shell variable to the version you are releasing (this just makes\n    subsequent steps easier):\n    ```shell\n    version=X.Y.Z\n    ```\n\n 2. Update `setup.cfg` so that the `version` is correct.\n\n 3. Stage the changed files and commit.\n    ```shell\n    git add -u\n    git commit -m v$version -n\n    ```\n\n 4. Push your changes.\n    ```shell\n    git push\n    ```\n\n 5. When ready, create a signed tag for the release:\n    ```shell\n    git tag -s v$version\n    ```\n    Base the tag message on the changelog.\n\n 6. Push the tag.\n    ```shell\n    git push origin tag v$version\n    ```\n\n 7. Create a source distribution and upload it to PyPI:\n    ```shell\n    python -m build\n    twine upload dist/synapse_auto_accept_invite-$version*\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrix-org%2Fsynapse-auto-accept-invite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatrix-org%2Fsynapse-auto-accept-invite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrix-org%2Fsynapse-auto-accept-invite/lists"}