Commit Graph

1150 Commits

Author SHA1 Message Date
Luna Mendes 98d6e7082d users: send private user in USER_UPDATE to self
- users: send updated user as a reply on PATCH /api/v6/users/@me
2018-11-19 16:25:09 -03:00
Luna Mendes eccc82afcc users: use to_update instead of manual checks to avatar field
Closes #20.

 - schemas: change avatar's type to str instead of b64_icon
2018-11-19 15:59:03 -03:00
Luna Mendes 54120bce0c users: fix some cross-scope inconsistency when dispatching
Closes #19.

 - dispatcher: remove dispatch_many_filter, add
    dispatch_many_filter_list
2018-11-19 15:53:57 -03:00
Luna Mendes e627d61fd0 gateway.websocket: add debug logging for dispatch()
helps track down double-sends to session ids
2018-11-19 15:43:29 -03:00
Luna Mendes 48c7dc539a users: use dispatch_many_filter when sending USER_UPDATE events
Related to #19.

 - dispatcher: add EventDispatcher.dispatch_many_filter
 - pubsub.channel, guild: return session ids on dispatch() return
 - pubsub.friend, user: add dispatch_filter handler
2018-11-19 15:33:16 -03:00
Luna Mendes 8f56648544 blueprints.users: use public_user when dispatching to self 2018-11-19 14:58:15 -03:00
Luna Mendes a8c4e61417 blueprints.checks: fix guild_check 2018-11-19 14:40:10 -03:00
Luna Mendes 6a7424088a channel.messages: update user_read_state.last_message_id for author 2018-11-19 14:02:22 -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 2f377e1d69
return status code 500 when handling http 500s 2018-11-18 23:44:48 -08: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 479151cdfa Merge branch 'patch/polish_register_html' into 'master'
polish invite_register.html

See merge request luna/litecord!4
2018-11-19 07:29:59 +00:00
slice 3ad282c75f
polish invite_register.html
- no backend changes needed, this is purely a cosmetic change
2018-11-18 23:28:32 -08:00
Luna Mendes 4e7dcbeefc channel.messages: update edited_at properly
- storage: give str guild_id on message objects
2018-11-19 04:25:15 -03:00
Luna Mendes 109254323e user.billing: pass db instance instead of app to create_payment 2018-11-19 04:11:05 -03:00
Luna Mendes 113ba3fb89 pubsub.lazy_guild: better method to remove member 2018-11-19 04:10:18 -03:00
Luna Mendes 994c3eb640 pubzub.lazy_guild: remove any of the user's states on remove_member 2018-11-19 03:50:15 -03:00
Luna Mendes ed628abab2 guild.mod: use remove_member in lazy_guilds
- pubsub.lazy_guild: add remove_member handler
 - users: use guild.mod's remove_member
2018-11-19 03:36:31 -03:00
Luna Mendes 906e891f6e blueprints.invites: call new_member event for member lists
- pubsub.lazy_guild: add new_member handler
2018-11-19 03:15:37 -03:00
Luna Mendes bd26969029 blueprints.auth: update instance_invites.uses 2018-11-19 02:26:22 -03:00
Luna Mendes f53d9c07e1 blueprints.auth: add implementation for register_with_invite 2018-11-19 02:20:54 -03:00
Luna Mendes 6921f3b6b1 run: remove unused import
- static.invite_register: retab
2018-11-19 01:47:35 -03:00
Luna Mendes f2e3cdd9ff static: use Path.cwd 2018-11-19 01:45:35 -03:00
Luna Mendes 2ff7f796fc run: add static blueprint to set_blueprints
- run: remove old handler for /register
2018-11-19 01:40:31 -03:00
Luna Mendes 79da12b45d Merge branch 'master' of gitlab.com:luna/litecord 2018-11-19 01:39:28 -03:00
Luna Mendes 612600bf03 manage.cmd.invites: change from 10 chars to 6 chars 2018-11-19 01:38:57 -03:00
Luna Mendes 8b305407c2 manage.cmd: add invites blueprint
- schema.sql: remove temporary and expires_at columns
 - migration.scripts: remove emporary and expires_at columns
2018-11-19 01:34:04 -03:00
Luna Mendes 99fab19766 migration.scripts: add 4_add_instance_invites
- schema.sql: add instance_invites table
2018-11-19 00:00:07 -03:00
Luna Mendes 4058222e75 Merge branch 'html/better-register-page' into 'master'
Better register page

See merge request luna/litecord!3
2018-11-19 02:04:31 +00:00
S Stewart ef2a1480ed add static bp 2018-11-18 19:58:06 -06:00
S Stewart b18188cdeb add css 2018-11-18 18:23:46 -06:00
S Stewart 43069cec88 rewrite invite_register.html 2018-11-18 18:23:38 -06:00
Luna Mendes c8d12c38c9 blueprints.auth: use REGISTER / REGISTER_WITH_INVITE 2018-11-18 19:29:09 -03:00
Luna Mendes d0b8dd9f56 schemas: fix syntax error, add required to REGISTER 2018-11-18 19:27:57 -03:00
Luna Mendes e949dbdc3f blueprints.auth: add *dummy* POST /api/v6/auth/register_inv
- litecord.schemas: add REGISTER, REGISTER_WITH_INVITE
 - run: add GET /register
 - add static/invite_register.html
2018-11-18 19:24:17 -03:00
Luna Mendes b17d166377 pubsub.lazy_guild: update member roles in MemberList 2018-11-18 18:43:20 -03:00
Luna Mendes 1868d86fed pubsub.lazy_guild: update old presence's roles and status 2018-11-18 18:37:59 -03:00
Luna Mendes 38b01600aa pubsub.lazy_guild: handle unknown role on role_pos_update
- pubsub.lazy_guild: handle item_index being None on resync_by_item
2018-11-18 18:33:35 -03:00
Luna Mendes e38cb38e5f pubsub.lazy_guild: fix role_pos_update giving a method to get_subs 2018-11-18 18:26:55 -03:00
Luna Mendes f407cb35bf images: fix always_icon comparison 2018-11-18 18:20:18 -03:00
Luna Mendes 53afe46774 user.settings: fix more Storage -> UserStorage 2018-11-18 18:03:12 -03:00
Luna Mendes d061ec6376 nodeinfo: add MAIN_URL config usage 2018-11-18 17:08:23 -03:00
Luna Mendes c4a63016ea config.example.py: add MAIN_URL 2018-11-18 17:07:18 -03:00
Luna Mendes 339d1b0c8b blueprints: add nodeinfo blueprint 2018-11-18 17:04:31 -03:00
Luna Mendes 3432617988 channel.messages: handle at-everyone and at-here differently
- blueprints.checks: return bool on *_perm_check
2018-11-18 02:38:30 -03:00
Luna Mendes 8492b6eb33 channel.messages: handle role mentions and at-everyone mentions 2018-11-18 02:25:32 -03:00
Luna Mendes 9db9c75602 gateway.websocket: fix extracting guild ids when handling op 8 2018-11-18 01:24:32 -03:00
Luna Mendes 500579e957 channel.messages: fix mention affecting user_read_state 2018-11-18 01:20:02 -03:00