Mark Felder
5de65ce3e8
Set the correct height/width if the data is available when generating twittercard metadata
2 роки тому
Mark Felder
5c27578bce
Support metadata for video files too
3 роки тому
Alex Gleason
b99f60615c
Fix order of Pleroma.Web.Utils.Params aliases
2 роки тому
Alex Gleason
ec65b7ae29
Pleroma.Web.Params --> Pleroma.Web.Utils.Params
2 роки тому
Alex Gleason
0877b120c3
Pleroma.Web.ControllerHelper.truthy_param?/1 --> Pleroma.Web.Params.truthy_param?/1
Breaks cycle in lib/pleroma/web/api_spec/operations/status_operation.ex
3 роки тому
Alex Gleason
1399b82f7b
Create WrapperAuthenticator and simplify Authenticator behaviour
Speeds up recompilation by reducing compile-time cycles
2 роки тому
Alex Gleason
bdaa1d4512
Upload.Filter: use generic types in @spec
Speeds up recompilation by reducing compile-time deps
2 роки тому
Alex Gleason
d87dfcb5f0
Put custom guards in Web.Utils.Guards
Speeds up recompilation by removing a compile-time cycle on AdminAPI.Search
2 роки тому
Mark Felder
264458531a
Formatting
2 роки тому
feld
bc51dea425
Update lib/mix/tasks/pleroma/database.ex
2 роки тому
Alex Gleason
6fcfa33e4e
Fix MRF.config_descriptions/0
2 роки тому
Alex Gleason
fe4c4a7178
MRF: create MRF.Policy behaviour separate from MRF module
Speeds up recompilation by reducing compile-time deps
2 роки тому
Alex Gleason
1c3fe43d23
ReverseProxy: create Client.Wrapper to call client from config
Speeds up recompilation by reducing compile-time cycles
3 роки тому
Haelwenn (lanodan) Monnier
eb7313b0d3
Pipeline Ingestion: Page
3 роки тому
Haelwenn (lanodan) Monnier
7d350b73f5
web endpoint: Use Config.get directly instead of a tuple
Fixes a lot of warnings like the following while running the testsuite:
warning: passing a {module, function, args} tuple to Plug.Parsers.MULTIPART is deprecated. Please see Plug.Parsers.MULTIPART module docs for better approaches to configuration
This might mean no more dynamic configuration but there seems to be the same limitation two lines underneath anyway.
3 роки тому
Mark Felder
f58928cf1c
Add missing deprecation warning left out of !2842
3 роки тому
io
2c401dafa1
Improve opengraph embeds
This brings them more in line with Mastodon.
- Deduplicates display name from the title and content
- Removes arbitrary limits on the size of the embedded image
- Removes angled double quotes from embed descriptions. These would normally just indicate that the content is a quote, but that is already implied by the content being in an embed.
3 роки тому
Haelwenn (lanodan) Monnier
11844084d0
MIME.valid?(type) → is_bitstring(type) && MIME.extensions(type) != []
Since mime 1.6.0:
warning: MIME.valid?/1 is deprecated. Use MIME.extensions(type) != [] instead
As for the bitstring(type) part it's because MIME.extensions only expects a string.
https://github.com/elixir-plug/mime/issues/43
3 роки тому
Haelwenn (lanodan) Monnier
ab32ea44f0
mix.exs: Apply OTP24 fixes to web_push_encryption
3 роки тому
Haelwenn (lanodan) Monnier
168687eef2
media_proxy: switch from :crypto.hmac to :crypto.mac
3 роки тому
Alex Gleason
9879c18548
Avoid `use Phoenix.Swoosh` to prevent recompiling the Endpoint
Speeds up recompilation by fixing cycles in UserEmail
3 роки тому
Mark Felder
0be7eada92
Keep original Shoutbox channel name as chat:public
There is no sane / high level workaround for merging users who join shout:public and chat:public.
3 роки тому
Alex Gleason
8a5ceb7e53
Remove deps from Uploader behaviour
Speeds up recompilation by limiting compile-time deps
3 роки тому
Alex Gleason
a744c47e9a
Remove deps from Streaming/Persisting behaviors
Speeds up recompilation by limiting compile-time deps
3 роки тому
Mark Felder
2743c66693
Add "chat" back as a feature for backwards compat.
Legacy PleromaFE uses this to identify if ShoutBox is available.
3 роки тому
Mark Felder
48a0ea2fc3
Wire up join requests to the old "chat:public" channel into the new "shout:public" channel
3 роки тому
Mark Felder
d6432a65da
Move shout configuration from :instance, update docs and changelog
3 роки тому
Mark Felder
4a181982c3
More confusingly named legacy chat code renamed to shout
3 роки тому
Mark Felder
a3cff59659
Ensure we actually start ShoutChannel
3 роки тому
Mark Felder
ff00b354fa
Rename the non-federating Chat feature to Shout
3 роки тому
Alex Gleason
51a9f97e87
Deprecate Pleroma.Web.base_url/0
Use Pleroma.Web.Endpoint.url/0 directly instead. Reduces compiler cycles.
3 роки тому
Alex Gleason
10dfe81479
Pleroma.Constants.as_local_public/0 --> Pleroma.Web.ActivityPub.Utils.as_local_public/0
Move as_local_public/0 to stop making modules depend on Web at compile-time
3 роки тому
Alex Gleason
721c966842
FrontendStatic: make Router a runtime dep
Speeds up recompilation by removing compile-time cycles
3 роки тому
Alex Gleason
fa543a9361
ActivityPub.Pipeline: switch to runtime deps
Speed up recompilation by breaking compile-time cycles
3 роки тому
Alex Gleason
3ff9c5e2a6
Break out activity-specific HTML functions into Pleroma.Activity.HTML
Fixes cycles in lib/pleroma/ecto_type/activity_pub/object_validators/safe_text.ex
3 роки тому
Alex Gleason
c9e4200ed2
Create real Views for all Controllers
This makes views depend on each other at runtime instead of compile-time
3 роки тому
Alex Gleason
32d263cb90
Config: use runtime deps instead of module attributes
Speeds up recompilation time by breaking compile-time cycles
3 роки тому
Alex Gleason
0ada3fe823
Gun: use runtime deps in ConnectionPool
Speed up recompilation time by breaking compile-time cycles
3 роки тому
Alex Gleason
3ebede4b51
Gun: make Gun.API a runtime dep
Speed up recompilation by breaking a compile-time cycle
3 роки тому
Alex Gleason
c23b81e399
Pleroma.Web.get_api_routes/0 --> Pleroma.Web.Router.get_api_routes/0
Reduce recompilation time by breaking compile-time cycles
3 роки тому
Alex Gleason
fda34591ce
Don't make MediaProxy be a compile-dep of Router
Speeds up recompilation by removing MediaProxy as a compile-time dep of Router
3 роки тому
Alex Gleason
21787546c0
Router: move StaticFEPlug to a pipeline
Speed up recompilation by breaking a cycle. Removes StaticFEPlug as a compile-time dep of Router.
3 роки тому
Mark Felder
4694853766
Provide totalItems field for featured collections
3 роки тому
Mark Felder
05d678c070
Expose user email address to user/owner; not publicly.
3 роки тому
Alex Gleason
07fed0fda2
Switch to aliasing `Router.Helpers` instead of importing
3 роки тому
Mark Felder
c64cbee26c
Fixed checking for Upload Filter required commands
3 роки тому
Mark Felder
4ab3ef07d0
Check AnalyzeMetadata filter's required commands
eblurhash:magick uses "convert"
Fetching image metadata uses "mogrify"
3 роки тому
Mark Felder
9b6b5ac196
Rename upload filter to AnalyzeMetadata
3 роки тому
Alex Gleason
543e9402d6
Support blurhash
3 роки тому
Alex Gleason
6f0b42656d
Federate attachments as Links instead of Documents
3 роки тому