aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma
AgeCommit message (Collapse)Author
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-01-11Merge branch 'pleroma-result-1_13' into 'develop'lain
move result into with guard See merge request pleroma/pleroma!3557
2021-08-28Selecting MRF policies didn't work as intended any moreIlja
* Policies were put under a new module (Pleroma.Web.ActivityPub.MRF.Policy instead of Pleroma.Web.ActivityPub.MRF), but this wasn't changed in the Pleroma.Web.ActivityPub.MRF @mrf_config_descriptions * I don't have a unit test to prevent similar problems in the future because I don't find a proper way to do it * The descriptions in the unit tests are defined in the unit tests, so if someone changes module names in the code, the tests wont see it * The list is generated in Pleroma.Docs.Generator.list_behaviour_implementations, but I can't do a check in the when clause of the function to see if the provided module is a behaviour or not. Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3509
2021-08-28Make activity search properly use GIN indexesTusooa Zhu
The original approach to search in GIN indexes is to use `to_tsvector(text)` in the WHERE clause of the query. According to postgres docs [pdoc], this method does not make use of the index, while `to_tsvector(config, text)` does. This commit changed the query to use the two-argument `to_tsvector()`. [pdoc]: https://www.postgresql.org/docs/12/textsearch-tables.html To obtain the search config in use, we make a query to the db first. The `::regconfig::oid` hack is needed because Postgrex does not support regconfig type directly [postgrexbug]. I use the conversion from and to `oid` instead of `text` because I tested in the actual DB and querying using the conversion via `text` is slow just as the one-argument `to_tsvector()` variant. [postgrexbug]: https://github.com/elixir-ecto/postgrex/issues/502 Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3519 Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/2758
2021-08-28List available frontends also when no static/frontends folder is present yetIlja
* To see what front ends are installed, it ls static/frontends. When this folder doesn't exists yet, it will return an empty array. * Installing still works since the folder is created during installation already Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3510
2021-08-28Add Admin-FE menu for StealEmojiPolicySam Therapy
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3512
2021-08-13Streamer: fix crash in MastodonAPI.StatusViewAlex Gleason
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3508
2021-08-13Activity.Search: fallback on status resolution on DB TimeoutHaelwenn (lanodan) Monnier
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3507
2021-08-13AdminAPI: hotfix for nil report objectsAlex Gleason
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3504
2021-08-13maybe_notify_subscribers: Don't create notifications from ingested repliesHaelwenn (lanodan) Monnier
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3505
2021-08-13TwitterAPI: Make change_email require body params instead of queryHaelwenn (lanodan) Monnier
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3503
2021-08-13TwitterAPI: Make change_password require body params instead of queryHaelwenn (lanodan) Monnier
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3503
2021-08-13ObjectAgePolicy: Fix pattern matching on publishedHaelwenn (lanodan) Monnier
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3500
2021-08-13fix: stream out Create ActivitykPherox
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3499
2021-07-27Merge remote-tracking branch 'pleroma/develop' into object-tombstone-visibilityAlex Gleason
2021-07-27Visibility: check Tombstone objects in visible_for_user?/2Alex Gleason
2021-07-22Merge branch 'mkljczk-develop-patch-60115' into 'develop'Haelwenn
MastodonAPI: Fix list timelines Closes mastofe#89 and #2693 See merge request pleroma/pleroma!3477
2021-07-14Merge branch 'admin-api-users-sort' into 'develop'feld
AdminAPI: sort new users at the top Closes #2709 See merge request pleroma/pleroma!3481
2021-07-14Merge remote-tracking branch 'pleroma/develop' into admin-api-users-dateAlex Gleason
2021-07-14AdminAPI: add date to usersAlex Gleason
2021-07-13Merge remote-tracking branch 'pleroma/develop' into admin-api-users-sortAlex Gleason
2021-07-13AdminAPI: sort user results by ID descendingAlex Gleason
2021-07-12Merge branch 'features/ingestion-page' into 'develop'Haelwenn
Pipeline Ingestion: Page See merge request pleroma/pleroma!3097
2021-07-12AP C2S: Remove restrictions and make it go through pipelineHaelwenn (lanodan) Monnier
2021-07-02fix the fucking list timelines on mastofe/soapbox-femarcin mikołajczak
2021-06-30Deletions: change User.purge/1 to defp, add CHANGELOG entryAlex Gleason
2021-06-30Merge remote-tracking branch 'pleroma/develop' into remote-deletionsAlex Gleason
2021-06-30Deletions: don't purge keys so Delete/Undo activities can be signedAlex Gleason
2021-06-30Deletions: allow deactivated users to be deletedAlex Gleason
2021-06-29Deletions: preserve account status fields during purge, fix checksAlex Gleason
2021-06-29Also purge the user in User.perform/2Alex Gleason
2021-06-29Deletions: purge the user immediatelyAlex Gleason
2021-06-29Correctly purge a remote userAlex Gleason
2021-06-24Activity deletion: fix FunctionClauseError #2686Alex Gleason
2021-06-23Merge branch 'ecto-upgrade' into 'develop'feld
Upgrade Ecto to v3.6.2, remove deprecated ecto_explain See merge request pleroma/pleroma!3473
2021-06-23Upgrade Ecto to v3.6.2, remove deprecated ecto_explainAlex Gleason
2021-06-22Add test on changing [:instance, :upload_limit]Haelwenn (lanodan) Monnier
2021-06-22Downgrade Plug to 1.10.x, revert upload_limit tuple to function changeHaelwenn (lanodan) Monnier
This should fix setting the upload limit in the database as found in: https://queer.hacktivis.me/notice/A8XUZp74Cg7eYNEMxU This reverts commit 7d350b73f58664eb822efaa5f522fcf2bd38f669.
2021-06-10Merge branch 'fix/twittercard-video-dimensions' into 'develop'feld
Generate Twittercard/OGP metadata with correct dimensions See merge request pleroma/pleroma!3456
2021-06-10Add note about video thumbnails for code spelunkers unfamiliar with Media ↵Mark Felder
Preview Proxy
2021-06-09Fix compile cycle in Pleroma.Tests.AuthTestControllerAlex Gleason
2021-06-09Formatting of the commentMark Felder
2021-06-09CredoMark Felder
2021-06-09LintMark Felder
2021-06-09Fix incorrectly ordered arguments to the function and not properly merging ↵Mark Felder
lists.
2021-06-09Add a video thumbnail to the OpenGraph metadata if Media Preview Proxy is ↵Mark Felder
enabled.
2021-06-09Remove Metadata.Utils.attachment_url/1Mark Felder
This was a wasteful shortcut to MediaProxy.preview_url/1 and we don't always want the preview_url in the metadata anyway.
2021-06-09ObjectValidators.{Announce,EmojiReact,Like}: Fix context, actor & addressingHaelwenn (lanodan) Monnier
2021-06-09Merge branch 'cycles-plug-deps' into 'develop'Haelwenn
Refactor skipped plugs into Pleroma.Web functions See merge request pleroma/pleroma!3463