Commit graph

15172 commits

Author SHA1 Message Date
Alex Gleason
c6e0141073 Merge branch 'alexgleason-develop-patch-90197' into 'develop'
Dockerfile: add curl

See merge request soapbox-pub/rebased!203
2022-11-06 02:00:50 +00:00
Alex Gleason
f884273bb9 Dockerfile: move fasttext to runtime image 2022-11-06 02:00:24 +00:00
Alex Gleason
61cf21fb20 Dockerfile: add curl 2022-11-06 01:58:49 +00:00
marcin mikołajczak
6500fee83f Merge branch 'post-languages' into 'develop'
Allow to specify post language, add content translations and language auto-detection

See merge request soapbox-pub/rebased!196
2022-11-05 22:08:34 +00:00
dbfc460e37 Add fasttext configuration to Docker image(?)
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-05 21:54:54 +01:00
4f042374d8 Deepl: use :base_url
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-05 21:41:58 +01:00
19885d9347 Fix fasttext for multiline posts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-05 20:16:32 +01:00
marcin mikołajczak
fc93cce682 Merge branch 'instance-contact-account' into 'develop'
Add contact account to InstanceView

See merge request soapbox-pub/rebased!201
2022-11-05 15:31:56 +00:00
0c1eaf2634 Add contact account to InstanceView
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-05 13:05:14 +01:00
6649eb84a2 Add all 639-1 languages to @supported_locales
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-04 21:54:20 +01:00
ade5796337 Improve getting language from context, add more tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-04 20:52:25 +01:00
85105e0049 Detect language for incoming posts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-03 23:33:22 +01:00
4442fc40e6 Add test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-03 22:43:20 +01:00
Alex Gleason
9c48cbbcaf Merge branch 'fix-ecto-warnings' into 'develop'
Fix ecto warnings

See merge request soapbox-pub/rebased!199
2022-11-03 17:32:33 +00:00
Alex Gleason
f8e8bd9f5c
Fix test warnings 2022-11-03 12:00:46 -05:00
Alex Gleason
4576a5c440
ObjectValidators: fix validate_required on embeds_many fields 2022-11-03 11:56:20 -05:00
Alex Gleason
d02c5f4480 Merge branch 'deleted-reply-error' into 'develop'
Return an error if replying to a deleted status

Closes #119

See merge request soapbox-pub/rebased!198
2022-11-03 16:30:56 +00:00
Alex Gleason
fb9f9555ae
NotificationTest: remove n/a test 2022-11-03 11:22:53 -05:00
4c1d0dbb69 Language detection
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-03 00:17:27 +01:00
Alex Gleason
920ba8ddec
Return an error if replying to a deleted status
Fixes https://gitlab.com/soapbox-pub/rebased/-/issues/119
2022-11-02 10:04:32 -05:00
d094cdf55b Rename
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-31 22:42:03 +01:00
9cdce15a42 Update description.exs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-30 23:07:30 +01:00
68c00fa749 Fix get_language_from_context
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-30 21:59:48 +01:00
55cb9b29fe Do not translate non-public statuses
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-30 21:57:05 +01:00
c1f5138f73 Add tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-30 21:06:31 +01:00
25a9ff0f3d Expose translation service availability
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-30 18:53:29 +01:00
65fb5abc73 Merge remote-tracking branch 'soapbox/develop' into post-languages 2022-10-30 18:47:47 +01:00
8243be681b WIP Translation backends support
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-30 18:47:41 +01:00
972498cac4 Store remote post language information
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-30 10:41:09 +01:00
6a8a8f2a2e StatusView: display language
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-29 19:49:52 +02:00
marcin mikołajczak
6778334542 Merge branch 'colors-override' into 'develop'
Use color overrides from frontend configuration

See merge request soapbox-pub/rebased!191
2022-10-29 14:38:31 +00:00
ff35b13b52 Allow to specify post language
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-29 16:22:57 +02:00
0ff7f6d03c Do not use contentMap if content is not empty
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-29 15:01:17 +02:00
Alex Gleason
611097b1a6 Merge branch 'mix-format' into 'develop'
mix format

See merge request soapbox-pub/rebased!195
2022-10-28 21:26:26 +00:00
Alex Gleason
b734e2f3f1
mix format 2022-10-28 16:09:59 -05:00
Alex Gleason
74c360e4d6 Merge branch 'feature/add-prom_ex' into 'develop'
Add PromEx

See merge request soapbox-pub/rebased!193
2022-10-28 20:58:56 +00:00
marcin mikołajczak
f476bc2c35 Merge branch 'instance-v2' into 'develop'
Add /api/v2/instance route

See merge request soapbox-pub/rebased!194
2022-10-28 20:12:16 +00:00
dea3110ef5 Merge remote-tracking branch 'soapbox/develop' into instance-v2
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-28 20:12:29 +02:00
a77a7a3620 Add /api/v2/instance route
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-28 20:10:10 +02:00
Josh Adams
7edf9d4990 Replace deprecated @view_module
See https://gist.github.com/chrismccord/e53e79ef8b34adf5d8122a47db44d22f#update-your-layouts
2022-10-27 21:03:06 -05:00
Josh Adams
5f2513d119 Make release not break things but be dumb 2022-10-27 20:26:07 -05:00
Josh Adams
36dc0fee1e Don't use a fake ecto feature
See https://github.com/elixir-ecto/ecto/issues/3889
2022-10-27 20:14:55 -05:00
Josh Adams
ec4dc4adac Remove unnecessary newline
L I N T E R S
2022-10-27 20:03:45 -05:00
Josh Adams
ec6ee11ea7 Add most (all?) the promex setup 2022-10-27 19:47:37 -05:00
Josh Adams
b6ef38d611 Bump a ton of dependencies
All in service of bringing in prom_ex, we'll see
2022-10-27 19:38:35 -05:00
Alex Gleason
ad014adc1c Merge branch 'configurable-favicon' into 'develop'
Let favicon be configurable

See merge request soapbox-pub/rebased!192
2022-10-27 20:03:32 +00:00
Alex Gleason
e88d52c4de
Fix OStatusControllerTest 2022-10-27 14:21:13 -05:00
Alex Gleason
6f04447f49
mix format 2022-10-27 13:51:37 -05:00
Alex Gleason
bddd4375bf
Expose favicon URL in instance API 2022-10-27 13:51:25 -05:00
Alex Gleason
35f16d9c47
Render title and favicon on all pages that serve index.html 2022-10-27 13:29:36 -05:00