Read from mergedGeolocation when setting mod authorities (#9509)

* Read from mergedGeolocation when setting mod authorities

* Add deprecation notice

(cherry picked from commit 4407e59e15)
This commit is contained in:
Eric Bailey
2025-12-08 19:24:19 -06:00
parent a17ac8febd
commit 7991d6fea6
2 changed files with 3 additions and 1 deletions
@@ -70,7 +70,7 @@ export function isNonConfigurableModerationAuthority(did: string) {
}
export function configureAdditionalModerationAuthorities() {
const geolocation = device.get(['geolocation'])
const geolocation = device.get(['mergedGeolocation'])
// default to all
let additionalLabelers: string[] = MODERATION_AUTHORITIES_DIDS
+2
View File
@@ -13,6 +13,8 @@ export type Device = {
* Geolocation config, fetched from the IP service. This previously did
* double duty as the "status" for geolocation state, but that has since
* moved here to the client.
*
* @deprecated use `mergedGeolocation` instead
*/
geolocation?: {
countryCode: string | undefined