aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2022-06-11Workaround with_index does not support function in Elixir 1.9Tusooa Zhu
2022-06-11Send the correct update in streamerTusooa Zhu
get_create_by_ap_id_with_object() seems to fetch the old object. Why this happens needs further investigation.
2022-06-11Expose history and source apis to anon usersTusooa Zhu
2022-06-09Fix incorrectly cached content after editingTusooa Zhu
2022-06-08Return the corresponding object id in attachment viewTusooa Zhu
2022-06-08Add object id to uploaded attachmentsTusooa Zhu
2022-06-05LintTusooa Zhu
2022-06-05Return update notification in mastodon apiTusooa Zhu
2022-06-05Create Update notificationsTusooa Zhu
2022-06-04Expose content type of status sourcesTusooa Zhu
2022-06-03Show edited_at in MastodonAPI/showTusooa Zhu
2022-06-03Stream out editsTusooa Zhu
2022-06-01Inject history when object is refetchedTusooa Zhu
2022-06-01Strip internal fields in formerRepresentationTusooa Zhu
2022-05-31Implement mastodon api for editing statusTusooa Zhu
2022-05-31hackney adapter helper & reverse proxy client: enable TLSv1.3Pierre-Louis Bonicoli
The list of TLS versions was added by 8bd2b6eb138ace3408a03c78ecc339fc35b19f10 when hackney version was pinned to 1.15.2. Later hackney version was upgraded (166455c88441b22455d996ed528ed4804514a3c0) but the list of TLS versions wasn't removed. From the hackney point of view, this list has been replaced by the OTP defaults since 0.16.0 (734694ea4e24f267864c459a2f050e943adc6694). It looks like the same issue already occurred before: 0cb7b0ea8477bdd7af2e5e9071843be5b8623dff. A way to test this issue (where example.com is an ActivityPub site which uses TLSv1.3 only): $ PLEROMA_CONFIG_PATH=/path/to/config.exs pleroma start_iex Erlang/OTP 22 [erts-10.7.2.16] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe] Erlang/OTP 22 [erts-10.7.2.16] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe] Interactive Elixir (1.10.4) - press Ctrl+C to exit (type h() ENTER for help) iex(pleroma@127.0.0.1)2> Pleroma.Object.Fetcher.fetch_and_contain_remote_object_from_id("https://example.com/@/Nick/") {:error, {:tls_alert, {:protocol_version, 'TLS client: In state hello received SERVER ALERT: Fatal - Protocol Version\n'}}} With this patch, the output is the expected one: iex(pleroma@127.0.0.1)3> Pleroma.Object.Fetcher.fetch_and_contain_remote_object_from_id("https://example.com/@/Nick/") {:error, {:ok, %{ "@context" => [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1", %{ "Emoji" => "toot:Emoji", "Hashtag" => "as:Hashtag", "atomUri" => "ostatus:atomUri", "conversation" => "ostatus:conversation", "featured" => "toot:featured", "focalPoint" => %{"@container" => "@list", "@id" => "toot:focalPoint"}, "inReplyToAtomUri" => "ostatus:inReplyToAtomUri", "manuallyApprovesFollowers" => "as:manuallyApprovesFollowers", "movedTo" => "as:movedTo", "ostatus" => "http://ostatus.org#", "sensitive" => "as:sensitive", "toot" => "http://joinmastodon.org/ns#" } ], "endpoints" => %{"sharedInbox" => "https://example.com/inbox"}, "followers" => "https://example.com/@/Nick/followers", "following" => nil, "icon" => %{ "type" => "Image", "url" => "https://example.com/static/media/[...].png" }, "id" => "https://example.com/@/Nick/", "inbox" => "https://example.com/@/Nick/inbox", "liked" => nil, "name" => "Nick", "outbox" => "https://example.com/@/Nick/outbox", "preferredUsername" => "Nick", "publicKey" => %{ "id" => "https://example.com/@/Nick/#main-key", "owner" => "https://example.com/@/Nick/", "publicKeyPem" => "[...] }, "summary" => "", "type" => "Person", "url" => "https://example.com/@/Nick/" }} A way to test the reverse proxy bits of this issue (where example.com allows TLSv1.3 only): iex(pleroma@127.0.0.1)1> Pleroma.ReverseProxy.Client.Hackney.request("GET", "https://example.com", [], []) {:error, {:tls_alert, {:protocol_version, 'TLS client: In state hello received SERVER ALERT: Fatal - Protocol Version\n'}}}
2022-05-30Implement viewing sourceTusooa Zhu
2022-05-29Implement mastodon api for showing edit historyTusooa Zhu
2022-05-29Allow updating pollsTusooa Zhu
2022-05-29Record edit history for Note and Question UpdatesTusooa Zhu
2022-05-29Handle Note and Question UpdatesTusooa Zhu
2022-05-29Allow Updates by every actor on the same originTusooa Zhu
2022-05-18StealEmojiPolicy: fix String rejected_shortcodesHélène
* rejected_shortcodes is defined as a list of strings in the configuration description. As such, database-based configuration was led to handle those settings as strings, and not as the actually expected type, Regex. * This caused each message passing through this MRF, if a rejected shortcode was set and the emoji did not exist already on the instance, to fail federating, as an exception was raised, swiftly caught and mostly silenced. * This commit fixes the issue by introducing new behavior: strings are now handled as perfect matches for an emoji shortcode (meaning that if the emoji-to-be-pulled's shortcode is in the blacklist, it will be rejected), while still supporting Regex types as before.
2022-05-09Make lint happyTusooa Zhu
Ref: fix-local-public
2022-05-09Allow authenticated users to access local-only posts in MastoAPITusooa Zhu
Ref: fix-local-public
2022-05-08Merge branch 'improve_anti_followbot_policy' into 'develop'Haelwenn
Also use actor_type to determine if an account is a bot in antiFollowbotPolicy Closes #2561 See merge request pleroma/pleroma!3498
2022-05-08Also use actor_type to determine if an account is a bot in antiFollowbotPolicyIlja
2022-05-07Allow users to create backups without providing email addressTusooa Zhu
Ref: backup-without-email
2022-05-06Prevent remote access of local-only posts via /objectsTusooa Zhu
Ref: fix-local-public
2022-05-06LintTusooa Zhu
Ref: fix-local-public
2022-05-06Make local-only statuses searchableTusooa Zhu
Ref: fix-local-public
2022-05-06Show local-only statuses in public timeline for authenticated usersTusooa Zhu
Ref: fix-local-public
2022-05-06Skip cache when /objects or /activities is authenticatedTusooa Zhu
Ref: fix-local-public
2022-05-06Allow to skip cache in Cache plugTusooa Zhu
Ref: fix-local-public
2022-04-17Fix incorrect fallback when English is set to first languageTusooa Zhu
2022-04-02Restrict mastodon api announcements to logged-in users onlyTusooa Zhu
2022-03-29Add short_description fieldmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-20Merge branch 'from/upstream-develop/tusooa/translate-pages' into 'develop'Haelwenn
Translate backend-rendered pages See merge request pleroma/pleroma!3634
2022-03-20Merge branch 'delete_report_notifs_when_demoting_from_superuser' into 'develop'Haelwenn
Delete report notifs when demoting from superuser Closes #2840 See merge request pleroma/pleroma!3642
2022-03-18Use utc_datetime in db schemaTusooa Zhu
2022-03-17Transmogrifier: Use validating regex for "mediaType"Haelwenn (lanodan) Monnier
2022-03-17AttachmentValidator: Use custom ecto type and regex for "mediaType"Haelwenn (lanodan) Monnier
2022-03-17EctoType: Add MIME validatorHaelwenn (lanodan) Monnier
2022-03-16Use `types` for filtering notificationsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-08Format announcements into htmlTusooa Zhu
2022-03-08Add pagination to AdminAPI.AnnouncementController.indexTusooa Zhu
2022-03-08Implement update announcement admin apiTusooa Zhu
2022-03-08Remove GET /api/v1/announcements/:idTusooa Zhu
2022-03-08Show only visible announcements in MastodonAPITusooa Zhu
2022-03-08Add starts_at, ends_at and all_day parametersTusooa Zhu