summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2024-08-14Fix 'Setting a marker should mark notifications as read'marcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-14User: truncate remote user fields instead of rejectingHaelwenn (lanodan) Monnier
2024-08-13Merge branch 'fix-random-test-errors' into 'develop'feld
Fix random test failures, revert auto-retry failed tests See merge request pleroma/pleroma!4221
2024-08-13Revert "Custom mix task to retry failed tests once in CI pipeline"Mark Felder
This reverts commit ed2976b237b53a524247d564691e0a12d3231d68.
2024-08-13MRF cleanupMark Felder
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.
2024-08-12MRF.FODirectReply: use Visibility module to verify the scopeMark Felder
2024-08-12Merge branch 'followers-only-reply-direct-mrf' into 'develop'feld
MRF.FODirectReply See merge request pleroma/pleroma!4091
2024-08-12Merge branch 'deprecate-subscribe' into 'develop'feld
Mark `/api/v1/pleroma/accounts/:id/subscribe`/`unsubscribe` as deprecated See merge request pleroma/pleroma!4216
2024-08-12MRF.FODirectReplyMark Felder
Force replies to followers-only posts to always be direct
2024-08-12Merge branch 'mrf-quietreply' into 'develop'feld
MRF.QuietReply See merge request pleroma/pleroma!4213
2024-08-12Add module documentationMark Felder
2024-08-12remove unused aliasmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-12Mark `/api/v1/pleroma/accounts/:id/subscribe`/`unsubscribe` as deprecatedmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-12Remove stub for /api/v1/accounts/:id/identity_proofs (deprecated by Mastodon ↵marcin mikołajczak
3.5.0) Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-08We must change to/cc in the activity and inner objectMark Felder
2024-08-08Added MRF.QuietReply which prevents replies to public posts from being ↵Mark Felder
published to the timelines
2024-08-07Remove validation for cc fields on BlocksMark Felder
2024-08-07Remove validation for cc fields on Follow Accept/RejectMark Felder
2024-08-07Do not require a cc field when validating an incoming Follow activityMark Felder
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.
2024-08-07Merge branch 'workerhelper-fix' into 'develop'feld
Fix WebPush notifications not generating jobs See merge request pleroma/pleroma!4210
2024-08-07Fix WebPush notifications not generating jobsMark Felder
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.
2024-08-07Fix CommonAPI.follow/2 which returned users in the reverse order they were ↵Mark Felder
provided to the function
2024-08-07Merge branch 'stream-follow-relationships-count' into 'develop'feld
StreamerView: Do not leak follows count if hidden See merge request pleroma/pleroma!4205
2024-08-07Merge branch 'stream-follow-relationships-count' into developMark Felder
2024-08-07Improve the variable namingMark Felder
2024-08-07Merge branch 'remove/workerhelper' into 'develop'feld
Remove WorkerHelper See merge request pleroma/pleroma!4166
2024-08-07Extract the logic from the mapMark Felder
2024-08-06CredoMark Felder
2024-08-06Use a struct to hold the prepared data passed to publish_one/1Mark Felder
2024-08-06Force cc to an empty list if undefinedMark Felder
2024-08-06Split Federator.publish_one/1 into a second function called prepare_one/1Mark Felder
2024-08-04Fix Mastodon WebSocket authenticationMark Felder
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.
2024-08-04StreamerView: Do not leak follows count if hiddenmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-03Support `id` param in `GET /api/v1/statuses`marcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-02Gun: Publisher job behavior improvementMark Felder
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.
2024-07-31Fix User.disclose_client never working correctlyMark Felder
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.
2024-07-30Remove WorkerHelperMark Felder
2024-07-30Merge branch 'oban/simpler-publish' into 'develop'feld
Publisher job simplification See merge request pleroma/pleroma!4194
2024-07-29Merge branch 'oban/backup' into 'develop'feld
Backups Refactoring See merge request pleroma/pleroma!4158
2024-07-29Revert unintended change to the Logger metadata tag nameMark Felder
2024-07-29Fix cancelling jobsMark Felder
2024-07-29Remove actor and actor_id from the job as it can be inferred by the activityMark Felder
2024-07-28Publisher job simplificationMark Felder
Publisher jobs now store the the activity id instead of inserting duplicate JSON data in the Oban queue for each delivery.
2024-07-28Fix good_locale_code?/1 regexmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-07-28Merge remote-tracking branch 'origin/develop' into post-languagesmarcin mikołajczak
2024-07-25Safer string concatenationMark Felder
2024-07-25Improve specs and matchingMark Felder
2024-07-25Merge remote-tracking branch 'origin/develop' into oban/backupMark Felder
2024-07-25Add test to fetch and validate an activity that originally failed signatureMark Felder
2024-07-25Extract validate_signature/2 from the HTTPSignaturePlugMark Felder
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.