Add emoji icons

master
Bob Mottram 2019-08-09 13:50:49 +01:00
parent 43137d2e9b
commit 6f3eb1cb2b
3182 changed files with 29 additions and 1 deletions

View File

@ -435,6 +435,7 @@ class PubServer(BaseHTTPRequestHandler):
if '/media/' not in self.path and \
'/sharefiles/' not in self.path and \
'/statuses/' not in self.path and \
'/emoji/' not in self.path and \
'/icons/' not in self.path:
divertToLoginScreen=True
if self.path.startswith('/users/'):
@ -494,6 +495,27 @@ class PubServer(BaseHTTPRequestHandler):
mediaBinary = avFile.read()
self.wfile.write(mediaBinary)
return
# emoji images
if '/emoji/' in self.path:
if self.path.endswith('.png') or \
self.path.endswith('.jpg') or \
self.path.endswith('.gif'):
emojiStr=self.path.split('/emoji/')[1]
emojiFilename= \
self.server.baseDir+'/emoji/'+emojiStr
if os.path.isfile(emojiFilename):
if emojiFilename.endswith('.png'):
self._set_headers('image/png',cookie)
elif emojiFilename.endswith('.jpg'):
self._set_headers('image/jpeg',cookie)
else:
self._set_headers('image/gif',cookie)
with open(emojiFilename, 'rb') as avFile:
emojiBinary = avFile.read()
self.wfile.write(emojiBinary)
return
self._404()
return
# show media
# Note that this comes before the busy flag to avoid conflicts
if '/media/' in self.path:

View File

@ -23,3 +23,9 @@
<p>Commercial use of original content on this instance is strictly forbidden without the prior written permission of the account holder. Publication or federation of content does not imply permission for commercial use.</p>
<p>Commercial use includes the harvesting of data to create products which are then sold, such as statistics, business reports or machine learning models.</p>
<h3>Copyrights</h3>
<p>Epicyon is licensed under <a href="https://www.gnu.org/licenses/agpl-3.0-standalone.html">GNU AGPL version 3</a>
<p>All emojis designed by <a href="https://openmoji.org">OpenMoji</a> the open-source emoji and icon project. License: <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0</a></p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

BIN
emoji/00A9.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
emoji/00AE.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
emoji/1F004.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

BIN
emoji/1F0CF.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
emoji/1F170.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

BIN
emoji/1F171.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

BIN
emoji/1F17E.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

BIN
emoji/1F17F.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

BIN
emoji/1F18E.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 811 B

BIN
emoji/1F191.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

BIN
emoji/1F192.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

BIN
emoji/1F193.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

BIN
emoji/1F194.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

BIN
emoji/1F195.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

BIN
emoji/1F196.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

BIN
emoji/1F197.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

BIN
emoji/1F198.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

BIN
emoji/1F199.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

BIN
emoji/1F19A.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 633 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 981 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 854 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 898 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 864 B

Some files were not shown because too many files have changed in this diff Show More