akkoma
23 months agoSkip cache when /objects or /activities is authenticated
Tusooa Zhu [Thu, 5 May 2022 23:20:32 +0000 (19:20 -0400)]
Skip cache when /objects or /activities is authenticated

Ref: fix-local-public

23 months agoAllow to skip cache in Cache plug
Tusooa Zhu [Thu, 5 May 2022 22:39:34 +0000 (18:39 -0400)]
Allow to skip cache in Cache plug

Ref: fix-local-public

23 months agoFix incorrect fallback when English is set to first language
Tusooa Zhu [Mon, 18 Apr 2022 02:39:52 +0000 (22:39 -0400)]
Fix incorrect fallback when English is set to first language

23 months agoFix eratic test for POST /api/pleroma/admin/reports/:id/notes
Ilja [Tue, 5 Apr 2022 11:21:09 +0000 (13:21 +0200)]
Fix eratic test for POST /api/pleroma/admin/reports/:id/notes

It retrieved two ReportNotes and then checked one of them. But the order isn't guaranteed, while the test tested on the content of the first ReportNote.

I made the test on the content more generic

23 months agoSupport fallbacking to other languages
Tusooa Zhu [Sun, 6 Mar 2022 16:43:31 +0000 (11:43 -0500)]
Support fallbacking to other languages

23 months agoLint
Tusooa Zhu [Thu, 3 Mar 2022 14:40:18 +0000 (09:40 -0500)]
Lint

23 months agoSupport multiple locales from userLanguage cookie
Tusooa Zhu [Thu, 3 Mar 2022 07:31:36 +0000 (02:31 -0500)]
Support multiple locales from userLanguage cookie

23 months agoSupport multiple locales formally
Tusooa Zhu [Thu, 3 Mar 2022 07:03:44 +0000 (02:03 -0500)]
Support multiple locales formally

elixir gettext current does not fully support fallback to another language [0].
But it might in the future. We adapt it so that all languages in Accept-Language
headers are received by Pleroma.Web.Gettext. User.languages is now a comma-separated
list.

[0]: https://github.com/elixir-gettext/gettext/issues/303

23 months agoMake lint happy
Tusooa Zhu [Thu, 3 Mar 2022 03:56:19 +0000 (22:56 -0500)]
Make lint happy

23 months agoAdd test for fallbacking to a general language
Tusooa Zhu [Thu, 3 Mar 2022 01:04:30 +0000 (20:04 -0500)]
Add test for fallbacking to a general language

23 months agoFallback to a variant if the language in general is not supported
Tusooa Zhu [Thu, 3 Mar 2022 00:59:11 +0000 (19:59 -0500)]
Fallback to a variant if the language in general is not supported

For an example, here, zh is not supported, but zh_Hans and zh_Hant
are. If the user asks for zh, we should choose a variant for them
instead of fallbacking to default.

Some browsers (e.g. Firefox) does not allow users to customize
their language codes. For example, there is no zh-Hans, but only
zh, zh-CN, zh-TW, zh-HK, etc. This provides a workaround for
those users suffering from bad design decisions.

23 months agoAdd changelog
Tusooa Zhu [Wed, 2 Mar 2022 14:51:46 +0000 (09:51 -0500)]
Add changelog

23 months agoDocument API addition
Tusooa Zhu [Wed, 2 Mar 2022 14:47:51 +0000 (09:47 -0500)]
Document API addition

23 months agoAllow user to register with custom language
Tusooa Zhu [Wed, 2 Mar 2022 06:41:13 +0000 (01:41 -0500)]
Allow user to register with custom language

23 months agoAllow update_credentials to update User.language
Tusooa Zhu [Wed, 2 Mar 2022 05:58:02 +0000 (00:58 -0500)]
Allow update_credentials to update User.language

23 months agoSend emails i18n'd using backend-stored user language
Tusooa Zhu [Wed, 2 Mar 2022 02:24:17 +0000 (21:24 -0500)]
Send emails i18n'd using backend-stored user language

23 months agoMake all emails translatable
Tusooa Zhu [Wed, 2 Mar 2022 01:29:26 +0000 (20:29 -0500)]
Make all emails translatable

23 months agoFix digest test
Tusooa Zhu [Wed, 2 Mar 2022 01:27:45 +0000 (20:27 -0500)]
Fix digest test

23 months agoMake mail and mailer translatable
Tusooa Zhu [Wed, 2 Mar 2022 00:17:11 +0000 (19:17 -0500)]
Make mail and mailer translatable

23 months agoMake static fe translatable
Tusooa Zhu [Tue, 1 Mar 2022 23:48:08 +0000 (18:48 -0500)]
Make static fe translatable

23 months agoFix tests
Tusooa Zhu [Mon, 28 Feb 2022 16:23:15 +0000 (11:23 -0500)]
Fix tests

23 months agoMake mfa pages translatable
Tusooa Zhu [Mon, 28 Feb 2022 16:07:28 +0000 (11:07 -0500)]
Make mfa pages translatable

23 months agoMake oauth pages translatable
Tusooa Zhu [Mon, 28 Feb 2022 07:11:57 +0000 (02:11 -0500)]
Make oauth pages translatable

2 years agoUse proper lang attributes in htmls
Tusooa Zhu [Mon, 28 Feb 2022 06:28:23 +0000 (01:28 -0500)]
Use proper lang attributes in htmls

2 years agoMake tag feed translatable
Tusooa Zhu [Mon, 28 Feb 2022 06:13:39 +0000 (01:13 -0500)]
Make tag feed translatable

2 years agoMake password reset pages translatable
Tusooa Zhu [Mon, 28 Feb 2022 06:04:04 +0000 (01:04 -0500)]
Make password reset pages translatable

2 years agoMake lint happy
Tusooa Zhu [Tue, 22 Feb 2022 00:12:32 +0000 (19:12 -0500)]
Make lint happy

2 years agoExtract translatable text
Tusooa Zhu [Mon, 21 Feb 2022 23:44:36 +0000 (18:44 -0500)]
Extract translatable text

2 years agoMake remote follow pages translatable
Tusooa Zhu [Mon, 21 Feb 2022 23:42:25 +0000 (18:42 -0500)]
Make remote follow pages translatable

2 years agoPrefer userLanguage cookie over Accept-Language header in detecting locale
Tusooa Zhu [Mon, 21 Feb 2022 22:54:18 +0000 (17:54 -0500)]
Prefer userLanguage cookie over Accept-Language header in detecting locale

https://git.pleroma.social/pleroma/pleroma-meta/-/issues/60

2 years agoAfter code review
Ilja [Mon, 7 Mar 2022 13:00:42 +0000 (14:00 +0100)]
After code review

Use patern matching to see if someone was superuser before

2 years agoDelete report notifs when demoting from superuser
Ilja [Sun, 6 Mar 2022 16:36:30 +0000 (17:36 +0100)]
Delete report notifs when demoting from superuser

When someone isn't a superuser any more, they shouldn't see the reporsts any more either.
Here we delete the report notifications from a user when that user gets updated from being a superuser to a non-superuser.

2 years agomix: Check .git presence
Haelwenn (lanodan) Monnier [Fri, 25 Feb 2022 09:31:42 +0000 (10:31 +0100)]
mix: Check .git presence

2 years agoFix test get_user_apps/1
Ilja [Tue, 22 Feb 2022 17:56:26 +0000 (18:56 +0100)]
Fix test get_user_apps/1

For some reason I had a test who suddenly failed, mix test test/pleroma/web/o_auth/app_test.exs:54. A user has a list of applications and this test adds them and then sees if the list it gets back is the same as the apps it added.

When I ran mix test a day before I didn't have this problem and when I pushed code today in a different MR, the pipeline succeeded (see https://git.pleroma.social/ilja/pleroma/-/jobs/205827), yet locally it failed. So it seems the test can sometimes succeed and sometimes fail, which makes it untrustworthy.

The failure I see is because the returned list is in reverse order. I assume that's not per sé wrong. You just want to know if the apps you added are actually there. I fixed the test by first ordering the lists before comparing.

AFAICT (and as far as that's relevant) the test got introduced in commit cb2a072e6252b7c3f6473f7cfd1af5c0ec732d7b

2 years agoAdd unicode 14 support
Sam Therapy [Mon, 21 Feb 2022 18:28:33 +0000 (12:28 -0600)]
Add unicode 14 support
and add a test with a unicode 14 emoji

2 years agoAdd visibility check in context path (#26)
floatingghost [Wed, 29 Jun 2022 09:33:57 +0000 (09:33 +0000)]
Add visibility check in context path (#26)

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/26

2 years agoMerge pull request 'Purge gopher frontend' (#24) from purge-gopher into develop
floatingghost [Mon, 27 Jun 2022 16:43:37 +0000 (16:43 +0000)]
Merge pull request 'Purge gopher frontend' (#24) from purge-gopher into develop

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/24

2 years agoPurge gopher frontend
FloatingGhost [Mon, 27 Jun 2022 16:31:16 +0000 (17:31 +0100)]
Purge gopher frontend

2 years agoPurge SSH frontend (#23)
floatingghost [Mon, 27 Jun 2022 11:32:06 +0000 (11:32 +0000)]
Purge SSH frontend (#23)

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/23

2 years agoMerge pull request 'Allow for embedding object data in publish' (#16) from undo-emoji...
floatingghost [Sat, 25 Jun 2022 17:45:38 +0000 (17:45 +0000)]
Merge pull request 'Allow for embedding object data in publish' (#16) from undo-emoji-remote into develop

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/16

2 years agoRemove debug prints
FloatingGhost [Sat, 25 Jun 2022 17:43:19 +0000 (18:43 +0100)]
Remove debug prints

2 years agoAllow for embedding object data in publish
FloatingGhost [Sat, 25 Jun 2022 17:41:26 +0000 (18:41 +0100)]
Allow for embedding object data in publish

2 years agoMerge pull request 'emoji reaction standardisation' (#14) from emoji-reaction-standar...
floatingghost [Sat, 25 Jun 2022 14:46:32 +0000 (14:46 +0000)]
Merge pull request 'emoji reaction standardisation' (#14) from emoji-reaction-standardisation into develop

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/14

2 years agoupdate api spec for custom emoji reaction
FloatingGhost [Sat, 25 Jun 2022 14:45:10 +0000 (15:45 +0100)]
update api spec for custom emoji reaction

2 years agoBugfix: standardise scheme for emoji reactions
FloatingGhost [Sat, 25 Jun 2022 14:27:46 +0000 (15:27 +0100)]
Bugfix: standardise scheme for emoji reactions

2 years agomix format
FloatingGhost [Wed, 22 Jun 2022 16:20:55 +0000 (17:20 +0100)]
mix format

2 years agoupdate changelog
FloatingGhost [Wed, 22 Jun 2022 16:10:55 +0000 (17:10 +0100)]
update changelog

2 years agoensure local statuses are not visible remotely
FloatingGhost [Wed, 22 Jun 2022 16:06:40 +0000 (17:06 +0100)]
ensure local statuses are not visible remotely

2 years agocheck for local_public? on AP route
FloatingGhost [Wed, 22 Jun 2022 15:35:12 +0000 (16:35 +0100)]
check for local_public? on AP route

2 years agocherry-pick security from upstream
FloatingGhost [Wed, 22 Jun 2022 15:25:05 +0000 (16:25 +0100)]
cherry-pick security from upstream

2 years agoMerge branch 'develop' of akkoma.dev:AkkomaGang/akkoma into develop
FloatingGhost [Tue, 21 Jun 2022 07:35:13 +0000 (08:35 +0100)]
Merge branch 'develop' of akkoma.dev:AkkomaGang/akkoma into develop

2 years agoupdate changelog
FloatingGhost [Tue, 21 Jun 2022 07:35:05 +0000 (08:35 +0100)]
update changelog

2 years agoMerge pull request 'Use mediaproxy for emoji notifications if enabled' (#7) from...
floatingghost [Fri, 17 Jun 2022 13:19:57 +0000 (13:19 +0000)]
Merge pull request 'Use mediaproxy for emoji notifications if enabled' (#7) from sn0w/akkoma:patch/emoji-notification-mediaproxy into develop

Reviewed-on: http://akkoma.dev/AkkomaGang/akkoma/pulls/7

2 years agoUse mediaproxy for emoji notifications if enabled
sn0w [Fri, 17 Jun 2022 12:17:48 +0000 (14:17 +0200)]
Use mediaproxy for emoji notifications if enabled

2 years agoformat everything
FloatingGhost [Wed, 15 Jun 2022 17:22:30 +0000 (18:22 +0100)]
format everything

2 years agoupdate pleroma-fe url
FloatingGhost [Wed, 15 Jun 2022 17:18:23 +0000 (18:18 +0100)]
update pleroma-fe url

2 years agoupdate adminfe
FloatingGhost [Tue, 14 Jun 2022 18:04:22 +0000 (19:04 +0100)]
update adminfe

2 years agoRevert "update adminfe"
FloatingGhost [Tue, 14 Jun 2022 18:00:24 +0000 (19:00 +0100)]
Revert "update adminfe"

This reverts commit 4532f75da35b44386df9a3b1b193f8bb8120488a.

2 years agoupdate adminfe
FloatingGhost [Tue, 14 Jun 2022 17:51:33 +0000 (18:51 +0100)]
update adminfe

2 years agomix format
FloatingGhost [Tue, 14 Jun 2022 16:43:45 +0000 (17:43 +0100)]
mix format

2 years agoallow %{source} dict in no_empty
FloatingGhost [Tue, 14 Jun 2022 16:41:25 +0000 (17:41 +0100)]
allow %{source} dict in no_empty

2 years agoupdate fe
FloatingGhost [Tue, 14 Jun 2022 16:29:41 +0000 (17:29 +0100)]
update fe

2 years agoupdate pleroma-fe
FloatingGhost [Tue, 14 Jun 2022 16:10:31 +0000 (17:10 +0100)]
update pleroma-fe

2 years agobump version
FloatingGhost [Tue, 14 Jun 2022 15:35:55 +0000 (16:35 +0100)]
bump version

2 years agoupdate pleromaFE
FloatingGhost [Tue, 14 Jun 2022 15:35:32 +0000 (16:35 +0100)]
update pleromaFE

2 years agoMerge branch 'mfm' into develop
FloatingGhost [Tue, 14 Jun 2022 15:25:47 +0000 (16:25 +0100)]
Merge branch 'mfm' into develop

2 years agomix format
FloatingGhost [Tue, 14 Jun 2022 15:25:28 +0000 (16:25 +0100)]
mix format

2 years agoensure tests pass
FloatingGhost [Tue, 14 Jun 2022 15:24:03 +0000 (16:24 +0100)]
ensure tests pass

2 years agoAllow authoring MFM
FloatingGhost [Tue, 14 Jun 2022 14:56:12 +0000 (15:56 +0100)]
Allow authoring MFM

2 years agoMerge pull request 'Allow reacting with emojis containing a number' (#6) from sn0w...
floatingghost [Tue, 14 Jun 2022 10:03:49 +0000 (10:03 +0000)]
Merge pull request 'Allow reacting with emojis containing a number' (#6) from sn0w/akkoma:patch/broaden-emoji-name-scope into develop

Reviewed-on: http://akkoma.dev/AkkomaGang/akkoma/pulls/6

2 years agoallow `source` from misskey
FloatingGhost [Tue, 14 Jun 2022 09:56:18 +0000 (10:56 +0100)]
allow `source` from misskey

2 years agoAllow reacting with emojis containing a number
sn0w [Tue, 14 Jun 2022 09:47:09 +0000 (11:47 +0200)]
Allow reacting with emojis containing a number

2 years agobump version, 2.5.1
FloatingGhost [Sun, 12 Jun 2022 13:01:23 +0000 (14:01 +0100)]
bump version, 2.5.1

2 years agoupdate pleroma-fe
FloatingGhost [Sun, 12 Jun 2022 13:00:52 +0000 (14:00 +0100)]
update pleroma-fe

2 years agoAdd emoji_url to notifications to allow rendering
FloatingGhost [Sun, 12 Jun 2022 12:35:14 +0000 (13:35 +0100)]
Add emoji_url to notifications to allow rendering

Ref #5

2 years agofix event triggers
FloatingGhost [Sat, 11 Jun 2022 18:53:36 +0000 (19:53 +0100)]
fix event triggers

2 years agodon't test
FloatingGhost [Sat, 11 Jun 2022 18:38:00 +0000 (19:38 +0100)]
don't test

2 years agopls
FloatingGhost [Sat, 11 Jun 2022 18:37:24 +0000 (19:37 +0100)]
pls

2 years agoupdate musl
FloatingGhost [Sat, 11 Jun 2022 18:22:03 +0000 (19:22 +0100)]
update musl

2 years agotry making it dependent
FloatingGhost [Sat, 11 Jun 2022 18:10:45 +0000 (19:10 +0100)]
try making it dependent

2 years agoinclude musl tag
FloatingGhost [Sat, 11 Jun 2022 17:58:36 +0000 (18:58 +0100)]
include musl tag

2 years agoclean for musl
FloatingGhost [Sat, 11 Jun 2022 17:55:54 +0000 (18:55 +0100)]
clean for musl

2 years agofix tag builds
FloatingGhost [Sat, 11 Jun 2022 17:48:26 +0000 (18:48 +0100)]
fix tag builds

2 years agoensure releases don't collide
FloatingGhost [Sat, 11 Jun 2022 17:32:10 +0000 (18:32 +0100)]
ensure releases don't collide

2 years agobump version
FloatingGhost [Sat, 11 Jun 2022 17:16:34 +0000 (18:16 +0100)]
bump version

2 years agorun on tag
FloatingGhost [Sat, 11 Jun 2022 17:12:48 +0000 (18:12 +0100)]
run on tag

2 years agomake sure we have zip
FloatingGhost [Sat, 11 Jun 2022 16:57:12 +0000 (17:57 +0100)]
make sure we have zip

2 years agohex
FloatingGhost [Sat, 11 Jun 2022 16:44:12 +0000 (17:44 +0100)]
hex

2 years agoensure secrets get passed
FloatingGhost [Sat, 11 Jun 2022 16:42:29 +0000 (17:42 +0100)]
ensure secrets get passed

2 years agojust run release instantly for now
FloatingGhost [Sat, 11 Jun 2022 16:40:55 +0000 (17:40 +0100)]
just run release instantly for now

2 years agoonly test release
FloatingGhost [Sat, 11 Jun 2022 16:34:13 +0000 (17:34 +0100)]
only test release

2 years agotest on push
FloatingGhost [Sat, 11 Jun 2022 16:18:52 +0000 (17:18 +0100)]
test on push

2 years agorelease on tag
FloatingGhost [Sat, 11 Jun 2022 16:17:14 +0000 (17:17 +0100)]
release on tag

2 years agoupdate pleroma-fe
FloatingGhost [Sat, 11 Jun 2022 16:15:57 +0000 (17:15 +0100)]
update pleroma-fe

2 years agofix secret key failure
FloatingGhost [Sat, 11 Jun 2022 15:48:04 +0000 (16:48 +0100)]
fix secret key failure

2 years agolint pipeline
FloatingGhost [Sat, 11 Jun 2022 15:41:15 +0000 (16:41 +0100)]
lint pipeline

2 years agomix format
FloatingGhost [Sat, 11 Jun 2022 15:14:31 +0000 (16:14 +0100)]
mix format

2 years agofix all tests
FloatingGhost [Sat, 11 Jun 2022 15:14:22 +0000 (16:14 +0100)]
fix all tests

2 years agofix emoji controller tests
FloatingGhost [Sat, 11 Jun 2022 13:21:50 +0000 (14:21 +0100)]
fix emoji controller tests

2 years agofix emoji tests
FloatingGhost [Sat, 11 Jun 2022 13:08:54 +0000 (14:08 +0100)]
fix emoji tests