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.
vor 3 Jahren
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
vor 3 Jahren
Haelwenn (lanodan) Monnier
ab32ea44f0
mix.exs: Apply OTP24 fixes to web_push_encryption
vor 3 Jahren
Haelwenn (lanodan) Monnier
168687eef2
media_proxy: switch from :crypto.hmac to :crypto.mac
vor 3 Jahren
Alex Gleason
9879c18548
Avoid `use Phoenix.Swoosh` to prevent recompiling the Endpoint
Speeds up recompilation by fixing cycles in UserEmail
vor 3 Jahren
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.
vor 3 Jahren
Alex Gleason
8a5ceb7e53
Remove deps from Uploader behaviour
Speeds up recompilation by limiting compile-time deps
vor 3 Jahren
Alex Gleason
a744c47e9a
Remove deps from Streaming/Persisting behaviors
Speeds up recompilation by limiting compile-time deps
vor 3 Jahren
Mark Felder
2743c66693
Add "chat" back as a feature for backwards compat.
Legacy PleromaFE uses this to identify if ShoutBox is available.
vor 3 Jahren
Mark Felder
48a0ea2fc3
Wire up join requests to the old "chat:public" channel into the new "shout:public" channel
vor 3 Jahren
Mark Felder
d6432a65da
Move shout configuration from :instance, update docs and changelog
vor 3 Jahren
Mark Felder
4a181982c3
More confusingly named legacy chat code renamed to shout
vor 3 Jahren
Mark Felder
a3cff59659
Ensure we actually start ShoutChannel
vor 3 Jahren
Mark Felder
ff00b354fa
Rename the non-federating Chat feature to Shout
vor 3 Jahren
Alex Gleason
51a9f97e87
Deprecate Pleroma.Web.base_url/0
Use Pleroma.Web.Endpoint.url/0 directly instead. Reduces compiler cycles.
vor 3 Jahren
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
vor 3 Jahren
Alex Gleason
721c966842
FrontendStatic: make Router a runtime dep
Speeds up recompilation by removing compile-time cycles
vor 3 Jahren
Alex Gleason
fa543a9361
ActivityPub.Pipeline: switch to runtime deps
Speed up recompilation by breaking compile-time cycles
vor 3 Jahren
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
vor 3 Jahren
Alex Gleason
c9e4200ed2
Create real Views for all Controllers
This makes views depend on each other at runtime instead of compile-time
vor 3 Jahren
Alex Gleason
32d263cb90
Config: use runtime deps instead of module attributes
Speeds up recompilation time by breaking compile-time cycles
vor 3 Jahren
Alex Gleason
0ada3fe823
Gun: use runtime deps in ConnectionPool
Speed up recompilation time by breaking compile-time cycles
vor 3 Jahren
Alex Gleason
3ebede4b51
Gun: make Gun.API a runtime dep
Speed up recompilation by breaking a compile-time cycle
vor 3 Jahren
Alex Gleason
c23b81e399
Pleroma.Web.get_api_routes/0 --> Pleroma.Web.Router.get_api_routes/0
Reduce recompilation time by breaking compile-time cycles
vor 3 Jahren
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
vor 3 Jahren
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.
vor 3 Jahren
Mark Felder
4694853766
Provide totalItems field for featured collections
vor 3 Jahren
Mark Felder
05d678c070
Expose user email address to user/owner; not publicly.
vor 3 Jahren
Alex Gleason
07fed0fda2
Switch to aliasing `Router.Helpers` instead of importing
vor 3 Jahren
Mark Felder
c64cbee26c
Fixed checking for Upload Filter required commands
vor 3 Jahren
Mark Felder
4ab3ef07d0
Check AnalyzeMetadata filter's required commands
eblurhash:magick uses "convert"
Fetching image metadata uses "mogrify"
vor 3 Jahren
Mark Felder
9b6b5ac196
Rename upload filter to AnalyzeMetadata
vor 3 Jahren
Alex Gleason
543e9402d6
Support blurhash
vor 3 Jahren
Alex Gleason
6f0b42656d
Federate attachments as Links instead of Documents
vor 3 Jahren
Alex Gleason
02b9436494
Don't render media `meta` if nil
vor 3 Jahren
Alex Gleason
4c060ae733
Ingest remote attachment width/height
vor 3 Jahren
Alex Gleason
ab9eabdf20
Add SetMeta filter to store uploaded image sizes
vor 3 Jahren
faried nawaz
5be9d13981
a better query to delete from hashtags
old query:
Delete on hashtags (cost=5089.81..5521.63 rows=6160 width=18)
-> Hash Semi Join (cost=5089.81..5521.63 rows=6160 width=18)
Hash Cond: (hashtags.id = ht.id)
-> Seq Scan on hashtags (cost=0.00..317.28 rows=17528 width=14)
-> Hash (cost=5012.81..5012.81 rows=6160 width=20)
-> Merge Anti Join (cost=0.70..5012.81 rows=6160 width=20)
Merge Cond: (ht.id = hto.hashtag_id)
-> Index Scan using hashtags_pkey on hashtags ht (cost=0.29..610.53 rows=17528 width=14)
-> Index Scan using hashtags_objects_pkey on hashtags_objects hto (cost=0.42..3506.48 rows=68158 width=14)
new query:
Delete on hashtags ht (cost=0.70..5012.81 rows=6160 width=12)
-> Merge Anti Join (cost=0.70..5012.81 rows=6160 width=12)
Merge Cond: (ht.id = hto.hashtag_id)
-> Index Scan using hashtags_pkey on hashtags ht (cost=0.29..610.53 rows=17528 width=14)
-> Index Scan using hashtags_objects_pkey on hashtags_objects hto (cost=0.42..3506.48 rows=68158 width=14)
vor 3 Jahren
faried nawaz
a0c9a2b4cc
mix prune_objects: remove unused hashtags after pruning remote objects
vor 3 Jahren
Alex Gleason
c80b1aaf51
Don't crash when email settings are invalid
Fixes: https://git.pleroma.social/pleroma/pleroma/-/issues/2606
Fixes: https://gitlab.com/soapbox-pub/soapbox/-/issues/4
vor 3 Jahren
Alex Gleason
c16c7fdb87
SimplePolicy: filter string Objects
vor 3 Jahren
Alex Gleason
3d742c3c1a
SimplePolicy: filter nested objects
vor 3 Jahren
Alex Gleason
6727a3659f
Remove Pleroma.Formatter.minify/2
vor 3 Jahren
Mark Felder
959dc6e6fc
Cleanup and ensure we obey custom Repo timeout
vor 3 Jahren
Mark Felder
99fd9c5e38
OTP releases executing commands via pleroma_ctl show the parent of the process is :erl_eval
vor 3 Jahren
Mark Felder
9f711ddcf8
Try to set query timeout intelligently
vor 3 Jahren
Mark Felder
9bc69196d5
Add utility function to return infinite timeout for SQL transactions if we detect it was called from a Mix Task
vor 3 Jahren
Mark Felder
0effcd2cfe
Set Repo.transaction/2 timeout to infinity. Fixes pleroma.user delete_activities mix task.
vor 3 Jahren
Haelwenn
f9bedf5597
Apply lanodan's suggestion(s) to 1 file(s)
vor 3 Jahren
Haelwenn
42185d8750
Apply lanodan's suggestion(s) to 1 file(s)
vor 3 Jahren