Commit graph

20776 commits

Author SHA1 Message Date
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
Benjamin Neff
b0b2083fea
Merge pull request #8407 from Flaburgan/4821-help-mobile
Tell users that there is no help in mobile version, allow to switch to desktop
2022-11-04 02:07:36 +01:00
flaburgan
3d84ae18a7 Tell users that there is no help in mobile version, allow to switch to desktop, fixes #4821 2022-11-02 23:27:58 +01:00
Benjamin Neff
5f6b01e086
Merge pull request #8404 from Flaburgan/8118-scrolling-photos
Do not recreate blueimp each time you're scrolling in the photos page
2022-11-01 21:20:12 +01:00
Benjamin Neff
80c0888176
Merge pull request #8403 from SuperTux88/cleanup-duplicate-pods-for-real-this-time
Cleanup duplicate pods
2022-11-01 21:17:17 +01:00
Benjamin Neff
acc76a383f
Merge pull request #8398 from SuperTux88/fix-mentions-with-underscores
Escape mentions before parsing message with markdown for mobile UI
2022-11-01 21:15:47 +01:00
Dennis Schubert
6af305b2be
Merge pull request #8405 from Flaburgan/7949-feedback-mobile
Add info links (the ones in the footer in the desktop version) into the drawer for mobile
2022-10-31 23:29:42 +01:00
flaburgan
fbc096c7a7 Add info links (the ones in the footer in the desktop version) into the drawer for mobile, fixes #7949 2022-10-31 12:11:46 +01:00
flaburgan
35c254c88c Do not recreate blueimp each time you're scrolling in the photos page, fixes #8118 2022-10-31 11:21:08 +01:00
Benjamin Neff
800f394870
Show ports on pods list
otherwise pods with different ports (or without port) all look the same,
like if they are duplicates
2022-10-31 01:45:13 +01:00
Benjamin Neff
8334eeeeff
Ensure pod urls are always lowercase
otherwise pods can exist multiple times with mixed case
2022-10-31 01:45:13 +01:00
Benjamin Neff
6bdf6f03b4
Cleanup duplicate pods in database
The unique index doesn't work when the port is `NULL`. So use `-1`
instead for when using the default ports (80/443), as if we would use
the real ports, we could still have both 80 and 443 in the database at
the same time.
2022-10-31 01:45:13 +01:00
Benjamin Neff
bfe1b84a2e
Merge pull request #8399 from SuperTux88/docker-pull
Add pull command to diaspora-dev script
2022-10-30 01:46:57 +02:00
Benjamin Neff
f6105e54a9
Merge pull request #8400 from SuperTux88/8352-mobile-photo-url-redirect
Add redirect to mobile-only photo URL when in desktop UI
2022-10-30 01:45:27 +02:00
Benjamin Neff
abcbfcef15
Merge pull request #8397 from SuperTux88/remove-sprockets-es6
Replace sprockets-es6 with babel-transpiler
2022-10-30 01:43:12 +02:00
Benjamin Neff
7e15d9ec8a
Merge pull request #8402 from denschub/cucumber-docker-fixes
Fix running Cucumber in Docker
2022-10-30 01:41:31 +02:00
Benjamin Neff
8b74138e5a
Update postgres and mariadb container to latest major version
This is a breaking change, so dev-databases need to be recreated.
2022-10-30 01:17:11 +02:00
Benjamin Neff
cbbb0a55c2
Add redirect to mobile-only photo URL when in desktop UI
This URL is only used in the mobile UI, but when somebody then copies
the link and sends it to somebody on the desktop UI, they don't see
anything. So lets just redirect to the post containing the photo, so
there is at least something to show.

If there is no linked post, just redirect to the image instead.

Fixes #8352
2022-10-30 00:32:31 +02:00
Dennis Schubert
bd2a45615f
Disable Chromium sandbox for Apparition 2022-10-29 06:30:34 +02:00
Benjamin Neff
ee593933a1
Add a pull command to update docker images to diaspora-dev script
Before the images were only pulled once and then never updated which
lead to really outdated images and OS dependencies. Now all images
(including the base image for the diaspora container) are pulled when
running `setup`. So the idea is to run the `setup` command from time to
time to bring everything up to date again.
2022-10-06 02:08:02 +02:00
Benjamin Neff
536c96f217
Escape mentions before parsing message with markdown
Usernames that contained underscores were parsed by markdown first. This
broke the diaspora IDs and also added weird html at places where it
wasn't needed. Escaping them before sending the message through the
markdown parser fixes this issue.

As underscores are the only allowed character that can be used for
markdown that is also allowed inside a diaspora ID, this escaping can be
kept pretty simple.

This only fixes it for the mobile UI at the moment, for the desktop UI
it's probably better to fix it in markdown-it.

Related to #7975
2022-10-06 00:45:50 +02:00
Benjamin Neff
185f8a1404
Replace sprockets-es6 with babel-transpiler
Sprockets 4 now has direct babel support, so we can remove the temporary
sprockets-es6 dependency and use babel-transpiler directly.
2022-10-01 02:55:50 +02:00
Benjamin Neff
03796e8fe2
Merge pull request #8395 from denschub/time-travel
Fixes for two date-related spec breakages
2022-09-21 02:47:06 +02:00
Benjamin Neff
57cdc288e2
Merge pull request #8396 from SuperTux88/fix-docker-dev
Fix docker development setup after switch to puma
2022-09-21 02:46:08 +02:00
Benjamin Neff
19b32cf6e3
Merge pull request #8217 from tclaus/7080_multi_select_on_aspects_on_mobile
multi select on aspects on mobile

closes #7080
2022-09-21 02:42:25 +02:00
Dennis Schubert
c47258a873
Don't time travel in check_birthday_spec 2022-09-20 03:20:48 +02:00
Dennis Schubert
6dd8af70f7
Force the dev-docker to always run as amd64
We download a static amd64 browser, so this would explode on arm64, for example.
2022-09-20 00:27:45 +02:00
Benjamin Neff
1358f6fbb8
Expose docker-compose through diaspora-dev script
As the docker-compose.yml contains variables, it can't just be used with
docker-compose directly. So this manually use docker-compose commands
with all the required environment variables set.
2022-09-19 04:01:16 +02:00
Benjamin Neff
a4d45358a2
Set listen not only on localhost when used in docker
When puma was introduced in #8392 the default listen configuration was
set to only localhost, which makes sense for most development setups,
but when run within docker, it needs to listen on all IPs so the port
can be forwarded to be accessable outside of docker.

Because the new default makes sense without docker, I overwrite the
option with a environment variable only in the docker-setup. This also
ensures that it always contains the right value needed for the
docker-setup to work, no matter what was configured outside of docker.
2022-09-19 04:01:16 +02:00
Benjamin Neff
84df8eed33
Add redis to docker development setup
With #8392 the `single_process_mode` was removed, which means that
development now also requires a redis.
2022-09-19 04:01:16 +02:00
Thorsten Claus
65456c7f5e Using mixins for aspects css style 2022-09-12 08:25:37 +02:00
Dennis Schubert
6ddd16267a
Give queue_users_for_removal_spec a bit of allowance to accord for timezone changes 2022-09-10 23:22:34 +02:00
Benjamin Neff
7c450b4446
Merge pull request #8390 from cmrd-senya/improve-public-fetch
Improve public posts fetch on account search
2022-09-10 01:34:54 +02:00
Benjamin Neff
af0b1c55e3
Merge pull request #8389 from SuperTux88/update-changelog
Update next major to 1.0.0
2022-09-10 01:29:10 +02:00
Benjamin Neff
ae4cbb18f7
Merge pull request #8392 from denschub/unicorn-dust
Replace Unicorn with Puma
2022-09-10 01:20:34 +02:00
Benjamin Neff
1c72dcc412
Merge branch 'next-minor' into develop 2022-09-10 01:16:09 +02:00
Benjamin Neff
52f206fa8a
Merge branch 'hotfix/0.7.18.1' 2022-09-10 01:13:25 +02:00
Dennis Schubert
9075dfa470
Update binstubs
Newly generated binstubs will check for the string
`This file was generated by Bundler` inside `bin/bundle`, so we'd have
to update that anyway.

Also, there is a non-zero chance the updated `bundle` binstub resolves
some of the setup-specific issues we've seen.
2022-09-10 00:43:20 +02:00
Dennis Schubert
97cfc80a1f
Replace Unicorn with Puma
… and drop the single_process_mode. See the included Changelog entry
for full details on what this change means.
2022-09-09 04:33:37 +02:00
Dennis Schubert
bb80ca3394
Remove artifacts from the old Federation integration testing attempt
It's… safe to assume that nobody is using this, as this has been broken
for quite some time.
2022-09-07 03:17:03 +02:00
Dennis Schubert
bfd42a1914
Update binstubs
Newly generated binstubs will check for the string
`This file was generated by Bundler` inside `bin/bundle`, so we'd have
to update that anyway.

Also, there is a non-zero chance the updated `bundle` binstub resolves
some of the setup-specific issues we've seen.
2022-09-07 03:15:39 +02:00