Commit Graph

37 Commits

Author SHA1 Message Date
Cynthia Foxwell f162f0ab60 Update license headers 2021-09-24 11:33:06 -06:00
Luna 29091293f5 black fmt pass 2020-03-31 16:34:41 -03:00
George Tsatsis 45b4431c4c
Add discovery_splash to sql definitions for image uploading 2020-03-31 03:35:00 +03:00
Visual 261753e399 Removed and fixed broken checks 2020-03-30 17:13:39 +00:00
Luna 39e8a1ad7e images: force-cast to bool inside Icon
reported in #86
2020-02-08 13:28:29 -03:00
Luna e0e59f8b63 fix types (big)
varied fixes across many, many files.
2020-02-06 21:10:51 +00:00
Luna 83a1c1ae29 black fmt pass 2019-10-25 07:27:50 -03:00
Luna acc52a0c61 add basic checking of webhook avatar mime 2019-04-26 16:48:27 -03:00
Luna 15fa2f3231 channel.messages: add foreign key deletions before message delete
- images: export try_unlink, and allow it to handle pathlib.Path
2019-03-23 21:19:30 -03:00
Luna 44b81ea2f6 guilds: fix guild update icon call
- images: add support for splash and banner
 - add jpeg check when converting extension
2019-03-15 04:17:57 -03:00
Luna 67ae2385b5 Merge branch 'master' into voice 2019-03-05 16:27:31 -03:00
Luna 9dab5b20ae typing, episode 2 2019-03-04 15:48:51 -03:00
gabixdev e5cff415f5
fix icons and message history breaking 2019-03-02 00:38:37 +01:00
gabixdev 53bb87c7d1
fix JPEG image handling 2019-03-01 19:42:10 +01:00
Luna 24cc9e1d25 channels: use Icon.icon_hash
- images: handle generic_get with null icon
 - images: update group dms on delete icon
2019-02-16 23:22:42 -03:00
Luna ed27bb605a add channel-icons icon scope handling 2019-02-16 23:15:29 -03:00
Luna 53d7515f8c all: update copyright year 2019-01-26 19:25:46 -03:00
Luna 1555a4717e attachments: add gif resize support
- images: strip IconManager.resize_gif into its own function
2018-12-09 01:51:58 -03:00
Luna 6c992588e9 channel.messages: fix insertion into attachments table
- channel.messages: add file write
 - images: make get_ext and get_mime public functions
 - storage: receive app instance instead of db
2018-12-08 23:38:52 -03:00
Luna 2632d033fa all: add GPL header 2018-12-07 02:14:58 -03:00
Luna Mendes 6c9d1559f1 images: clean temporary files on gif processing 2018-11-21 20:06:02 -03:00
Luna Mendes d2bedb75a4 images: add implementation for gif handling
- images: prefix the icon_hash with `a_`
 - pubsub.lazy_guild: ignore update_user when unitialized list data
2018-11-21 20:01:16 -03:00
Luna Mendes 2140f572e8 images: add dummy IconManager gif handling 2018-11-21 18:29:19 -03:00
Luna Mendes 6a085c2190 images: hardcode jpeg/webp 2018-11-20 17:02:15 -03:00
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