summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-05-15Merge branch 'instance_rules' into 'develop'feld
Instance rules See merge request pleroma/pleroma!3669
2024-05-11Merge branch 'develop' into fix-muted-web-pushMark Felder
2024-05-08Add test for StatusView rendering of Cards when missing descriptionsMark Felder
2024-05-08Improve StatusView tests for CardsMark Felder
2024-05-08Mastodon API: Remove deprecated GET /api/v1/statuses/:id/card endpointMark Felder
Removed back in 2019 https://github.com/mastodon/mastodon/pull/11213
2024-05-08Remove test validating missing descriptions are returned as an empty stringMark Felder
2024-05-08Improve test descriptionMark Felder
2024-05-08Rich Media Cards are fetched asynchonously and not guaranteed to be ↵Mark Felder
available on first post render
2024-05-08Rich Media Cards are cached by URL not per statusMark Felder
2024-05-07Respect the TTL returned in OpenGraph tagsMark Felder
2024-05-07Fix broken testsMark Felder
2024-05-07Revert "Merge branch 'pleroma-card-image-description' into 'develop'"feld
This reverts merge request !4101
2024-04-19Merge branch 'pleroma-card-image-description' into 'develop'lain
Include image description in status media cards See merge request pleroma/pleroma!4101
2024-04-19Include image description in status media cardsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-11FEP-2c59, add "webfinger" to user actormarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-06Add hint to rulesmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-06Merge remote-tracking branch 'origin/develop' into instance_rulesmarcin mikołajczak
2024-03-20Merge branch 'bookmark-folders' into 'develop'lain
Fix BookmarkFolderView, add test See merge request pleroma/pleroma!4096
2024-03-20Fix BookmarkFolderView, add testmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-03-19Unify notification push and streaming events for both local and federated ↵Mark Felder
activities This also removes generation of notifications for blocked/filtered/muted users and threads.
2024-03-19Tests: Actually run the bookmark folder tests.Lain Soykaf
2024-03-19Merge branch 'test-improvements' into 'develop'lain
Tests: Explicitly set db pool size and max cases to the same value. See merge request pleroma/pleroma!4094
2024-03-19Tests: Reduced the max case number to make tests more stable.Lain Soykaf
2024-03-19Tests: Explicitly set db pool size and max cases to the same value.Lain Soykaf
2024-03-18Remove usage of :persistent_term for Postgres version storage, fix testMark Felder
This test should not have been passing. The search result's activity id should not be the same id as the local post. capture_log was not being used. Removed.
2024-03-18Remove test for postgres < 11Mark Felder
2024-03-18Merge remote-tracking branch 'origin/develop' into instance_rulesmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-03-18Merge branch 'develop' into 'bookmark-folders'lain
# Conflicts: # docs/development/API/differences_in_mastoapi_responses.md
2024-03-18Merge branch 'public-polls' into 'develop'lain
Expose nonAnonymous field from Smithereen polls See merge request pleroma/pleroma!3962
2024-03-17ActivityPub.Publisher: Don't try federating if a user doesn't have an inbox.Lain Soykaf
2024-03-17Merge branch 'force-mention' into 'develop'lain
Add ForceMention mrf See merge request pleroma/pleroma!4082
2024-03-15Merge branch 'backups' into 'develop'feld
Include following/followers in backups See merge request pleroma/pleroma!4085
2024-03-10Include following/followers in backupsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-03-08Merge remote-tracking branch 'origin/develop' into instance-contact-accountmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-03-07Add testmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-03-07Merge remote-tracking branch 'origin/develop' into link-verificationmarcin mikołajczak
2024-03-01Add ForceMention mrfmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-03-01Allow to group bookmarks in foldersmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-02-22Merge remote-tracking branch 'origin/develop' into HEADmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-02-20StealEmojiPolicy: Sanitize shortcodesHaelwenn (lanodan) Monnier
Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/3245
2024-02-15Merge branch 'websocket-refactor' into 'develop'feld
Websocket refactor to use Phoenix.Socket.Transport See merge request pleroma/pleroma!4064
2024-02-15Merge branch 'bugfix-ccworks' into 'develop'Haelwenn
Bugfix for ccworks AP bridge Closes #3234 See merge request pleroma/pleroma!4043
2024-02-14Remove invalid testMark Felder
It is not allowed to use the Sec-WebSocket-Protocol header for arbitrary values. This was possible due to the raw websocket handling we were doing with Cowboy, but Phoenix.Socket.Transport does not allow this as the value of this header is compared against a static list of subprotocols. https://hexdocs.pm/phoenix/Phoenix.Endpoint.html#socket/3-websocket-configuration Additionally I cannot find anywhere that we depended on this behavior. Setting the Sec-WebSocket-Protocol header does not appear to be a part of PleromaFE.
2024-02-06Pleroma.Web.RichMedia.Parser: Remove test-specific codepathsMark Felder
Also consolidate Tesla mocks into the HttpRequestMock module. Tests were not exercising the real codepaths. The Rich Media Preview only works with https, but most of these tests were only mocking http.
2024-02-05Ensure URLs with IP addresses for the host do not generate previewsMark Felder
2024-02-04Fix Rich Media Previews for updated activitiesMark Felder
The Rich Media Previews were not regenerated when a post was updated due to a cache invalidation issue. They are now cached by the activity id so they can be evicted with the other activity cache objects in the :scrubber_cache.
2024-01-30Phoenix.Endpoint.Cowboy2Handler does not existMark Felder
This should have always failed as it would not be an existing atom. Unclear how it worked since the upgrade to Phoenix 1.6.
2024-01-30Revert "Pleroma.Web.AdminAPI.ConfigController: dialyzer error"Mark Felder
This reverts commit 60d89cb40455f9f70b683849dd95311975b0b6f7.
2024-01-29Pleroma.Web.MediaProxy.MediaProxyController: dialyzer errorsMark Felder
lib/pleroma/web/media_proxy/media_proxy_controller.ex:55:no_return Function handle_preview/2 has no local return. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:59:call The function call will not succeed. Pleroma.HTTP.request(<<72, 69, 65, 68>>, _media_proxy_url :: any(), [], [], [{:pool, :media}]) will never return since the success typing is: ( :delete | :get | :head | :options | :patch | :post | :put | :trace, binary(), any(), [{binary(), binary()}], Keyword.t() ) :: any() and the contract is ( method(), Pleroma.HTTP.Request.url(), String.t(), Pleroma.HTTP.Request.headers(), :elixir.keyword() ) :: {:ok, Tesla.Env.t()} | {:error, any()} ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:95:unused_fun Function handle_preview/3 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:111:unused_fun Function handle_png_preview/2 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:134:unused_fun Function handle_jpeg_preview/2 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:152:unused_fun Function handle_video_preview/2 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:164:unused_fun Function drop_static_param_and_redirect/1 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:173:unused_fun Function fallback_on_preview_error/2 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:177:unused_fun Function put_preview_response_headers/1 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:177:unused_fun Function put_preview_response_headers/2 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:187:unused_fun Function thumbnail_max_dimensions/0 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:196:unused_fun Function min_content_length_for_preview/0 will never be called. ________________________________________________________________________________ lib/pleroma/web/media_proxy/media_proxy_controller.ex:200:unused_fun Function media_preview_proxy_config/0 will never be called.
2024-01-29Merge branch 'deps-bump' into 'develop'Haelwenn
Bump dependencies See merge request pleroma/pleroma!4044