Skip to content

Commit

Permalink
Switch out MaxCDN for Cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtoid committed Jan 9, 2023
1 parent 00457e8 commit 6b6fccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ To convert a string from the command line::

$ python3 -m emojificate "I 💜 emoji 😊"
I
<img src="https://twemoji.maxcdn.com/v/latest/72x72/1f49c.png"
<img src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/1f49c.png"
css="emojificiate" alt="💜" title="Purple Heart"
aria-label="Emoji: Purple Heart">
emoji
<img src="https://twemoji.maxcdn.com/v/latest/72x72/1f60a.png"
<img src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/1f60a.png"
css="emojificiate" alt="😊" title="Smiling Face With Smiling Eyes"
aria-label="Emoji: Smiling Face With Smiling Eyes">

Expand Down Expand Up @@ -82,7 +82,7 @@ Ruby
require 'gemoji'
def cdn
"https://twemoji.maxcdn.com/v/latest/72x72/"
"https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/"
end
def emojificate(string)
Expand Down
2 changes: 1 addition & 1 deletion emojificate/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

__all__ = ["emojificate"]

TWITTER_CDN = "https://twemoji.maxcdn.com/v/latest"
TWITTER_CDN = "https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2"
TWITTER_TYPE = {"png": "/72x72/{codepoint}.png", "svg": "/svg/{codepoint}.svg"}


Expand Down

0 comments on commit 6b6fccb

Please sign in to comment.