Commit Graph

1376 Commits

Author SHA1 Message Date
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
Luna Mendes 66ea960f71 gateway.websocket: anoter Storage -> UserStorage 2018-11-18 01:05:53 -03:00
Luna Mendes 0449fad9a3 Revert ".gitlab-ci.yml: drop pipenv install pre-script"
This reverts commit d11f8692e4.
2018-11-17 22:42:57 -03:00
Luna Mendes d11f8692e4 .gitlab-ci.yml: drop pipenv install pre-script
we're pratically installing packages twice for no reason, since tox
will also run pipenv install on its environment.
2018-11-17 18:53:26 -03:00
Luna Mendes 0aa679677f user_storage: add UserStorage.get_user_guilds
So that we're consistent.

 - gateway.websocket, presence: change to UserStorage for
    get_user_guilds
2018-11-17 18:41:54 -03:00
Luna Mendes 9547b5e536 tests: add test_user
- tests.common: add get_uid
2018-11-17 18:39:09 -03:00
Luna Mendes 976e518fad users: change Storage -> UserStorage 2018-11-17 18:31:43 -03:00
Luna Mendes 1288e401ea user.billing_job: change reschedule for payment_job from 2min to 30min 2018-11-17 18:29:55 -03:00
Luna Mendes cc535bb851 schema.sql: add UNIQUE to icons.hash 2018-11-17 18:27:37 -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 1175de1406 guild.emoji: fix args to IconManager.put 2018-11-17 18:07:04 -03:00
Luna Mendes b6f2d5fdd8 storage: s/guild_emojis/guild_emoji table 2018-11-17 18:03:02 -03:00
Luna Mendes 1cef25ffc4 user.billing_job: fix unwanted await due to spawn() being non-coro 2018-11-17 18:01:53 -03:00
Luna Mendes 041791b733 litecord.user_storage: fix get_relationships 2018-11-17 18:00:04 -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 64af426035 guild: add emoji blueprint
- storage: add get_emoji, get_guild_emojis
2018-11-17 17:06:27 -03:00
Luna Mendes a7f8852324 test.test_websocket: add test_ready_fields
- RatelimitManager: add a test flag to overwrite _ws.connect ratelimit
2018-11-17 04:09:22 -03:00
Luna Mendes 978ad9075e gateway.websocket: fix more Storage -> UserStorage references 2018-11-17 03:10:45 -03:00
Luna Mendes 77c52a5c28 tests.test_websocket: add test_ready 2018-11-17 03:05:54 -03:00
Luna Mendes 069c39d29e tests: add test_websocket.py
- tests.conftest: alter WEBSOCKET_URL as well
2018-11-17 02:51:07 -03:00
Luna Mendes 00c976c552 gateway.gateway: add default args when connecting
- gateway.gateway: pass app instance instead of a 7-tuple
2018-11-17 02:20:48 -03:00
Luna Mendes 11d4b54f87 split Storage into UserStorage
this should help with the amount of methods being tossed in the Storage
class.
2018-11-17 02:14:10 -03:00