New federation features
All checks were successful
Build & Push Docker Image / build (push) Successful in 5m58s
All checks were successful
Build & Push Docker Image / build (push) Successful in 5m58s
This commit is contained in:
@@ -26,11 +26,8 @@ export default function FederationInbox() {
|
||||
|
||||
const handleAccept = async (id) => {
|
||||
try {
|
||||
const res = await api.post(`/federation/invitations/${id}/accept`);
|
||||
if (res.data.join_url) {
|
||||
window.open(res.data.join_url, '_blank');
|
||||
}
|
||||
toast.success(t('federation.accepted'));
|
||||
await api.post(`/federation/invitations/${id}/accept`);
|
||||
toast.success(t('federation.acceptedSaved'));
|
||||
fetchInvitations();
|
||||
} catch {
|
||||
toast.error(t('federation.acceptFailed'));
|
||||
|
||||
Reference in New Issue
Block a user