prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Email confirmation email should be improved
  I couldn't find the text for the email, so I suspect it's from some library.
  
  Here is the content:
  
  ---
  
  Hello from **apps.nextcloud.com**!
  
  You're receiving this e-mail because user oparoz at apps.nextcloud.com has given **yours as an e-mail address to connect their account**.
  
  To confirm this is correct, go to https://apps.nextcloud.com/confirm-email/Mzc:1bZksL:Y8YI3zMQ0fOllevi3VhZ-dmiSMU/
  
  Thank you from **apps.nextcloud.com**!
  **apps.nextcloud.com**
  
  ---
  
  I've highlighted what should be altered.
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `nextcloudappstore/core/management/commands/setupsocial.py`
  Content:
  ```
  1 from allauth.socialaccount.models import SocialApp
  2 from django.contrib.sites.models import Site
  3 from django.core.management import BaseCommand
  4 
  5 
  6 class Command(BaseCommand):
  7     help = ('Updates the first site with the given domain and creates or '
  8             'updates the GitHub social login application')
  9 
  10     def add_arguments(self, parser):
  11         social_meta = SocialApp._meta
  12         parser.add_argument('--github-secret', required=True,
  13                             help=social_meta.get_field('secret').help_text)
  14         parser.add_argument('--github-client-id', required=True,
  15                             help=social_meta.get_field('client_id').help_text)
  16         site_meta = Site._meta
  17         parser.add_argument('--domain', required=True,
  18                             help=site_meta.get_field('domain').help_text)
  19 
  20     def handle(self, *args, **options):
  21         # set up site which is required for social login
  22         site = Site.objects.all()[0]
  23         site.domain = options['domain']
  24         site.name = options['domain']
  25         site.save()
  26         # set up github
  27         app, created = SocialApp.objects.get_or_create(provider='github')
  28         app.name = 'GitHub'
  29         app.secret = options['github_secret']
  30         app.client_id = options['github_client_id']
  31         app.sites.add(site)
  32         app.save()
  33 
  34         msg = 'Successfully initialized social accounts'
  35         self.stdout.write(self.style.SUCCESS(msg))
  36
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/nextcloudappstore/core/management/commands/setupsocial.py b/nextcloudappstore/core/management/commands/setupsocial.py
  --- a/nextcloudappstore/core/management/commands/setupsocial.py
  +++ b/nextcloudappstore/core/management/commands/setupsocial.py
  @@ -21,7 +21,7 @@
           # set up site which is required for social login
           site = Site.objects.all()[0]
           site.domain = options['domain']
  -        site.name = options['domain']
  +        site.name = 'Nextcloud App Store'
           site.save()
           # set up github
           app, created = SocialApp.objects.get_or_create(provider='github')
  
verification_info: {"golden_diff": "diff --git a/nextcloudappstore/core/management/commands/setupsocial.py b/nextcloudappstore/core/management/commands/setupsocial.py\n--- a/nextcloudappstore/core/management/commands/setupsocial.py\n+++ b/nextcloudappstore/core/management/commands/setupsocial.py\n@@ -21,7 +21,7 @@\n         # set up site which is required for social login\n         site = Site.objects.all()[0]\n         site.domain = options['domain']\n-        site.name = options['domain']\n+        site.name = 'Nextcloud App Store'\n         site.save()\n         # set up github\n         app, created = SocialApp.objects.get_or_create(provider='github')\n", "issue": "Email confirmation email should be improved\nI couldn't find the text for the email, so I suspect it's from some library.\n\nHere is the content:\n\n---\n\nHello from **apps.nextcloud.com**!\n\nYou're receiving this e-mail because user oparoz at apps.nextcloud.com has given **yours as an e-mail address to connect their account**.\n\nTo confirm this is correct, go to https://apps.nextcloud.com/confirm-email/Mzc:1bZksL:Y8YI3zMQ0fOllevi3VhZ-dmiSMU/\n\nThank you from **apps.nextcloud.com**!\n**apps.nextcloud.com**\n\n---\n\nI've highlighted what should be altered.\n\n", "before_files": [{"content": "from allauth.socialaccount.models import SocialApp\nfrom django.contrib.sites.models import Site\nfrom django.core.management import BaseCommand\n\n\nclass Command(BaseCommand):\n    help = ('Updates the first site with the given domain and creates or '\n            'updates the GitHub social login application')\n\n    def add_arguments(self, parser):\n        social_meta = SocialApp._meta\n        parser.add_argument('--github-secret', required=True,\n                            help=social_meta.get_field('secret').help_text)\n        parser.add_argument('--github-client-id', required=True,\n                            help=social_meta.get_field('client_id').help_text)\n        site_meta = Site._meta\n        parser.add_argument('--domain', required=True,\n                            help=site_meta.get_field('domain').help_text)\n\n    def handle(self, *args, **options):\n        # set up site which is required for social login\n        site = Site.objects.all()[0]\n        site.domain = options['domain']\n        site.name = options['domain']\n        site.save()\n        # set up github\n        app, created = SocialApp.objects.get_or_create(provider='github')\n        app.name = 'GitHub'\n        app.secret = options['github_secret']\n        app.client_id = options['github_client_id']\n        app.sites.add(site)\n        app.save()\n\n        msg = 'Successfully initialized social accounts'\n        self.stdout.write(self.style.SUCCESS(msg))\n", "path": "nextcloudappstore/core/management/commands/setupsocial.py"}], "after_files": [{"content": "from allauth.socialaccount.models import SocialApp\nfrom django.contrib.sites.models import Site\nfrom django.core.management import BaseCommand\n\n\nclass Command(BaseCommand):\n    help = ('Updates the first site with the given domain and creates or '\n            'updates the GitHub social login application')\n\n    def add_arguments(self, parser):\n        social_meta = SocialApp._meta\n        parser.add_argument('--github-secret', required=True,\n                            help=social_meta.get_field('secret').help_text)\n        parser.add_argument('--github-client-id', required=True,\n                            help=social_meta.get_field('client_id').help_text)\n        site_meta = Site._meta\n        parser.add_argument('--domain', required=True,\n                            help=site_meta.get_field('domain').help_text)\n\n    def handle(self, *args, **options):\n        # set up site which is required for social login\n        site = Site.objects.all()[0]\n        site.domain = options['domain']\n        site.name = 'Nextcloud App Store'\n        site.save()\n        # set up github\n        app, created = SocialApp.objects.get_or_create(provider='github')\n        app.name = 'GitHub'\n        app.secret = options['github_secret']\n        app.client_id = options['github_client_id']\n        app.sites.add(site)\n        app.save()\n\n        msg = 'Successfully initialized social accounts'\n        self.stdout.write(self.style.SUCCESS(msg))\n", "path": "nextcloudappstore/core/management/commands/setupsocial.py"}]}