Age | Commit message (Collapse) | Author |
|
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
|
|
|
Fix random test failures, revert auto-retry failed tests
See merge request pleroma/pleroma!4221
|
|
This reverts commit ed2976b237b53a524247d564691e0a12d3231d68.
|
|
MRFs written over time have been inconsistent with the terminology of what is being processed. MRFs work on Activities, but generally we always named the assignments "message" or "object" which is really confusing when trying to debug or write tests.
|
|
|
|
MRF.FODirectReply
See merge request pleroma/pleroma!4091
|
|
Mark `/api/v1/pleroma/accounts/:id/subscribe`/`unsubscribe` as deprecated
See merge request pleroma/pleroma!4216
|
|
Force replies to followers-only posts to always be direct
|
|
MRF.QuietReply
See merge request pleroma/pleroma!4213
|
|
|
|
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
|
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
|
3.5.0)
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
|
|
|
published to the timelines
|
|
|
|
|
|
The cc field is not required and the code was keeping the cc if it existed on an activity or replacing it with the default of an empty list when casting. If any Follow activity was received with a cc field, it would attempt to keep it.
This was noticed in !4208 where we would craft Follow requests with a cc value of nil.
|
|
Fix WebPush notifications not generating jobs
See merge request pleroma/pleroma!4210
|
|
Dialyzer pointed this one out.
The WorkerHelper removal in !4166 was missing this Oban.insert() and tests were not noticing any problems because we mocked the Push.send function instead of executing it and checking for the Oban job.
|
|
provided to the function
|
|
StreamerView: Do not leak follows count if hidden
See merge request pleroma/pleroma!4205
|
|
|
|
|
|
Remove WorkerHelper
See merge request pleroma/pleroma!4166
|
|
|
|
|
|
|
|
|
|
|
|
Mastodon uses the Sec-Websocket-Protocol header to send the auth token. It is not clear if this is a violation of the RFC, but Mastodon is not the first application in the wild to use this header for authentication purposes. Phoenix does not allow accessing this header, so we work around it temporarily with a minor patch to Phoenix 1.7.14. We will reach out to Phoenix to discuss how to make this use case possible.
|
|
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
|
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
|
Gun's connection pool also returns an error if duplicate workers are launched simultaneously. Snooze on this error as well, and lower the snooze to 3 seconds with the optimism that the connection will still be open by then and the delivery can be completed quickly.
The original setting of 30 seconds is pretty high and means there's an unnatural lag between deliveries of activities destined to the same server that were created at nearly the same time. This configuration should be more efficient.
|
|
Our test environment cheats by constructing a conn with a custom oauth_access/2 function. This assigns a :token to the conn but due to the way it is constructed it has the :user preloaded. When the OAuth Plug fetches a token it does not preload the user, so the check for user.disclose_client was always nil and assumed to be false.
Preloading the :user ensures the test environment matches reality.
|
|
|
|
Publisher job simplification
See merge request pleroma/pleroma!4194
|
|
Backups Refactoring
See merge request pleroma/pleroma!4158
|
|
|
|
|
|
|
|
Publisher jobs now store the the activity id instead of inserting duplicate JSON data in the Oban queue for each delivery.
|
|
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
|
|
|
|
|
|
|
|
|
|
|
This logic only exists in the Plug, so attempting to validate the signature by calling the library function HTTPSignature.validate_conn/2 directly will never work because we do not attempt to construct the (request-target) and @request-target headers with both the commonly misinterpreted and correct implementation of this field. Therefore all attempts to validate a signature from an Oban Job will fail.
|