{% comment %} Single connected account card - HTMX-swappable. Usage: {% include "social_accounts/partials/_account_card.html" with account=account workspace_id=workspace_id %} {% endcomment %} {% load social_accounts_tags %}
@{{ account.account_handle|cut:"@" }}
{% endif %}Disconnect {{ account.account_name|default:account.account_handle }}?
{% comment %} Say what disconnect really does; the privacy policy promises it and platform reviewers read this against the policy. Only claim a revocation the provider performs. The Facebook-Page flows drop our copy of the credentials but cannot revoke the grant, because the only endpoint that would do so revokes this app for the whole person and would sever their other connected accounts. {% endcomment %}{% if account.revokes_platform_grant_on_disconnect %} This revokes Redea Social's access to the account. {% elif account.keeps_platform_grant_on_disconnect %} This removes the account from Redea Social only. To revoke our access entirely, remove Redea Social in Facebook › Settings › Apps and Websites. {% else %} This removes the account from Redea Social only. To revoke our access entirely, remove Redea Social in your {{ account.get_platform_display }} settings. {% endif %}
Its analytics, inbox messages and posts made only for it are deleted from Redea Social. Posts shared with other channels stay.
Some features are unavailable. This account was connected without {{ account.missing_scopes|join:", " }}. Anything relying on them will fail until the permission is granted — reconnect to try again.
{{ account.last_error }}
Real-time comments are off. {{ account.webhook_error|default:"We couldn't set up real-time updates for this account." }} New comments still reach the inbox, but can take a few minutes to appear.
{% if account.webhook_needs_reconnect %} {% else %} {% comment %} method/action as well as hx-post: without them a browser that never ran htmx falls back to the form default — GET to the current URL, which puts the CSRF token in the query string and retries nothing. @htmx:after-request re-enables the button when a request fails, since htmx only swaps this card away on success. {% endcomment %} {% endif %}Set recurring time slots for when queued posts are automatically published.