Commit Graph

13 Commits

Author SHA1 Message Date
Luna Mendes 7da305d883 Merge branch 'master' of gitlab.com:luna/litecord 2018-11-19 04:45:18 -03:00
Luna Mendes 1a665240b8 images: hardcode webp on _get_ext 2018-11-19 04:44:55 -03:00
slice 9c6e60643e
resize images using lanczos resampling
works better!
2018-11-18 23:43:11 -08:00
Luna Mendes 27c6402233 images: add webp hardcode to _get_mime 2018-11-19 04:41:34 -03:00
Luna Mendes f407cb35bf images: fix always_icon comparison 2018-11-18 18:20:18 -03:00
Luna Mendes 630db1e1e9 images: add always_icon kwarg to put()
- guilds: use always_icon
2018-11-17 18:26:42 -03:00
Luna Mendes 1e368f8cc9 images: return None on invalid icon data when put()-ing
- guild.emoji: send 400 on invalid icon
2018-11-17 18:21:20 -03:00
Luna Mendes d9a1923e54 images: add bytelimit
- guild.emoji: add 128x128 limit and 128kb limit
 - types: add KILOBYTES
2018-11-17 18:19:47 -03:00
Luna Mendes d3bc826504 blueprints.icons: send none hash when querying emoji
- images: handle hash being none on generic_get
2018-11-17 18:10:54 -03:00
Luna Mendes c70dd62306 guild: add implementations for emoji add/update/remove
All icons will be invalidated.

 - images: change icon path model
 - images: handle hashes being NULL, for emojis only needing
    the key
 - schemas: add NEW_EMOJI, PATCH_EMOJI
 - migration.scripts: add 3_drop_constraints_icons_hash
 - schema.sql: drop unique and not null from hash, change primary key in
    icons
2018-11-17 17:52:34 -03:00
Luna Mendes 49aa6cd495 blueprints.users: add user avatars
- images: add IconManager.update
 - images: delete all other converted extension variants when deleting
2018-11-13 21:52:50 -03:00
Luna Mendes 5480a669a3 all: add guild icon support
- fix update_guild's methods
 - fix update_guild's sql statements
 - litecord: add images module
 - schemas: add splash to GUILD_UPDATE
 - schemas: add validate to INVITE
 - manage.cmd.migration: add script 2
2018-11-13 21:12:40 -03:00
Luna Mendes e54bcc312a blueprints: add icons blueprint
- Pipfile: add pillow
2018-11-13 17:33:28 -03:00