- Mar 21, 2022
-
-
Claire authored
-
- Feb 16, 2022
-
-
Claire authored
Fixes #17541 - prefix JSON parsing error message by “Error parsing message from …” - output user id if a user is logged in, IP address otherwise - reduce log level from error to warning when a user is logged in, and to silly otherwise
-
- Jan 07, 2022
-
-
Claire authored
* Fix timeline streaming stopping for multiple sessions instead of one Fixes #17256. In updating the code for a newer version of node-redis, #17183 also broke redis subscription management when multiple streaming clients subscribe to the same channel. This commit restores the redis subscription management code. * Let node-redis actually handle the subscriptions
-
- Dec 25, 2021
-
-
Lerk authored
* fix streaming redis client * use console.error instead of console.log * follow node-redis migration guide https://github.com/redis/node-redis/blob/master/docs/v3-to-v4.md * fix config options for node-redis * keep indentation * Update streaming/index.js Co-authored-by:
Yamagishi Kazutoshi <ykzts@desire.sh> Co-authored-by:
Yamagishi Kazutoshi <ykzts@desire.sh>
-
- Oct 13, 2021
-
-
Sasha Sorokin authored
When checking for required OAuth scopes, an unexpected error could happen due to missing (null-y) req.scopes. This commit fixes that by checking if req.scopes are present before checking if any required scopes are present, otherwise it skips that straight to rejection.
-
- Sep 26, 2021
-
-
Eugen Rochko authored
Eliminate need to have custom notifications filtering logic in the streaming API code by publishing notifications into a separate stream and then simply using the multi-stream capability to subscribe to that stream when necessary
-
- May 02, 2021
-
-
Eugen Rochko authored
Third argument of `ping` is the callback Regression from #15932
-
- May 01, 2021
-
-
Eugen Rochko authored
-
- Mar 24, 2021
-
-
Claire authored
* Switch from deprecated ClusterWS/cws to ws package Fixes #15184 Co-authored-by:
Edho Arief <me@nanaya.pro> * Make bufferutil and utf-8-validate optional dependencies Co-authored-by:
Edho Arief <me@nanaya.pro>
-
- Nov 23, 2020
-
-
abcang authored
* eslint --fix * fix consistent-return * fix promise/catch-or-return * ignore import rule
-
- Nov 12, 2020
-
-
Eugen Rochko authored
Fix #14816
-
- Sep 22, 2020
-
-
fuyu authored
-
- Aug 12, 2020
-
-
Eugen Rochko authored
-
- Aug 11, 2020
-
-
Eugen Rochko authored
-
- Jun 24, 2020
-
-
ThibG authored
Fixes #14131 Our `mastodon:setup` task defaults to a blank password rather than the absence of password, but some versions of Redis reject blank password authentication when authentication is possible without a password. The Ruby code only uses the Redis password when it's not blank, so do the same for the node.js part.
-
- Jun 02, 2020
-
-
Eugen Rochko authored
-
- May 10, 2020
-
-
Takeshi Umeda authored
* Add remote only to public timeline * Fix code style
-
- Jan 24, 2020
-
-
Ben Lubar authored
* Send output on the server-sent events stream immediately so the client sees that it was successfully opened even if it doesn't have any messages. Fix transparent SSE streaming for the public:local and hashtag:local stream types. * Tell caches to never store server-sent events.
-
- Jul 30, 2019
-
-
Eugen Rochko authored
-
- Jul 15, 2019
-
-
Eugen Rochko authored
-
- May 24, 2019
-
-
ThibG authored
* Check OAuth token scopes in the streaming API * Use Sec-WebSocket-Protocol instead of query string to pass WebSocket token Inspired by https://github.com/kubevirt/kubevirt/issues/1242
-
- May 22, 2019
-
-
abcang authored
-
- Mar 10, 2019
-
-
Eugen Rochko authored
Fix #10223
-
Eugen Rochko authored
* Fix SSL configuration regression in streaming API Fix #10223 * Fix code style issues and integrate #10219 * Fix dumb thing
-
- Mar 08, 2019
-
-
Sascha authored
* config: add DB_SSLMODE for managed/remote PG * streaming: set PG sslmode, defaults to prefer
-
- Oct 21, 2018
-
-
Gomasy authored
-
- Oct 20, 2018
-
-
Eugen Rochko authored
Previously, the server would attempt taking port/socket in worker process, and if it was taken, fail, which made the master process create a new worker. This led to really high CPU usage if the streaming API was started when the port or socket were not available. Now, before clustering (forking) into worker processes, a test server is created and then removed to check if it can be done.
-
- Oct 11, 2018
-
-
Eugen Rochko authored
* Add check for missing tag param in streaming API Fixes error: ``` TypeError: Cannot read property 'toLowerCase' of undefined at app.get (.../streaming/index.js:493:50) ``` * Fix code style issues
-
- Oct 07, 2018
-
-
Eugen Rochko authored
* Add conversations API * Add web UI for conversations * Add test for conversations API * Add tests for ConversationAccount * Improve web UI * Rename ConversationAccount to AccountConversation * Remove conversations on block and mute * Change last_status_id to be a denormalization of status_ids * Add optimistic locking
-
- Aug 26, 2018
-
-
Eugen Rochko authored
GET /api/v1/streaming/health Answers with OK. Fix #8337
-
- Aug 24, 2018
-
-
MIYAGI Hikaru authored
* Support UNIX domain socket for streaming service without using PORT The use of UNIX domain socket for streaming service was not officially supported, but it was made unofficial to use by setting a path to PORT. From now on, SOCKET will be used just like setting for puma. * Hundle relative path
-
- Jul 14, 2018
-
-
Eugen Rochko authored
-
- May 21, 2018
-
-
Yamagishi Kazutoshi authored
-
- Apr 18, 2018
-
-
Kaito Sinclaire authored
* Added a timeline for Direct statuses * Lists all Direct statuses you've sent and received * Displayed in Getting Started * Streaming server support for direct TL * Changes to match other timelines in 2.0
-
- Apr 17, 2018
-
-
abcang authored
-
- Dec 13, 2017
- Dec 12, 2017
-
-
erin authored
On an unhandled worker exception, we should log the exception and exit with nonzero status, instead of letting workers silently fail and restarting them in an endless loop. Note: we previously tried to handle the `'error'` signal. That's not a signal Node fires; my patch traps `'uncaughtException'`, which is what the code was _trying_ to do.
-
nullkal authored
* make it possible to stream public timelines without authorization * Fix * Make eslint allow `value == null` * Remove redundant line * Improve style and revert .eslintrc.yml * Fix streamWsEnd * Show IP address instead of (anonymous user) * Add missing semicolon
-
- Nov 18, 2017
-
-
Baptiste Gelez authored
-