Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
emoji: Remove setting for deprecated Google blobs emoji set.
Anders Kaseorgb742ab18f90d
diff --git a/docs/subsystems/emoji.md b/docs/subsystems/emoji.mdindex 4130d37221f..ff35b97821c 100644--- a/docs/subsystems/emoji.md+++ b/docs/subsystems/emoji.md@@ -9,7 +9,6 @@ Currently, Zulip supports these four display formats for emoji:- Plain text-- Google blob (deprecated)## Emoji codesdiff --git a/starlight_help/src/content/docs/emoji-and-emoticons.mdx b/starlight_help/src/content/docs/emoji-and-emoticons.mdxindex 6ecf8c893d9..49462724e64 100644--- a/starlight_help/src/content/docs/emoji-and-emoticons.mdx+++ b/starlight_help/src/content/docs/emoji-and-emoticons.mdx@@ -151,16 +151,9 @@ you send. Zulip emoji are compatible with screen readers and other accessibility<NavigationSteps target="settings/preferences" />1. Under **Emoji**, select **Google**,- **Twitter**, **Plain text**, or **Google blobs** for the emoji theme.+ **Twitter**, or **Plain text** for the emoji theme.</FlattenedSteps>-<ZulipNote>- **Google blobs** is an old style of Google emoji that has not been maintained- by Google since 2017, when they switched to a more modern style. Zulip allows- you to still use blob emoji, but any new emoji that have been released since- 2017 will be displayed in the modern **Google** style.-</ZulipNote>-## Related articles* [Add custom emoji](/help/custom-emoji)diff --git a/zerver/migrations/0753_remove_google_blob_emojiset.py b/zerver/migrations/0753_remove_google_blob_emojiset.pynew file mode 100644index 00000000000..83118b7b3ea--- /dev/null+++ b/zerver/migrations/0753_remove_google_blob_emojiset.py@@ -0,0 +1,41 @@+# Generated by Django 5.2.6 on 2025-10-01 18:23++from django.db import migrations, models+from django.db.backends.base.schema import BaseDatabaseSchemaEditor+from django.db.migrations.state import StateApps+++def remove_google_blob(apps: StateApps, schema_editor: BaseDatabaseSchemaEditor) -> None:+ UserProfile = apps.get_model("zerver", "UserProfile")+ RealmUserDefault = apps.get_model("zerver", "RealmUserDefault")++ UserProfile.objects.filter(emojiset="google-blob").update(emojiset="google")+ RealmUserDefault.objects.filter(emojiset="google-blob").update(emojiset="google")+++class Migration(migrations.Migration):+ dependencies = [+ ("zerver", "0752_remove_stream_is_in_zephyr_realm"),+ ]++ operations = [+ migrations.RunPython(remove_google_blob, elidable=True),+ migrations.AlterField(+ model_name="realmuserdefault",+ name="emojiset",+ field=models.CharField(+ choices=[("google", "Google"), ("twitter", "Twitter"), ("text", "Plain text")],+ default="google",+ max_length=20,+ ),+ ),+ migrations.AlterField(+ model_name="userprofile",+ name="emojiset",+ field=models.CharField(+ choices=[("google", "Google"), ("twitter", "Twitter"), ("text", "Plain text")],+ default="google",+ max_length=20,+ ),+ ),+ ]diff --git a/zerver/models/users.py b/zerver/models/users.pyindex 31d22661f59..540312217ad 100644--- a/zerver/models/users.py+++ b/zerver/models/users.py@@ -154,14 +154,12 @@ class UserBaseSettings(models.Model):# Emoji setsGOOGLE_EMOJISET = "google"- GOOGLE_BLOB_EMOJISET = "google-blob"TEXT_EMOJISET = "text"TWITTER_EMOJISET = "twitter"EMOJISET_CHOICES = ((GOOGLE_EMOJISET, "Google"),(TWITTER_EMOJISET, "Twitter"),(TEXT_EMOJISET, "Plain text"),- (GOOGLE_BLOB_EMOJISET, "Google blobs"),)emojiset = models.CharField(default=GOOGLE_EMOJISET, choices=EMOJISET_CHOICES, max_length=20)diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 7a8b6313882..76a9a2c646d 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -14125,7 +14125,6 @@ paths:- "google" - Google- "twitter" - Twitter- "text" - Plain text- - "google-blob" - Google blobstype: stringexample: "google"demote_inactive_streams:@@ -17802,7 +17801,6 @@ paths:used to display emoji to the user everywhere they appear in the UI.- "google" - Google modern- - "google-blob" - Google classic- "twitter" - Twitter- "text" - Plain textdemote_inactive_streams:@@ -20712,7 +20710,6 @@ paths:used to display emoji to the user everywhere they appear in the UI.- "google" - Google modern- - "google-blob" - Google classic- "twitter" - Twitter- "text" - Plain textdemote_inactive_streams:@@ -21963,7 +21960,6 @@ paths:used to display emoji to the user everywhere they appear in the UI.- "google" - Google modern- - "google-blob" - Google classic- "twitter" - Twitter- "text" - Plain textdiff --git a/zerver/tests/test_settings.py b/zerver/tests/test_settings.pyindex f74c7c9d4e7..df3a31fdf50 100644--- a/zerver/tests/test_settings.py+++ b/zerver/tests/test_settings.py@@ -512,8 +512,8 @@ class ChangeSettingsTest(ZulipTestCase):def test_emojiset(self) -> None:"""Test banned emoji sets are not accepted."""- banned_emojisets = ["apple", "emojione"]- valid_emojisets = ["google", "google-blob", "text", "twitter"]+ banned_emojisets = ["apple", "emojione", "google-blob"]+ valid_emojisets = ["google", "text", "twitter"]for emojiset in banned_emojisets:result = self.do_change_emojiset(emojiset)