mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	This particular commit has been a long time coming. For reference, !avatar(email) was an undocumented syntax that simply rendered an inline 50px avatar for a user in a message, essentially allowing you to create a user pill like: `!avatar(alice@example.com) Alice: hey!` --- Reimplementation If we decide to reimplement this or a similar feature in the future, we could use something like `<avatar:userid>` syntax which is more in line with creating links in markdown. Even then, it would not be a good idea to add this instead of supporting inline images directly. Since any usecases of such a syntax are in automation, we do not need to make it userfriendly and something like the following is a better implementation that doesn't need a custom syntax: ` Alice: hey!` --- History We initially added this syntax back in 2012 and it was 'deprecated' from the get go. Here's what the original commit had to say about the new syntax: > We'll use this internally for the commit bot. We might eventually > disable it for external users. We eventually did start using this for our github integrations in 2013 but since then, those integrations have been neglected in favor of our GitHub webhooks which do not use this syntax. When we copied `!gravatar` to add the `!avatar` syntax, we also noted that we want to deprecate the `!gravatar` syntax entirely - in 2013! Since then, we haven't advertised either of these syntaxes anywhere in our docs, and the only two places where this syntax remains is our game bots that could easily do without these, and the git commit integration that we have deprecated anyway. We do not have any evidence of someone asking about this syntax on chat.zulip.org when developing an integration and rightfully so- only the people who work on Zulip (and specifically, markdown) are likely to stumble upon it and try it out. This is also the only peice of code due to which we had to look up emails -> userid mapping in our backend markdown. By removing this, we entirely remove the backend markdown's dependency on user emails to render messages. --- Relevant commits: - Oct 2012, Initial commitc31462c278- Nov 2013, Update commit bot968c393826- Nov 2013, Add avatar syntax761c0a0266- Sep 2017, Avoid email usec3032a7fe8- Apr 2019, Remove from webhook674fcfcce1
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
import os
 | 
						|
 | 
						|
ZULIP_VERSION = "3.0-rc1+git"
 | 
						|
# Add information on number of commits and commit hash to version, if available
 | 
						|
zulip_git_version_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'zulip-git-version')
 | 
						|
if os.path.exists(zulip_git_version_file):
 | 
						|
    with open(zulip_git_version_file) as f:
 | 
						|
        version = f.read().strip()
 | 
						|
        if version:
 | 
						|
            ZULIP_VERSION = version
 | 
						|
 | 
						|
LATEST_MAJOR_VERSION = "2.1"
 | 
						|
LATEST_RELEASE_VERSION = "2.1.7"
 | 
						|
LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2019/12/13/zulip-2-1-released/"
 | 
						|
LATEST_DESKTOP_VERSION = "5.3.0"
 | 
						|
 | 
						|
# Versions of the desktop app below DESKTOP_MINIMUM_VERSION will be
 | 
						|
# prevented from connecting to the Zulip server.  Versions above
 | 
						|
# DESKTOP_MINIMUM_VERSION but below DESKTOP_WARNING_VERSION will have
 | 
						|
# a banner at the top of the page asking the user to upgrade.
 | 
						|
DESKTOP_MINIMUM_VERSION = "5.0.0"
 | 
						|
DESKTOP_WARNING_VERSION = "5.2.0"
 | 
						|
 | 
						|
# Bump the API_FEATURE_LEVEL whenever an API change is made
 | 
						|
# that clients might want to condition on.  If we forget at
 | 
						|
# the time we make the change, then bump it later as soon
 | 
						|
# as we notice; clients using API_FEATURE_LEVEL will just not
 | 
						|
# use the new feature/API until the bump.
 | 
						|
#
 | 
						|
# Changes should be accompanied by documentation explaining what the
 | 
						|
# new level means in templates/zerver/api/changelog.md.
 | 
						|
API_FEATURE_LEVEL = 24
 | 
						|
 | 
						|
# Bump the minor PROVISION_VERSION to indicate that folks should provision
 | 
						|
# only when going from an old version of the code to a newer version. Bump
 | 
						|
# the major version to indicate that folks should provision in both
 | 
						|
# directions.
 | 
						|
 | 
						|
# Typically,
 | 
						|
# * adding a dependency only requires a minor version bump;
 | 
						|
# * removing a dependency requires a major version bump;
 | 
						|
# * upgrading a dependency requires a major version bump, unless the
 | 
						|
#   upgraded dependency is backwards compatible with all of our
 | 
						|
#   historical commits sharing the same major version, in which case a
 | 
						|
#   minor version bump suffices.
 | 
						|
 | 
						|
PROVISION_VERSION = '89.0'
 |