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
Luna Mendes
05c8204271
migration.scripts: add 6_emoji_require_colon_true
...
- schema: change default on guild_emoji.require_colons to true
2018-11-20 17:10:34 -03:00
Luna Mendes
6a085c2190
images: hardcode jpeg/webp
2018-11-20 17:02:15 -03:00
Luna Mendes
3e28501bdb
run: replace other/peer to user
...
- discord_endpoints: remove ambiguity on PUT/PATCH Modify Channel route
2018-11-20 14:52:35 -03:00
Luna Mendes
437f8de643
run: replace member/banned/target to user in api_index
2018-11-20 14:48:44 -03:00
Luna Mendes
52c2fdb771
guilds: fix typo in route
2018-11-20 14:45:54 -03:00
Luna Mendes
deddc82360
run: add api compliance score
...
Closes #21 .
2018-11-20 14:32:32 -03:00
Luna Mendes
c4f2bb9be5
storage: fix GUILD_VOICE channel fetching
2018-11-20 13:46:35 -03:00
Luna Mendes
c33be64b79
invites: return 404 on unknown inv
2018-11-20 13:42:00 -03:00
Luna Mendes
48a65325f4
channel.messages: insert guild_id information
...
so that we're able to search all messages in a guild without doing JOINs.
2018-11-20 04:23:44 -03:00
Luna Mendes
93e00315df
guild, channels: add dummy implementation for search
...
- schemas: add SEARCH_CHANNEL
- migration.scripts: add 5_add_messages_guild_id
- schema.sql: add messages.guild_id
2018-11-20 04:15:03 -03:00
Luna Mendes
432244263d
guilds: check channel link to guild on afk and system channels
2018-11-19 23:26:26 -03:00
Luna Mendes
8818b00d6d
blueprints.users: call lazy guild updates upon user update
...
- pubsub.lazy_guild: add update_user handler
2018-11-19 23:11:27 -03:00