Skip to content

Node.js based forum software built for the modern web

fix: update data-isowner when changing is ownership

Barış Soner Uşaklı1f9f2dff2fd1
diff --git a/public/src/client/groups/details.js b/public/src/client/groups/details.js
index 8dde2e3eab..9ed57cd6ed 100644
--- a/public/src/client/groups/details.js
+++ b/public/src/client/groups/details.js
@@ -81,6 +81,7 @@ define('forum/groups/details', [
case 'toggleOwnership':
api[isOwner ? 'del' : 'put'](`/groups/${ajaxify.data.group.slug}/ownership/${uid}`, {}).then(() => {
ownerFlagEl.toggleClass('invisible');
+ userRow.attr('data-isowner', isOwner ? '0' : '1');
}).catch(alerts.error);
break;