zulip/zerver/tests/fixtures
Rohitt Vashishtha 912e372c4e markdown: Remove !avatar() and !gravatar() syntax.
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:

`![avatar for Alice](/avatar/1234?s=50) 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 commit        c31462c278
- Nov 2013, Update commit bot     968c393826
- Nov 2013, Add avatar syntax     761c0a0266
- Sep 2017, Avoid email use       c3032a7fe8
- Apr 2019, Remove from webhook   674fcfcce1
2020-07-07 10:39:44 -07:00
..
apple auth: Add Sign in with Apple support. 2020-06-09 17:29:35 -07:00
email emails: Add tests for sending custom emails. 2020-04-14 10:50:43 -07:00
import_fixtures models: Migration of Message.pub_date to date_sent, part 2. 2019-10-05 19:01:34 -07:00
ldap tests: For ldap tests, give each ldap user a unique password. 2020-02-19 14:46:29 -08:00
mattermost_fixtures mattermost: Add support for exporting DMs and huddles. 2019-10-10 16:37:03 -07:00
saml saml: Add option to restrict subdomain access based on SAML attributes. 2020-06-23 17:14:31 -07:00
slack_fixtures import: Support importing team icon from slack. 2020-02-03 14:09:05 -08:00
.gitignore
authors.json
config.generate_data.json populate_db:Add uppercase topic name randomly. 2020-06-06 09:25:13 -04:00
csp_report.json
docs_url_preview_data.json
gitter_data.json gitter import: Add basic tests. 2018-07-23 08:36:30 -07:00
markdown_test_cases.json markdown: Remove !avatar() and !gravatar() syntax. 2020-07-07 10:39:44 -07:00
narrow.json topic -> subject: Extract get_topic_from_message_info(). 2018-11-14 23:24:06 -08:00
slack_message_conversion.json slack import: Add support for bold-italics formatting. 2018-06-02 09:01:55 -07:00
user_agents_unique