{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %} {% extends 'themes/' + theme() + '/base.html' %} {% else %} {% extends "base.html" %} {% endif %} %} {% from 'bootstrap/form.html' import render_form, render_field %} {% set active_child = 'admin_federation' %} {% block app_content %}

{{ _('Federation') }}

{{ render_form(form) }}

{{ _('Import / Export Bans') }}

Use this to import or export banned instances, domains, tags, and / or users.

JSON format:


            {
                "banned_instances": ["banned1.social", "banned2.social"], 
                "allowed_instances": ["allowed1.social", "allowed2.social"], 
                "banned_domains": ["banned3.social"], 
                "banned_tags": [{"name":"badtag","display_as":"BaDtAg"},{...}], 
                "banned_users": ["baduser@banned4.social"] 
            }
        

Note: only one of "banned_instances" or "allowed_instances" will be populated.

{{ render_form(ban_lists_form) }}

Bulk community import

{{ _('Remote server scan') }}

{{ _('Use this to scan a remote lemmy server and "pre-load" it\'s communities, as ranked by posts and activity. NSFW communities and communities from banned instances are excluded.') }}

{{ _('Input should be in the form of https://server-name.tld') }}

{% if current_app_debug %}

*** This instance is in development mode. This function could cause timeouts depending on how your networking is setup. ***

{% endif %} {{ render_form(remote_scan_form) }}

{{ _('Load communities from Lemmyverse data') }}

{{ _('Use this to "pre-load" known threadiverse communities, as ranked by posts and activity. The list of communities pulls from the same list as LemmyVerse. NSFW communities and communities from banned instances are excluded. Communities with less than 100 posts and less than 500 active users in the past week are excluded.') }}

{% if current_app_debug %}

*** This instance is in development mode. This function could cause timeouts depending on how your networking is setup. ***

{% endif %} {{ render_form(preload_form) }}

{% include 'admin/_nav.html' %}

{% endblock %}