fix domain ban deleting and refresh domain bans on action

This commit is contained in:
Izalia Mae 2022-12-09 01:36:50 -05:00
parent 2f412057cc
commit 4f6abd3e66

View file

@ -469,10 +469,9 @@ class StatusBar(ComponentBase):
elif action == 'delete':
acct.api.admin_domains_unblock(row.id)
del row.domain
self.window.notification(f'Unblocked domain: {row.domain}')
elif action == 'refresh':
elif action in {'refresh', 'save', 'delete'}:
Thread(target=self.fediban_refresh, kwargs={'force': True}).start()
if action in {'save', 'delete', 'close'}: