summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2024-05-31Use proper workers for fetching pins instead of an ad-hoc taskFloatingghost
BUG: https://git.pleroma.social/pleroma/pleroma/-/issues/3276
2024-05-30Fix Logger.warn deprecation error on OTP25Mark Felder
2024-05-29Add additional flags to the Pleroma.Search.Indexer Mix taskMark Felder
2024-05-28Merge branch 'dialyzer-fixes' into 'develop'feld
Dialyzer fixes See merge request pleroma/pleroma!4128
2024-05-28Dialyzer: fix invalid @specMark Felder
2024-05-28Dialyzer: The function call will not succeed.Mark Felder
:idna.encode/1 expects a charlist even though it will accept a binary string. That functionality is undocumented / not part of its typespec, so we should turn it into a charlist first. Also switch to using match?/2 lib/pleroma/user.ex:2056:call The function call will not succeed. :idna.encode(_host :: binary()) will never return since the success typing is: (string()) :: string() and the contract is (string()) :: string()
2024-05-28Dialyzer: overlapping_contractMark Felder
Wrong @spec name for remove_from_block/2 lib/pleroma/user.ex:2721:overlapping_contract Overloaded contract for Pleroma.User.add_to_block/2 has overlapping domains; such contracts are currently unsupported and are simply ignored.
2024-05-28Dialyzer: The pattern can never match the typeMark Felder
We will never pass :plain to query_with/4, so remove that match and change it to query_with/3 lib/pleroma/search/database_search.ex:127:pattern_match The pattern can never match the type. Pattern: _q, :rum, _search_query, :plain Type: %Ecto.Query{ :aliases => _, :assocs => _, :combinations => _, :distinct => _, :from => _, :group_bys => _, :havings => _, :joins => _, :limit => _, :lock => _, :offset => _, :order_bys => _, :prefix => _, :preloads => _, :select => _, :sources => _, :updates => _, :wheres => _, :windows => _, :with_ctes => _ }, :rum, _, :websearch
2024-05-28Dialyzer: no_local_returnMark Felder
WebPushEncryption.send_web_push/4 was written to raise on erroroneus input, so we must guard against that. lib/pleroma/web/push/impl.ex:65:no_return Function push_message/4 has no local return.
2024-05-28Dialyzer: fix pattern matches preventing video thumbnailing from workingMark Felder
lib/pleroma/web/media_proxy/media_proxy_controller.ex:154:pattern_match The pattern can never match the type. Pattern: {:ok, _thumbnail_binary} Type: {:error, boolean() | {:ffmpeg, :command_not_found}}
2024-05-28Use the configured http client options for mediaproxyMark Felder
2024-05-28Dialyzer: guard clause can never succeedMark Felder
lib/pleroma/web/activity_pub/mrf/dnsrbl_policy.ex:106:guard_fail The guard clause: when _ :: [ binary() | [string() | char()] | {string() | integer(), string()} | {{byte(), byte(), byte(), byte()}, integer(), binary()} | {integer(), integer(), integer(), string() | byte()} | {integer(), integer(), string(), string(), string(), string()} | {string(), string(), integer(), integer(), integer(), integer(), integer()} | {char(), char(), char(), char(), char(), char(), char(), char()} ] === nil can never succeed.
2024-05-28Dialyzer: fix invalid @specMark Felder
The callback already defines the @spec and these do not match it. lib/pleroma/upload/filter/exiftool/strip_location.ex:12:callback_spec_type_mismatch The @spec return type does not match the expected return type for filter/1 callback in Pleroma.Upload.Filter behaviour. Actual: @spec filter(...) :: {:ok, _} Expected: @spec filter(...) :: {:error, _} | {:ok, :filtered | :noop} | {:ok, :filtered, struct()}
2024-05-28Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵Lain Soykaf
pleroma-feature/akkoma-prune-old-posts
2024-05-28Dialyzer: fix invalid @specMark Felder
lib/pleroma/notification.ex:492:invalid_contract The @spec for the function does not match the success typing of the function. Function: Pleroma.Notification.get_notified_from_activity/2 Success typing: @spec get_notified_from_activity(_, _) :: [any()]
2024-05-28HTTPSignaturePlugTest: Rewrite to use mox.Lain Soykaf
2024-05-28Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵Lain Soykaf
pleroma-secure-mode
2024-05-28Merge branch 'auth-fetch-exception' into 'develop'lain
HTTPSignaturePlug: Add :authorized_fetch_mode_exceptions See merge request pleroma/pleroma!4007
2024-05-28Merge branch 'httpfixes' into 'develop'lain
Some HTTP and connection pool improvements See merge request pleroma/pleroma!4124
2024-05-28LintingLain Soykaf
2024-05-27CredoMark Felder
2024-05-27Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵Lain Soykaf
auth-fetch-exception
2024-05-27Merge branch 'simpler-oban-queues' into 'develop'feld
Oban queue simplification See merge request pleroma/pleroma!4123
2024-05-27Merge branch 'explicitly-allow-unsafe-2' into 'develop'lain
Explicitly allow unsafe 2 See merge request pleroma/pleroma!4125
2024-05-27Merge branch 'qdrant-search-2' into 'develop'lain
Search: Basic Qdrant/Ollama search See merge request pleroma/pleroma!4109
2024-05-27HTTPSecurityPlug: Fix testsLain Soykaf
2024-05-27Remove MediaProxyWarmingPolicy config for ConcurrentLimiter as we are not ↵Mark Felder
using it
2024-05-27Merge branch 'logger-metadata' into 'develop'feld
Logger metadata See merge request pleroma/pleroma!3990
2024-05-27Oban queue simplificationMark Felder
2024-05-27HttpSecurityPlug: Don't allow unsafe-eval by defaultLain Soykaf
2024-05-27Merge branch 'image-description-summary' into 'develop'lain
Add support for Honk "summary" + "name" See merge request pleroma/pleroma!3854
2024-05-27Merge branch 'anti-mention-spam-mrf' into 'develop'feld
Anti-mention Spam MRF See merge request pleroma/pleroma!4072
2024-05-27Make user age limit configurableMark Felder
Switch to milliseconds for consistency with other configuration options in codebase
2024-05-27AntiMentionSpamPolicy: remove followers checkAlex Gleason
2024-05-27AntiMentionSpamPolicy: fix user age checkAlex Gleason
2024-05-27Add AntiMentionSpamPolicyAlex Gleason
2024-05-27DNSRBL in an MRFMark Felder
2024-05-27Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵Lain Soykaf
image-description-summary
2024-05-27InetHelper: Don't use deprecated function.Lain Soykaf
2024-05-27Merge branch 'show-reposted-replies' into 'develop'lain
Display reposted replies with exclude_replies: true See merge request pleroma/pleroma!3961
2024-05-27Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵Lain Soykaf
auth-fetch-exception
2024-05-27Use the configured http client options for mediaproxyMark Felder
2024-05-27Trust the connection pools to enforce the concurrency limitationsMark Felder
2024-05-27Merge branch 'nsfw-api-mrf' into 'develop'lain
NSFW API Policy See merge request pleroma/pleroma!3471
2024-05-27Add a dedicated connection pool for Rich MediaMark Felder
Sharing this pool with regular Media is problematic as Rich Media will connect to many different domains and thrash the pool, but regular Media will have predictable connections to the webservers hosting media for the fediverse servers you peer with.
2024-05-27Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into nsfw-api-mrfLain Soykaf
2024-05-27IPFSTest: Fix configuration mockingLain Soykaf
2024-05-27Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵Lain Soykaf
pleroma-ipfs_uploader
2024-05-27Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵Lain Soykaf
reject-replies-to-deleted
2024-05-27QdrantSearch: Fetch a post in search if possible.Lain Soykaf