- 25 Jun, 2022 1 commit
-
-
marcin mikołajczak authored
Signed-off-by:
marcin mikołajczak <git@mkljczk.pl>
-
- 06 Jun, 2022 1 commit
-
-
lain authored
hackney adapter helper: enable TLSv1.3 See merge request pleroma/pleroma!3661
-
- 30 May, 2022 2 commits
-
-
Pierre-Louis Bonicoli authored
-
Pierre-Louis Bonicoli authored
The list of TLS versions was added by 8bd2b6eb when hackney version was pinned to 1.15.2. Later hackney version was upgraded (166455c8) 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: 0cb7b0ea. 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'}}}
-
- 22 May, 2022 1 commit
-
-
Haelwenn authored
Instruct users to run 'git pull' as the pleroma user See merge request pleroma/pleroma!3667
-
- 19 May, 2022 1 commit
-
-
lain authored
StealEmojiPolicy: fix String rejected_shortcodes See merge request pleroma/pleroma!3673
-
- 18 May, 2022 1 commit
-
-
Hélène authored
* 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.
-
- 12 May, 2022 1 commit
-
-
lewdthewides authored
-
- 08 May, 2022 2 commits
-
-
Haelwenn authored
Also use actor_type to determine if an account is a bot in antiFollowbotPolicy Closes #2561 See merge request pleroma/pleroma!3498
-
- 06 May, 2022 5 commits
-
-
Haelwenn authored
Merge back 2.4.3 See merge request pleroma/pleroma!3663
-
Haelwenn authored
-
- 18 Apr, 2022 2 commits
-
-
Haelwenn authored
Fix incorrect fallback when English is set to first language See merge request pleroma/pleroma!3656
-
tusooa authored
-
- 05 Apr, 2022 2 commits
-
-
Haelwenn authored
Fix eratic test for POST /api/pleroma/admin/reports/:id/notes See merge request pleroma/pleroma!3653
-
Ilja authored
It retrieved two ReportNotes and then checked one of them. But the order isn't guaranteed, while the test tested on the content of the first ReportNote. I made the test on the content more generic
-
- 20 Mar, 2022 3 commits
-
-
Haelwenn authored
Translate backend-rendered pages See merge request pleroma/pleroma!3634
-
Haelwenn authored
Update Caddyfile to Caddy v2 Closes #2764 See merge request pleroma/pleroma!3641
-
Haelwenn authored
Delete report notifs when demoting from superuser Closes #2840 See merge request pleroma/pleroma!3642
-
- 17 Mar, 2022 1 commit
-
-
Haelwenn authored
mix: Check `.git` presence See merge request pleroma/pleroma!3638
-
- 07 Mar, 2022 1 commit
-
-
Ilja authored
Use patern matching to see if someone was superuser before
-
- 06 Mar, 2022 5 commits
-
-
Haelwenn authored
Fix test get_user_apps/1 See merge request pleroma/pleroma!3636
-
Haelwenn authored
Copyright bump for 2022 See merge request pleroma/pleroma!3593
-
tusooa authored
-
Ilja authored
When someone isn't a superuser any more, they shouldn't see the reporsts any more either. Here we delete the report notifications from a user when that user gets updated from being a superuser to a non-superuser.
-
sleepycrow authored
-
- 03 Mar, 2022 6 commits
-
-
tusooa authored
-
tusooa authored
-
tusooa authored
elixir gettext current does not fully support fallback to another language [0]. But it might in the future. We adapt it so that all languages in Accept-Language headers are received by Pleroma.Web.Gettext. User.languages is now a comma-separated list. [0]: https://github.com/elixir-gettext/gettext/issues/303
-
tusooa authored
-
tusooa authored
-
tusooa authored
For an example, here, zh is not supported, but zh_Hans and zh_Hant are. If the user asks for zh, we should choose a variant for them instead of fallbacking to default. Some browsers (e.g. Firefox) does not allow users to customize their language codes. For example, there is no zh-Hans, but only zh, zh-CN, zh-TW, zh-HK, etc. This provides a workaround for those users suffering from bad design decisions.
-
- 02 Mar, 2022 5 commits