Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 3e8a319

Browse files
committed
Removes bans.remove, renames all bans group to ban, changes linked_accounts to return null in api response if no linked account.
1 parent b7ab80e commit 3e8a319

File tree

11 files changed

+12
-28
lines changed

11 files changed

+12
-28
lines changed

XF/Entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ protected function setupApiResultData(
4343
$linked_accounts[$account->account_type] = $account->account_id;
4444
}
4545

46-
$result->linked_account = $linked_accounts;
46+
$result->linked_accounts = count((array) $linked_accounts) == 0 ? null : $linked_accounts;
4747
}
4848
}

_output/permissions/_metadata.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
"activity-access.json": {
66
"hash": "2fd3cc70831e77605905bf67e8c05c13"
77
},
8-
"bans-add.json": {
8+
"ban-add.json": {
99
"hash": "3d73fd2836eecca662da6fe236b9c34c"
1010
},
11-
"bans-edit.json": {
12-
"hash": "3d73fd2836eecca662da6fe236b9c34c"
13-
},
14-
"bans-remove.json": {
11+
"ban-edit.json": {
1512
"hash": "3d73fd2836eecca662da6fe236b9c34c"
1613
},
1714
"book-delete.json": {
1815
"hash": "546514a03e16a54431408fd47945e16b"
1916
},
17+
"book-deleted.json": {
18+
"hash": "546514a03e16a54431408fd47945e16b"
19+
},
2020
"ckey-access.json": {
2121
"hash": "b6c52e49ac1716d029c0b7d1d2c3530a"
2222
},
@@ -65,9 +65,6 @@
6565
"ingame-varedit.json": {
6666
"hash": "c730a0e26f775b0c01dec850f7fb113c"
6767
},
68-
"library-deleted.json": {
69-
"hash": "546514a03e16a54431408fd47945e16b"
70-
},
7168
"loa-add.json": {
7269
"hash": "33b73867bc20fcfde8b01474e09faa73"
7370
},

_output/permissions/bans-remove.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

_output/phrases/_metadata.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@
1717
"version_string": "20.20.10 6",
1818
"hash": "c1bb913a603ccdc4381541e7d95fb690"
1919
},
20-
"permission.bans_add.txt": {
20+
"permission.ban_add.txt": {
2121
"global_cache": false,
2222
"version_id": 20201006,
2323
"version_string": "20.20.10 6",
2424
"hash": "a8e4bc87259cbb9ad973c3e5dab0b5df"
2525
},
26-
"permission.bans_edit.txt": {
26+
"permission.ban_edit.txt": {
2727
"global_cache": false,
2828
"version_id": 20201006,
2929
"version_string": "20.20.10 6",
3030
"hash": "d461294f59057762cfdcfbd24cf01a8f"
3131
},
32-
"permission.bans_remove.txt": {
32+
"permission.book_delete.txt": {
3333
"global_cache": false,
3434
"version_id": 20201006,
3535
"version_string": "20.20.10 6",
36-
"hash": "04b3a75f7607530ce49413e7ddda0f3a"
36+
"hash": "04d2d050eca5f0b4bd1259b48c75c61a"
3737
},
38-
"permission.book_delete.txt": {
38+
"permission.book_deleted.txt": {
3939
"global_cache": false,
4040
"version_id": 20201006,
4141
"version_string": "20.20.10 6",
42-
"hash": "04d2d050eca5f0b4bd1259b48c75c61a"
42+
"hash": "fe90df45a77100aed4b93deb1fa20e77"
4343
},
4444
"permission.ckey_access.txt": {
4545
"global_cache": false,
@@ -137,12 +137,6 @@
137137
"version_string": "20.20.10 6",
138138
"hash": "b76e28bccf109485314c358777032055"
139139
},
140-
"permission.library_deleted.txt": {
141-
"global_cache": false,
142-
"version_id": 20201006,
143-
"version_string": "20.20.10 6",
144-
"hash": "fe90df45a77100aed4b93deb1fa20e77"
145-
},
146140
"permission.loa_add.txt": {
147141
"global_cache": false,
148142
"version_id": 20201006,

_output/phrases/permission.bans_remove.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)