social.metadata.moe/lib/pleroma/web
Mark Felder e6951e7e40 Fix User.disclose_client never working correctly
Our test environment cheats by constructing a conn with a custom oauth_access/2 function. This assigns a :token to the conn but due to the way it is constructed it has the :user preloaded. When the OAuth Plug fetches a token it does not preload the user, so the check for user.disclose_client was always nil and assumed to be false.

Preloading the :user ensures the test environment matches reality.
2024-07-31 14:14:35 -04:00
..
activity_pub Revert unintended change to the Logger metadata tag name 2024-07-29 10:03:22 -04:00
admin_api Refactor backups to be fully controlled by Oban 2024-07-23 10:30:40 -04:00
api_spec Refactor backups to be fully controlled by Oban 2024-07-23 10:30:40 -04:00
auth LDAP Authenticator: Improve error reporting. 2024-07-10 09:22:58 +02:00
channels Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
common_api Return a 422 when trying to reply to a deleted status 2024-05-26 15:14:48 -04:00
fallback RedirectController: Unify server-generated-meta insertion code 2023-11-14 11:06:36 +01:00
federator Retire the Pleroma.Web.Federator.Publisher module 2023-12-28 14:53:09 -05:00
feed Fix invalid types due to typos 2024-01-20 17:22:40 -05:00
mailer Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
mastodon_api Fix order of args for show_reblogs/2 2024-07-22 19:19:21 -04:00
media_proxy Use the configured http client options for mediaproxy 2024-05-27 11:26:21 -04:00
metadata Fix OpenGraph and Twitter metadata providers when parsing objects with no content or summary fields. 2024-07-20 23:48:54 -04:00
mongoose_im Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
nodeinfo Remove support for multiple federation publisher modules 2023-12-28 11:55:19 -05:00
o_auth Dialyzer: fix typespec 2024-07-01 11:47:27 -04:00
o_status Fix dialyzer errors due to deprecated usage of put_layout/2 2024-01-31 14:55:11 -05:00
pleroma_api Refactor backups to be fully controlled by Oban 2024-07-23 10:30:40 -04:00
plugs Fix User.disclose_client never working correctly 2024-07-31 14:14:35 -04:00
preload/providers Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
push Fix tests 2024-06-11 18:55:10 -04:00
rich_media Fix RichMedia negative cache entries 2024-07-24 15:45:39 -04:00
static_fe Fix dialyzer errors due to deprecated usage of put_layout/2 2024-01-31 14:55:11 -05:00
templates Elixir 1.17 single quote charlist warning 2024-07-01 11:38:40 -04:00
twitter_api Fix order of args for follow/2 2024-07-22 19:07:55 -04:00
utils Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
views Use pleroma: instead of pleroma. for ws events 2023-10-15 17:20:25 -04:00
web_finger Phoenix detects the webfinger requests with content-type application/jrd+json as "jrd" now 2023-12-29 23:18:45 -05:00
api_spec.ex Merge remote-tracking branch 'origin/develop' into instance_rules 2024-04-06 10:42:23 +02:00
common_api.ex Fix cancelling jobs 2024-07-29 09:59:35 -04:00
controller_helper.ex Pleroma.Web.ControllerHelper: fix @spec to resolve dialyzer errors 2024-01-31 11:01:37 -05:00
embed_controller.ex Fix dialyzer errors due to deprecated usage of put_layout/2 2024-01-31 14:55:11 -05:00
endpoint.ex Logger metadata for request path and authenticated user 2024-03-19 12:15:10 -04:00
federator.ex Add test to fetch and validate an activity that originally failed signature 2024-07-25 14:34:55 -04:00
gettext.ex Credo.Check.Readability.PredicateFunctionNames 2024-01-26 16:59:58 -05:00
instance_document.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
manifest_controller.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
media_proxy.ex MediaProxy: :whitelist config fallback to [] 2024-06-12 15:18:47 -04:00
metadata.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
multipart.ex endpoint: Use custom Multipart module for dynamic configuration 2023-06-27 10:41:25 +02:00
o_auth.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
preload.ex B Preload: Make sure that the preloaded json is html safe 2023-06-02 17:03:21 +04:00
push.ex Add spec for send/1 2024-06-08 19:20:38 -04:00
rel_me.ex Remove unwanted code specific to MIX_ENV=test 2023-02-20 12:24:38 -05:00
router.ex Add Oban Live Dashboard 2024-07-17 09:32:29 -04:00
shout_channel.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
streamer.ex Fix order of args for thread_muted?/2 2024-07-22 18:25:37 -04:00
translation_helpers.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
uploader_controller.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
web_finger.ex Fix validate_webfinger when running a different domain for Webfinger 2024-05-22 15:52:35 +02:00
xml.ex Switch formatting checks to Elixir 1.15 2024-06-12 15:18:47 -04:00