Commit graph

20816 commits

Author SHA1 Message Date
Benjamin Neff
a59505574a
Bump sidekiq, sidekiq-cron and migrate to redis-client
This breaks compatibility with redis <6
2023-06-28 01:19:34 +02:00
Benjamin Neff
cc4d2e0832
Bump rqrcode 2023-06-28 00:54:05 +02:00
Benjamin Neff
19c48d5738
Bump devise-two-factor 2023-06-28 00:54:05 +02:00
Benjamin Neff
906cc19eb0
Bump devise 2023-06-28 00:54:05 +02:00
Benjamin Neff
ab02c86fa8
Bump json-schema 2023-06-28 00:54:05 +02:00
Benjamin Neff
dbe644ede6
Bump json 2023-06-28 00:54:05 +02:00
Benjamin Neff
ebcbdd823c
Bump diaspora_federation 2023-06-28 00:54:05 +02:00
Benjamin Neff
a784e32840
Bump puma 2023-06-28 00:54:05 +02:00
Benjamin Neff
c286123cc1
Bump responders 2023-06-28 00:54:05 +02:00
Benjamin Neff
033492f2ab
Bump rails 2023-06-28 00:54:03 +02:00
Dennis Schubert
6288fe3dde
Merge pull request #8429 from denschub/prontohub
[CI] Run Pronto on GitHub Actions.
2023-06-15 16:17:30 +02:00
Dennis Schubert
78925beec5
[CI] Run Pronto on GitHub Actions. 2023-06-14 21:52:26 +02:00
Dennis Schubert
6430aa3bad
Merge pull request #8428 from denschub/hackaround-flaky-cuke
Attempt at un-flaky'ing the `preview a very long message` cucumber scenario
2023-06-13 15:24:54 +02:00
Dennis Schubert
c095959e6a
[CI] Make the extremely long status message less long.
The old message, being 2048 chars long, apparently sometimes tripped up
Ferrum or Chrome itself. The new, shorter, message does that less or not
at all. It's still long enough, though, as the way we determine if a
status message is "too long" is by height only, so line-breaks work.
2023-06-13 05:00:29 +02:00
Benjamin Neff
3b07b16962
Merge pull request #8427 from SuperTux88/gem-updates
Bump net-* gems and digest
2023-06-12 05:04:10 +02:00
Benjamin Neff
f420a78a79
Bump net-* gems and digest
I don't know why it pinned them to older versions when adding them, lets
use the latest versions instead.
2023-06-12 04:35:45 +02:00
Benjamin Neff
b34a184b0a
Merge pull request #8426 from SuperTux88/add-ruby-3.1
Add ruby 3.1, drop ruby 2.7
2023-06-12 04:07:09 +02:00
Benjamin Neff
297fd722ab
Bump jwt and json-jwt to support openssl 3.0 2023-06-12 03:39:18 +02:00
Benjamin Neff
9dfce77a4d
Remove workaround required to load YAML with ruby 2.7 and 3.1
This works now with ruby >= 3.0
2023-06-12 02:51:41 +02:00
Benjamin Neff
faf9390e70
Add ruby 3.1, drop ruby 2.7 2023-06-12 02:51:16 +02:00
Benjamin Neff
72e1daa5e3
Bump capybara for ruby 3.1
The matrix gem was removed from ruby 3.1, but was required for capybara,
but the current version added it as a dependency.
2023-06-12 02:25:26 +02:00
Benjamin Neff
7934f3e916
Add mail protocol gems
This is required for ruby 3.1 with rails 6.1, as they were removed from
being bundled with ruby 3.1. It can be removed with rails 7 again, as
they were added as a dependency to rails 7.
2023-06-12 02:25:07 +02:00
Benjamin Neff
9cdfd3a55b
Merge pull request #8425 from jhass/8424_fix_yaml_load
Use YAML.unsafe_load_file when available in bundler helper
2023-06-12 01:57:45 +02:00
Jonne Haß
324851eeb5 Use YAML.unsafe_load_file when available in bundler helper
fixes #8424
2023-06-11 12:53:27 +02:00
Dennis Schubert
7ce4309fcb
Merge pull request #8423 from SuperTux88:update-carrierwave-ruby-3
Update carrierwave and add ruby 3.0 support
2023-06-11 03:31:16 +02:00
Benjamin Neff
ae813f0cf2
Enable ruby 3.0 on CI and switch default to 3.0 2023-06-10 20:30:26 +02:00
Benjamin Neff
d790e3dcba
Bump scss_lint and rake
Old rake version didn't work with ruby 3.0 in docker
2023-06-10 19:56:22 +02:00
Benjamin Neff
3c10dbc547
Bump carrierwave 2023-06-10 19:09:53 +02:00
Benjamin Neff
0a545c7092
Merge pull request #8422 from SuperTux88/fix-checkout-deprecation-warning
Upgrade to actions/checkout@v3 to get rid of deprecation warning
2023-06-10 17:27:11 +02:00
Benjamin Neff
02182e3b59
Merge pull request #8421 from SuperTux88/cleanup-from-header-unicode-emojis
Cleanup unicode emojis from email headers
2023-06-10 17:26:48 +02:00
Benjamin Neff
cf49899069
updated 6 locale files [ci skip] 2023-06-10 17:22:19 +02:00
Benjamin Neff
d5a338ad0e
Merge pull request #8420 from SuperTux88/remove-i18n-inflector-rails
Remove i18n-inflector-rails dependency
2023-06-10 17:13:15 +02:00
Benjamin Neff
5ce5cfdecf
Upgrade to actions/checkout@v3 to get rid of deprecation warning 2023-06-10 05:35:31 +02:00
Benjamin Neff
5508401ed8
Don't modify default translations when merging with other language
`deep_merge!` modifies the hash of the default translation, and it looks
like `I18n.t` always returns the same instance, so after that, the
default stays translated. So lets duplicate the hash first, before
modifying it, this also helps because we also add more keys below, which
probably also shouldn't be added to the original.
2023-06-10 05:00:27 +02:00
Benjamin Neff
dc9a18e24d
Cleanup unicode emojis from email headers
Some email providers (for example gmail) block emails if they have
emojis in the from header, as they could be confused with UI elements.
So the easy solution is to just filter all emojis from the name.

The normal `\p{Emoji}` selector also matches normal numbers, because of
the emoji-version of numbers (1️⃣), but the `\p{Emoji_Presentation}` then
doesn't match colored emojis anymore (❄️), so we need a mix of both to
find all emojis
2023-06-09 04:20:15 +02:00
Benjamin Neff
6f802417c6
Remove i18n-inflector-rails dependency
There are no new releases anymore and the current version isn't
compatible with ruby 3.x.

As this feature wasn't really used a lot (Icelandic didn't even setup
inflections properly), it's probably not worth fighting for it, so lets
just drop it.

Related to #8369
2023-06-09 01:13:16 +02:00
Benjamin Neff
87f17fe907
Merge pull request #8418 from SuperTux88/switch-to-cuprite
Switch from apparition to cuprite driver
2023-06-08 22:58:29 +02:00
Benjamin Neff
8ebfd4892f
Merge pull request #8419 from SuperTux88/podman-build
Use podman to build when installed and configured
2023-06-08 22:52:37 +02:00
Benjamin Neff
e7e3d3c326
Use podman to build when installed and configured
I had problems when trying to build with podman with docker-compose 2.x,
but it works when just calling the `podman build` command directly
instead.
2023-06-07 02:46:28 +02:00
Benjamin Neff
bb7e5a369d
Correctly escape username pattern regex
Without the escaping, the backslash doesn't get renderet in the frontend
which leads to some browsers (chrome >= 114?) just allowing every input.
2023-06-05 23:35:31 +02:00
Benjamin Neff
5425f5cfa6
Switch from apparition to cuprite driver
Apparition4 isn't really maintained anymore and there are no new releases
and it always logs a lot of errors, making the output hard to read.

So lets switch to cuprite, as it also supports everything we need and is
still maintained.

Supersedes #8330
2023-06-05 23:34:52 +02:00
Benjamin Neff
ce32a7d16b
Merge pull request #8409 from tclaus/add_app_smart_banner
Add app smart banner to web site when using an iOS device
2023-06-04 21:38:34 +02:00
Benjamin Neff
e29f9e2fa2
Merge pull request #8410 from SuperTux88/allow-DOCKER_HOST-env-var
Allow DOCKER_HOST env var for diaspora-dev docker setup
2023-06-04 21:35:07 +02:00
Benjamin Neff
6510bafa88
Merge pull request #8417 from SuperTux88/remove-strip_exif-flag
Always strip exif data and drop user setting for it
2023-06-04 21:30:01 +02:00
Benjamin Neff
11107ee637
Fix chrome parameters for running jasmine
Yes, I know this is a very ugly workaround, but it works ...

Chrome now requires to add `about:blank` as parameter to open and be
able to use remote debugging. The jasmine-gem isn't supported anymore,
and we need to switch to the `jasmine-browser-runner`, I was working on
that a few months ago, but ran into problems.

As the jasmine-gem doesn't allow to add parameters without `--` infront
of it, lets just add a dummy parameter and add the required
`about:blank` with a space after that. This is ugly, but works for now,
until we can upgrade to the new jasmine version. We could also just
replace the `nil` of the last parameter with that value, but I think
that way it's clearer that this is a workaround and how it works.
2023-06-04 17:10:51 +02:00
Benjamin Neff
763dffa328
Always strip exif data and drop user setting for it
Some imagemagick-versions (I tested Ubuntu 22.04 and debian bullseye)
always loose exif data when converting from jpg to webp. So this made
our CI fail now, but even if it wasn't failing before, some pods always
had and have versions which might loose the information anyway. So
having a setting to keep exif information is kinda pointless, if we
can't guarantee that the information isn't lost. Also, diaspora isn't a
photo sharing platform and we don't display exif information anywhere,
so I think we should just always strip exif data (which was already the
default before), as we don't need them.
2023-06-04 04:25:01 +02:00
Benjamin Neff
f3a6cd9a7f
Use specific registry in Dockerfile
Otherwise podman asks which one to use every time
2022-12-05 01:02:46 +01:00
Benjamin Neff
0c163b8c49
Allow to use different DOCKER_HOST env var
This allows to use rootless podman (which doesn't require sudo) instead
of docker.
2022-12-05 00:53:33 +01:00
Thorsten Claus
83a2274f47 Adding Smart App Banner for insporation on iOS devices 2022-11-17 23:20:35 +01:00
Benjamin Neff
2fe5a7bd40
updated 30 locale files [ci skip] 2022-11-04 02:09:11 +01:00