Commit Graph

637 Commits

Author SHA1 Message Date
Luna 2ffa3cb82d relationships: move the calls to sub_friend instead of unsub
lol
2019-02-08 17:57:57 -03:00
Luna c337c1c349 relationships: dispatch PRESENCE_UPDATE when friends sub 2019-02-08 17:57:27 -03:00
Luna 2714b7cf96 Merge branch 'patch-2' into 'master'
index: fix typo and move to nodeinfo 2.1 url

See merge request litecord/litecord!17
2019-02-07 18:44:46 +00:00
Luna 27a7c7e8ef guilds: handle when j.icon is not present when creating guild 2019-02-07 15:43:16 -03:00
Ave f3c2b63721 index: fix typo and move to nodeinfo 2.1 url 2019-02-07 18:37:37 +00:00
Luna c71a75dd3d schemas: use type=channel_type instead of coerce=ChannelType 2019-02-05 21:14:53 -03:00
Luna 27ffbd545d cmd.tests: add discrim to setup_tests 2019-02-05 19:23:39 -03:00
Luna ec324f3107 users: decouple into delete_user
- manage.cmd.user: add deluser cmd
2019-02-05 19:21:22 -03:00
Luna 3a8eaec147 schemas: add CHAN_CREATE
- guild.channels: add CHAN_CREATE validation
2019-02-05 18:56:41 -03:00
Luna 3c46948837 user_storage: handle edge case when user is not in guilds 2019-02-05 18:12:06 -03:00
Luna b079dd428a storage: handle webhook authors in messages 2019-02-05 18:00:35 -03:00
Luna 943a683d86 guild.emoji: check if update actually happened to emoji 2019-02-05 17:47:21 -03:00
Luna 36094f309d guild.roles: use the default role's permissions instead of const 2019-02-05 17:44:47 -03:00
Luna 56673f182a channel.messages: call process_url_embed on message updates 2019-02-05 17:41:42 -03:00
Luna f7ee9c70ae channel.messages: remove print-debug 2019-02-05 17:33:37 -03:00
Luna b424d47755 invites: use secrets.token_urlsafe instead of os.urandom 2019-02-05 17:32:18 -03:00
Luna 73e83c2b81 users: return empty profile if no mutual guilds 2019-02-05 17:28:00 -03:00
Luna d2f004b080 guilds: handle removal of ask/sys channel 2019-02-04 21:27:12 -03:00
Luna f1127d1970 pubsub.lazy_guild: sanity of mind
- add more comments, always good
 - remove some unused methods and move some others to private methods
 - use _set_empty_list in close() method
2019-02-03 23:23:07 -03:00
Luna a69a2423de run.py: fix other peace of mind things 2019-02-03 22:50:45 -03:00
Luna d95b6adb16 run.py: only pass app instance to PresenceManager
- presence: only receive app when instantiating
2019-02-03 22:44:43 -03:00
Luna 6ee5b2fa15 run.py: sanity of mind tweaks 2019-02-03 22:42:24 -03:00
Luna 790dde9c87 schemas: update USERNAME_REGEX 2019-02-03 02:20:10 -03:00
Luna 2914d9bc92 users: convert to int on partial.permissions 2019-02-02 21:58:07 -03:00
Luna a6e29e3088 add ecosystem.config.js
for pm2 deployments
2019-02-02 02:53:30 -03:00
Luna 88d118799f guilds: optimize create_guild_settings
we were inserting then updating when we could just insert with the
value, lol
2019-02-02 02:06:08 -03:00
Luna 7ad1d07682 Merge branch 'master' of gitlab.com:litecord/litecord 2019-02-01 20:58:03 -03:00
Luna 9b76c472d0 embed.sanitizer: add log warn
- channel.messages: handle meta being None
 - schemas: add gift_code_sku_id
2019-02-01 20:57:12 -03:00
Luna 3a90471798 Merge branch 'master' into 'master'
move the package installation step to before setting up DB and migrations

See merge request litecord/litecord!16
2019-02-01 21:01:57 +00:00
derrick murphy c2fb1475c8 move the package installation step to before setting up DB and migrations 2019-02-01 20:55:21 +00:00
Luna 9f56c7a26e nodeinfo: keep compatiblity with nodeinfo 2.0 2019-02-01 16:05:35 -03:00
Luna dcecd9c0c0 nodeinfo: update nodeinfo to 2.1
nodeinfo 2.1 adds software.repository pointing to the repository url
of the server software. quick and easy.
2019-02-01 03:12:59 -03:00
Luna d2353d2495 errors: add ERR_MSG_MAP
Closes #31.
2019-01-28 19:31:45 -03:00
Luna c83dc1ba1f users: fix bug in _try_reroll 2019-01-27 15:46:58 -03:00
Luna 36694524f2 config.{ci,example}.py: update copyright year 2019-01-26 19:28:51 -03:00
Luna 08736c869f Merge branch 'master' of gitlab.com:litecord/litecord 2019-01-26 19:26:15 -03:00
Luna 53d7515f8c all: update copyright year 2019-01-26 19:25:46 -03:00
Luna f35886d970 Merge branch 'patch-1' into 'master'
Remove a stray comma which caused errors upon import

See merge request litecord/litecord!15
2019-01-26 17:45:56 +00:00
George Tsatsis b92ea295dc Remove a stray comma which caused errors upon import 2019-01-26 14:00:24 +00:00
Luna 307a22e135 channel.pins: deny pins from system messages
suggested by @Cynosphere
2019-01-25 19:40:56 -03:00
Luna 935b4e15aa relationships: add messages to errors
Closes #30
2019-01-24 00:27:10 -03:00
Luna 0eec28a058 snowflake: fix overflow bug
bugfix ported from 40cbd0bdef
2019-01-19 16:38:54 -03:00
Luna 64814a979e auth: add POST /api/v6/auth/fingerprint 2019-01-19 16:38:07 -03:00
Luna 85deabf610 user.billing_job: fix bug on create_payment call 2018-12-24 21:07:10 -03:00
Luna 6a476dc9f7 gateway.websocket: add debug logging on chunked send 2018-12-10 19:03:40 -03:00
Luna 032942a466 gateway.websocket: prevent empty messages on zlib-stream 2018-12-10 18:45:20 -03:00
Luna 6872139ff6 gateway.websocket: do chunked sends on zlib stream
this should fix issues with big payloads being sent
as a single big websocket message to a client (potentially crashing it).

chunked sends split the payload into 1KB chunks that are each
sent through the websocket. clients are already supposed to handle
this behavior from the zlib-stream docs.

 - utils: add yield_chunks
2018-12-10 01:44:44 -03:00
Luna 5c38198137 user_storage: fix channel_overrides being a dict 2018-12-10 00:51:03 -03:00
Luna c5ccc5a9d0 attachments: fix syntax error 2018-12-09 19:27:39 -03:00
Luna 348430838e attachments: add sanitizer for pillow format kwarg 2018-12-09 19:21:06 -03:00