Commit Graph

413 Commits

Author SHA1 Message Date
Luna Mendes d39e161deb schemas: add theme type
- schemas: add USER_SETTINGS.theme
2018-11-22 16:20:44 -03:00
Luna Mendes 8c59bb5740 user.settings: properly use json dumped value 2018-11-22 16:06:42 -03:00
Luna Mendes 1b529c4af3 user.settings: fix json encoding when patching settings
should fix issues with restricted_guilds and the overall guild position.
2018-11-22 16:05:42 -03:00
Luna Mendes a784d100e7 user.billing_job: remove unused import 2018-11-22 05:01:04 -03:00
Luna Mendes d62e140d8d user.billing: fix imports for process_subscription move
- enums: add PremiumType
2018-11-22 05:00:20 -03:00
Luna Mendes 3d852af438 user.billing: use process_subscription on _create_subscription
this should ensure proper dispatch of USER_UPDATE events
on nitro activation.
2018-11-22 04:52:12 -03:00
Luna Mendes b92d1302e7 users: decouple main dispatch to mass_user_update
this should solve problems with people getting nitro and others
being able to see their flag status. who knows what happens
inside the offical client.

 - users.billing_job: use mass_user_update
2018-11-22 04:46:16 -03:00
Luna Mendes 2a00f8c31f nodeinfo: give message_count as localPosts value 2018-11-22 00:14:17 -03:00
Luna Mendes 1b984f638a Merge branch 'master' of gitlab.com:luna/litecord 2018-11-21 23:17:38 -03:00
Luna Mendes 801438c24b config.ci.py: add MAIN_URL and NAME 2018-11-21 23:02:33 -03:00
Luna Mendes f04f81e564 Merge branch 'master' into 'master'
static.index: fix usage of obsolete tag

See merge request luna/litecord!5
2018-11-22 01:23:51 +00:00
Mary 450066a164
Merge branch 'master' of gitlab.com:josepal/litecord 2018-11-21 20:10:06 -05:00
Mary 5f90eb494b
static.index: fix usage of obsolete tag 2018-11-21 20:08:37 -05:00
Luna Mendes 54fc80ea4e tests.test_main: remove 'hewwo' content check 2018-11-21 22:06:10 -03:00
Luna Mendes 9252f60ee6 static/index: add head tag 2018-11-21 21:55:57 -03:00
Luna Mendes b629fcace2 config.example.py: add NAME attribute
- static: give inst_name on context
 - static/index: use inst_name
2018-11-21 21:40:56 -03:00
Luna Mendes 2852f57f96 static: add handler for index using jinja / render_template
- static: add index.html
 - run: remove index handler
2018-11-21 21:31:11 -03:00
Luna Mendes 2ac2ac262a gateway.websocket: fix permission object fetch 2018-11-21 21:13:17 -03:00
Luna Mendes 8a3e55b511 gateway.websocket: fix storage kwarg on get_permissions 2018-11-21 21:12:13 -03:00
Luna Mendes c7f6c5c6b4 gateway.websocket: add READ_MESSAGES check on OP 14 handler
this should make sure to not leak information through shard queries.
2018-11-21 21:09:19 -03:00
Luna Mendes ddbfa6af4c users: add partial.permissions field on get_me_guilds 2018-11-21 21:05:26 -03:00
Luna Mendes 50d177e04d channel.messages: fix possible bugs in extract_limit 2018-11-21 21:03:04 -03:00
Luna Mendes 4580aed97c channel.messages: simplify delete_message's check 2018-11-21 21:01:56 -03:00
Luna Mendes dd3dbf5ace guild.{mod, roles}: remove unused imports 2018-11-21 21:00:07 -03:00
Luna Mendes ba253f6ce4 channel.reactions: add permission checks
- channel.reactions: add special case for when adding the first
    reaction in a message
2018-11-21 20:56:33 -03:00
Luna Mendes a0ad3a74b8 channel.messages: add permission checks 2018-11-21 20:49:03 -03:00
Luna Mendes a974ff34ba guilds: add permission checking on get_guild 2018-11-21 20:48:02 -03:00
Luna Mendes b069295898 guild.roles: add permission checks 2018-11-21 20:47:03 -03:00
Luna Mendes 24f71f3f58 guild.channels: add permission checks 2018-11-21 20:45:20 -03:00
Luna Mendes d613c23962 guild.mod: add permission checks 2018-11-21 20:44:00 -03:00
Luna Mendes 7421c26e6c guild.members: add permission checks 2018-11-21 20:42:22 -03:00
Luna Mendes 5c4c6edc89 invites: add permission checks 2018-11-21 20:38:16 -03:00
Luna Mendes 3c9515b867 channel.pins: add manage_message permission checks 2018-11-21 20:32:02 -03:00
Luna Mendes 659895062e channel.pins: ASC -> DESC on get_pins 2018-11-21 20:30:34 -03:00
Luna Mendes 15b8ee1db9 user.billing: add support for yearly subscriptions 2018-11-21 20:28:09 -03:00
Luna Mendes 0a29d3156a .gitlab-ci.yml: add gifsicle to main apk add command 2018-11-21 20:08:19 -03:00
Luna Mendes ce3569dad4 README: add gifsicle requirement 2018-11-21 20:07:46 -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 7485e95a9e users: add image/gif + nitro checking 2018-11-21 16:56:56 -03:00
Luna Mendes f81e3aea53 user.billing_job: process users.premium_since field
- storage: inject user.premium_type based on subscription
2018-11-21 16:39:14 -03:00
Luna Mendes 81422ca714 users: fix typo 2018-11-20 20:58:09 -03:00
Luna Mendes 1227d8efd4 users: remove print debugs 2018-11-20 20:57:03 -03:00
Luna Mendes b14c1d2c9a users: harden search handler
the "described issue with the official client" was leaking of
messages that aren't in the client's cache, causing a crash.

from now on, search uses `UserStorage.get_user_guilds` and does
filtering on both SQL and python levels before returning it as a result.
2018-11-20 20:55:50 -03:00
Luna Mendes 011fc099bb users: add debug get mentions endpoint
This doesn't seem to work on the offical client, gives a crash.

 - schemas: add GET_MENTIONS
2018-11-20 20:08:23 -03:00
Luna Mendes a0a1f24c1c schemas: edit SEARCH_CHANNEL 2018-11-20 19:01:52 -03:00
Luna Mendes e6cda1fa6d storage: fix bug giving str to timestamp_ 2018-11-20 18:54:42 -03:00
Luna Mendes ee29668468 storage: append '+00:00' to timestamps 2018-11-20 18:50:11 -03:00
slice 10d4771c0c
Add X-Debug-Options as an allowed header 2018-11-20 12:29:30 -08:00