Add emoji icons
22
daemon.py
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
After Width: | Height: | Size: 727 B |
After Width: | Height: | Size: 738 B |
After Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 506 B |
After Width: | Height: | Size: 646 B |
After Width: | Height: | Size: 696 B |
After Width: | Height: | Size: 567 B |
After Width: | Height: | Size: 517 B |
After Width: | Height: | Size: 657 B |
After Width: | Height: | Size: 544 B |
After Width: | Height: | Size: 662 B |
After Width: | Height: | Size: 656 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 258 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 524 B |
After Width: | Height: | Size: 507 B |
After Width: | Height: | Size: 688 B |
After Width: | Height: | Size: 410 B |
After Width: | Height: | Size: 811 B |
After Width: | Height: | Size: 516 B |
After Width: | Height: | Size: 703 B |
After Width: | Height: | Size: 523 B |
After Width: | Height: | Size: 398 B |
After Width: | Height: | Size: 665 B |
After Width: | Height: | Size: 799 B |
After Width: | Height: | Size: 634 B |
After Width: | Height: | Size: 579 B |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 633 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 476 B |
After Width: | Height: | Size: 164 B |
After Width: | Height: | Size: 1001 B |
After Width: | Height: | Size: 981 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 339 B |
After Width: | Height: | Size: 162 B |
After Width: | Height: | Size: 866 B |
After Width: | Height: | Size: 647 B |
After Width: | Height: | Size: 276 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 156 B |
After Width: | Height: | Size: 854 B |
After Width: | Height: | Size: 261 B |
After Width: | Height: | Size: 176 B |
After Width: | Height: | Size: 418 B |
After Width: | Height: | Size: 672 B |
After Width: | Height: | Size: 348 B |
After Width: | Height: | Size: 359 B |
After Width: | Height: | Size: 154 B |
After Width: | Height: | Size: 355 B |
After Width: | Height: | Size: 162 B |
After Width: | Height: | Size: 421 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 160 B |
After Width: | Height: | Size: 744 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 444 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 176 B |
After Width: | Height: | Size: 162 B |
After Width: | Height: | Size: 290 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 337 B |
After Width: | Height: | Size: 781 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 180 B |
After Width: | Height: | Size: 159 B |
After Width: | Height: | Size: 836 B |
After Width: | Height: | Size: 338 B |
After Width: | Height: | Size: 302 B |
After Width: | Height: | Size: 339 B |
After Width: | Height: | Size: 163 B |
After Width: | Height: | Size: 159 B |
After Width: | Height: | Size: 174 B |
After Width: | Height: | Size: 561 B |
After Width: | Height: | Size: 636 B |
After Width: | Height: | Size: 287 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 898 B |
After Width: | Height: | Size: 531 B |
After Width: | Height: | Size: 154 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 715 B |
After Width: | Height: | Size: 163 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 235 B |
After Width: | Height: | Size: 820 B |
After Width: | Height: | Size: 357 B |
After Width: | Height: | Size: 864 B |