ilja [Mon, 19 Dec 2022 13:06:39 +0000 (13:06 +0000)]
Add translation module for Argos Translate (#351)
Argos Translate is a Python module for translation and can be used as a command line tool.
This is also the engine for LibreTranslate, for which we already have a module.
Here we can use the engine directly from our server without doing requests to a third party or having to install our own LibreTranslate webservice (obviously you do have to install Argos Translate).
One thing that's currently still missing from Argos Translate is auto-detection of languages (see <https://github.com/argosopentech/argos-translate/issues/9>). For now, when no source language is provided, we just return the text unchanged, supposedly translated from the target language. That way you get a near immediate response in pleroma-fe when clicking Translate, after which you can select the source language from a dropdown.
Argos Translate also doesn't seem to handle html very well. Therefore we give admins the option to strip the html before translating. I made this an option because I'm unsure if/how this will change in the future.
Co-authored-by: ilja <git@ilja.space>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/351
Co-authored-by: ilja <akkoma.dev@ilja.space>
Co-committed-by: ilja <akkoma.dev@ilja.space>
floatingghost [Mon, 19 Dec 2022 02:34:46 +0000 (02:34 +0000)]
revert
28ab09d37755aa4e3f886f4d7748beaed4ad22e3
revert Remove unused dependencies
FloatingGhost [Mon, 19 Dec 2022 02:26:04 +0000 (02:26 +0000)]
Remove unused dependencies
FloatingGhost [Sat, 17 Dec 2022 23:21:24 +0000 (23:21 +0000)]
remove now-unused test
FloatingGhost [Sat, 17 Dec 2022 23:14:49 +0000 (23:14 +0000)]
drop admin scopes on create app instead of rejecting
FloatingGhost [Fri, 16 Dec 2022 18:33:00 +0000 (18:33 +0000)]
Add option to modify HTTP pool size
FloatingGhost [Fri, 16 Dec 2022 17:31:04 +0000 (17:31 +0000)]
increase rich media backoff time
FloatingGhost [Fri, 16 Dec 2022 17:23:03 +0000 (17:23 +0000)]
Merge branch 'develop' of akkoma.dev:AkkomaGang/akkoma into develop
FloatingGhost [Fri, 16 Dec 2022 17:22:56 +0000 (17:22 +0000)]
update stats every 5 minutes
FloatingGhost [Fri, 16 Dec 2022 17:22:26 +0000 (17:22 +0000)]
add remote user count for the heck of it
floatingghost [Fri, 16 Dec 2022 14:17:40 +0000 (14:17 +0000)]
Merge pull request 'Remove legacy references to FE that is not officially supported' (#376) from paulyd/akkoma:remove-legacy-fe-reference into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/376
Paul Dawson [Fri, 16 Dec 2022 14:08:00 +0000 (08:08 -0600)]
Remove legacy references to FE that is not officially supported
FloatingGhost [Fri, 16 Dec 2022 13:24:18 +0000 (13:24 +0000)]
fix markdown link
FloatingGhost [Fri, 16 Dec 2022 13:20:48 +0000 (13:20 +0000)]
add changelog entry for custom emoji
FloatingGhost [Fri, 16 Dec 2022 12:36:34 +0000 (12:36 +0000)]
remove unused variable
floatingghost [Fri, 16 Dec 2022 12:34:16 +0000 (12:34 +0000)]
Merge pull request 'metrics' (#375) from stats into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/375
FloatingGhost [Fri, 16 Dec 2022 12:19:24 +0000 (12:19 +0000)]
fix csp-induced HTML match error
FloatingGhost [Fri, 16 Dec 2022 11:57:19 +0000 (11:57 +0000)]
add changelog entry
FloatingGhost [Fri, 16 Dec 2022 11:50:25 +0000 (11:50 +0000)]
make 2fa UI less awful
FloatingGhost [Fri, 16 Dec 2022 11:18:14 +0000 (11:18 +0000)]
mix format
FloatingGhost [Fri, 16 Dec 2022 11:17:04 +0000 (11:17 +0000)]
allow disabling prometheus entirely
FloatingGhost [Fri, 16 Dec 2022 10:56:17 +0000 (10:56 +0000)]
add test for metrics controller
FloatingGhost [Fri, 16 Dec 2022 10:24:36 +0000 (10:24 +0000)]
document prometheus
FloatingGhost [Fri, 16 Dec 2022 03:32:51 +0000 (03:32 +0000)]
allow users with admin:metrics to read app metrics
FloatingGhost [Fri, 16 Dec 2022 03:25:14 +0000 (03:25 +0000)]
do not allow non-admins to register tokens with admin scopes
this didn't actually _do_ anything in the past,
the users would be prevented from accessing the resource,
but they shouldn't be able to even create them
FloatingGhost [Thu, 15 Dec 2022 02:02:07 +0000 (02:02 +0000)]
Add prometheus metrics to router
Tim Buchwaldt [Sat, 12 Nov 2022 16:13:39 +0000 (17:13 +0100)]
Measure stats-data
Tim Buchwaldt [Sat, 12 Nov 2022 15:11:38 +0000 (16:11 +0100)]
Take tesla telemetry
Tim Buchwaldt [Sat, 12 Nov 2022 11:42:53 +0000 (12:42 +0100)]
Track oban failures
Tim Buchwaldt [Sat, 12 Nov 2022 11:38:25 +0000 (12:38 +0100)]
Revert "Bump live-dashboard"
This reverts commit
c196d79aafd51b671aa19032b32e4cd416dab720.
Tim Buchwaldt [Sat, 12 Nov 2022 10:54:35 +0000 (11:54 +0100)]
Fix oban tags
Tim Buchwaldt [Sat, 12 Nov 2022 10:31:03 +0000 (11:31 +0100)]
Listen to loopback
Tim Buchwaldt [Sat, 12 Nov 2022 10:23:44 +0000 (11:23 +0100)]
Fix buckets for query timing
Tim Buchwaldt [Sat, 12 Nov 2022 10:14:16 +0000 (11:14 +0100)]
Start adding telemetry
floatingghost [Wed, 14 Dec 2022 12:38:48 +0000 (12:38 +0000)]
giant massive dep upgrade and dialyxir-found error emporium (#371)
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/371
floatingghost [Wed, 14 Dec 2022 10:07:24 +0000 (10:07 +0000)]
Merge pull request 'Return HTTP code 413 when uploading an avatar/header that's too large' (#367) from norm/akkoma:return-413-max-size into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/367
Norm [Wed, 14 Dec 2022 03:03:08 +0000 (03:03 +0000)]
Update the "Updating your instance" docs (#361)
This makes them consistent with the update instructions that are in the
release announcements.
Also adds in the command to update the frontend as well.
Co-authored-by: Francis Dinh <normandy@biribiri.dev>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/361
Co-authored-by: Norm <normandy@biribiri.dev>
Co-committed-by: Norm <normandy@biribiri.dev>
Norm [Sun, 11 Dec 2022 22:57:43 +0000 (22:57 +0000)]
Update 'CHANGELOG.md'
duponin [Sun, 11 Dec 2022 22:15:08 +0000 (23:15 +0100)]
Return 413 when an actor's banner or background exceeds the size limit
duponin [Sun, 11 Dec 2022 21:54:47 +0000 (22:54 +0100)]
Uploading an avatar media exceeding max size returns a 413
Until now it was returning a 500 because the upload plug were going
through the changeset and ending in the JSON encoder, which raised
because struct has to @derive the encoder.
FloatingGhost [Mon, 12 Dec 2022 19:06:04 +0000 (19:06 +0000)]
allow http AS profile in ld+json header
floatingghost [Mon, 12 Dec 2022 04:26:43 +0000 (04:26 +0000)]
Update '.gitea/issue_template/feat.yml'
floatingghost [Mon, 12 Dec 2022 04:26:24 +0000 (04:26 +0000)]
Update '.gitea/issue_template/bug.yml'
FloatingGhost [Mon, 12 Dec 2022 02:34:13 +0000 (02:34 +0000)]
Add `mail` to make the gmail adapter in swoosh work
FloatingGhost [Sun, 11 Dec 2022 23:50:31 +0000 (23:50 +0000)]
Test removed HTTP adapter
FloatingGhost [Sun, 11 Dec 2022 23:33:58 +0000 (23:33 +0000)]
Allow mock in http adapter checking
FloatingGhost [Sun, 11 Dec 2022 23:22:35 +0000 (23:22 +0000)]
Remove quack, ensure adapter is finch
FloatingGhost [Sun, 11 Dec 2022 22:58:26 +0000 (22:58 +0000)]
uppdate excoveralls
FloatingGhost [Sun, 11 Dec 2022 22:57:18 +0000 (22:57 +0000)]
Add diagnostics http
FloatingGhost [Sun, 11 Dec 2022 19:26:21 +0000 (19:26 +0000)]
Ensure Gun is Gone
FloatingGhost [Sun, 11 Dec 2022 19:19:31 +0000 (19:19 +0000)]
Remove hackney/gun in favour of finch
FloatingGhost [Sat, 10 Dec 2022 14:50:02 +0000 (14:50 +0000)]
Bump versions
floatingghost [Sat, 10 Dec 2022 14:43:03 +0000 (14:43 +0000)]
Merge pull request 'Don't listen Erlang Port Mapper Daemon (4369/tcp) on 0.0.0.0' (#358) from r3g_5z/akkoma:close-open-ports into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/358
floatingghost [Sat, 10 Dec 2022 14:41:23 +0000 (14:41 +0000)]
Merge pull request 'Add dark and light theme mode to docs, detection, and button' (#360) from r3g_5z/akkoma:docs-dark-mode into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/360
r3g_5z [Sat, 10 Dec 2022 03:49:25 +0000 (22:49 -0500)]
Add dark and light theme mode to docs, detection, and button
my eyes hurt
Signed-off-by: r3g_5z <june@girlboss.ceo>
r3g_5z [Sat, 10 Dec 2022 02:36:21 +0000 (21:36 -0500)]
Don't listen Erlang Port Mapper Daemon (4369/tcp) on 0.0.0.0
Signed-off-by: r3g_5z <june@girlboss.ceo>
floatingghost [Sat, 10 Dec 2022 00:24:28 +0000 (00:24 +0000)]
Merge pull request 'Remove unnecessary KillMode=process' (#359) from r3g_5z/akkoma:remove-unnecessary-killmode into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/359
FloatingGhost [Sat, 10 Dec 2022 00:10:24 +0000 (00:10 +0000)]
Merge remote-tracking branch 'origin/translations' into develop
r3g_5z [Sat, 10 Dec 2022 00:10:20 +0000 (19:10 -0500)]
Remove unnecessary KillMode=process
It's unclear why this is the default as this is highly not recommended.
KillMode=process ends up leaving leftover orphaned processes that
escape resource management and process lifecycles, wasting resources
on servers.
Signed-off-by: r3g_5z <june@girlboss.ceo>
FloatingGhost [Sat, 10 Dec 2022 00:09:45 +0000 (00:09 +0000)]
Do not fetch anything from blocked instances
FloatingGhost [Fri, 9 Dec 2022 23:45:51 +0000 (23:45 +0000)]
Add some extra info around possible nils
Weblate [Wed, 7 Dec 2022 15:39:41 +0000 (15:39 +0000)]
Update translation files
Updated by "Squash Git commits" hook in Weblate.
Translation: Pleroma fe/Akkoma Backend (Static pages)
Translate-URL: http://translate.akkoma.dev/projects/akkoma/akkoma-backend-static-pages/
Weblate [Wed, 7 Dec 2022 15:39:41 +0000 (15:39 +0000)]
Translated using Weblate (Indonesian)
Currently translated at 21.6% (18 of 83 strings)
Added translation using Weblate (Indonesian)
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: t1 <taaa@fedora.email>
Translate-URL: http://translate.akkoma.dev/projects/akkoma/akkoma-backend-static-pages/id/
Translation: Pleroma fe/Akkoma Backend (Static pages)
floatingghost [Fri, 9 Dec 2022 21:12:49 +0000 (21:12 +0000)]
Merge pull request 'Magical patches' (#357) from magical-patches into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/357
FloatingGhost [Fri, 9 Dec 2022 20:59:26 +0000 (20:59 +0000)]
Revert "mandate published on notes"
This reverts commit
e49b583147748be73062acc92ea510f6f55a503a.
floatingghost [Fri, 9 Dec 2022 20:28:48 +0000 (20:28 +0000)]
Merge pull request 'Skip posts in indexer where publish date is nil' (#356) from sn0w/akkoma:feature/indexer-skip-broken-activities into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/356
Reviewed-by: floatingghost <hannah@coffee-and-dreams.uk>
FloatingGhost [Fri, 9 Dec 2022 20:27:54 +0000 (20:27 +0000)]
mandate published on notes
fixes #356
FloatingGhost [Fri, 9 Dec 2022 20:13:31 +0000 (20:13 +0000)]
Add URL and code to :not_found errors
Ref #355
FloatingGhost [Fri, 9 Dec 2022 20:04:48 +0000 (20:04 +0000)]
Underscore unused variable
FloatingGhost [Fri, 9 Dec 2022 20:01:38 +0000 (20:01 +0000)]
Do not pass transient undo-y activities through MRF
FloatingGhost [Fri, 9 Dec 2022 19:59:27 +0000 (19:59 +0000)]
Remove FollowBotPolicy
FloatingGhost [Fri, 9 Dec 2022 19:57:29 +0000 (19:57 +0000)]
extend reject MRF to check if originating instance is blocked
sn0w [Thu, 8 Dec 2022 09:04:20 +0000 (10:04 +0100)]
Skip posts in indexer where publish date is nil
FloatingGhost [Fri, 9 Dec 2022 10:31:22 +0000 (10:31 +0000)]
Merge remote-tracking branch 'ilja/fix_tagpolicy_to_also_work_on_updates' into develop
FloatingGhost [Fri, 9 Dec 2022 10:24:38 +0000 (10:24 +0000)]
mix format
ilja [Thu, 8 Dec 2022 22:12:27 +0000 (23:12 +0100)]
Fix MRF policies to also work with Update
Objects who got updated would just pass through several of the MRF policies, undoing moderation in some situations.
In the relevant cases we now check not only for Create activities, but also Update activities.
I checked which ones checked explicitly on type Create using `grep '"type" => "Create"' lib/pleroma/web/activity_pub/mrf/*`.
The following from that list have not been changed:
* lib/pleroma/web/activity_pub/mrf/follow_bot_policy.ex
* Not relevant for moderation
* lib/pleroma/web/activity_pub/mrf/keyword_policy.ex
* Already had a test for Update
* lib/pleroma/web/activity_pub/mrf/object_age_policy.ex
* In practice only relevant when fetching old objects (e.g. through Like or Announce). These are always wrapped in a Create.
* lib/pleroma/web/activity_pub/mrf/reject_non_public.ex
* We don't allow changing scope with Update, so not relevant here
ilja [Thu, 8 Dec 2022 20:53:42 +0000 (21:53 +0100)]
Fix tagpolicy to also work with Update
Objects who got updated would just pass the TagPolicy, undoing the moderation that was set in place for the Actor.
Now we check not only for Create activities, but also Update activities.
floatingghost [Thu, 8 Dec 2022 18:40:45 +0000 (18:40 +0000)]
Merge pull request 'Add YAML issue templates for bug and feat' (#353) from sfr/akkoma:issue-template into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/353
Sol Fisher Romanoff [Thu, 8 Dec 2022 16:07:24 +0000 (18:07 +0200)]
Add YAML issue templates for bug and feat
floatingghost [Wed, 7 Dec 2022 22:37:23 +0000 (22:37 +0000)]
Update 'ISSUE_TEMPLATE.md'
floatingghost [Wed, 7 Dec 2022 22:27:00 +0000 (22:27 +0000)]
Add issue template
FloatingGhost [Wed, 7 Dec 2022 15:39:19 +0000 (15:39 +0000)]
Add misskey markdown to format suggestions
Fixes #345
FloatingGhost [Wed, 7 Dec 2022 13:41:12 +0000 (13:41 +0000)]
Add check for null reply_to_user
FloatingGhost [Wed, 7 Dec 2022 13:35:00 +0000 (13:35 +0000)]
Redirect to standard FE if logged in
FloatingGhost [Wed, 7 Dec 2022 11:45:53 +0000 (11:45 +0000)]
Document custom.css
FloatingGhost [Wed, 7 Dec 2022 11:41:24 +0000 (11:41 +0000)]
GOOGLE
sfr [Wed, 7 Dec 2022 11:20:53 +0000 (11:20 +0000)]
static-fe overhaul (#236)
makes static-fe look more like pleroma-fe, with the stylesheets matching pleroma-dark and pleroma-light based on `prefers-color-scheme`.
- [x] navbar
- [x] about sidebar
- [x] background image
- [x] statuses
- [x] "reply to" or "edited" tags
- [x] accounts
- [x] show more / show less
- [x] posts / with replies / media / followers / following
- [x] followers/following would require user card snippets
- [x] admin/bot indicators
- [x] attachments
- [x] nsfw attachments
- [x] fontawesome icons
- [x] clean up and sort css
- [x] add pleroma-light
- [x] replace hardcoded strings
also i forgot
- [x] repeated headers
how it looks + sneak peek at statuses:
![](https://akkoma.dev/attachments/
c0d3a025-6987-4630-8eb9-
5f4db6858359)
Co-authored-by: Sol Fisher Romanoff <sol@solfisher.com>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/236
Co-authored-by: sfr <sol@solfisher.com>
Co-committed-by: sfr <sol@solfisher.com>
floatingghost [Wed, 7 Dec 2022 11:12:34 +0000 (11:12 +0000)]
Diagnostics tasks (#348)
a bunch of ways to get query plans to help with debugging
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/348
floatingghost [Wed, 7 Dec 2022 11:07:06 +0000 (11:07 +0000)]
Merge pull request 'Small improvements to the Gentoo installation isntructions' (#335) from timorl/akkoma:i-use-gentoo-btw into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/335
ilja [Wed, 7 Dec 2022 11:05:35 +0000 (11:05 +0000)]
DOCS: backup restore improvements (#332)
Mostly add how to speed up restoration by adding activities_visibility_index later. Also some small other improvements.
This is based on what I did on a Pleroma instance. I assume the activities_visibility_index taking so long is still true for Akkoma, but can't really test because I don't have a big enough Akkoma DB yet 🙃
Co-authored-by: ilja <git@ilja.space>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/332
Reviewed-by: floatingghost <hannah@coffee-and-dreams.uk>
Co-authored-by: ilja <akkoma.dev@ilja.space>
Co-committed-by: ilja <akkoma.dev@ilja.space>
FloatingGhost [Tue, 6 Dec 2022 10:57:10 +0000 (10:57 +0000)]
Allow dashes in domain name search
FloatingGhost [Mon, 5 Dec 2022 13:47:52 +0000 (13:47 +0000)]
update default favicon
FloatingGhost [Mon, 5 Dec 2022 13:45:36 +0000 (13:45 +0000)]
Doc branding
floatingghost [Mon, 5 Dec 2022 13:39:27 +0000 (13:39 +0000)]
varnish config/docs (#342)
Co-authored-by: Mark Felder <feld@feld.me>
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/342
floatingghost [Mon, 5 Dec 2022 12:58:48 +0000 (12:58 +0000)]
Remerge of hashtag following (#341)
this time with less idiot
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/341
floatingghost [Sun, 4 Dec 2022 20:04:09 +0000 (20:04 +0000)]
revert
4a94c9a31ef11f63ea71ad9c1f085c18cf8ef083
revert Add ability to follow hashtags (#336)
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/336
floatingghost [Sun, 4 Dec 2022 18:35:04 +0000 (18:35 +0000)]
Add changelog entry for hashtag following
floatingghost [Sun, 4 Dec 2022 17:36:59 +0000 (17:36 +0000)]
Add ability to follow hashtags (#336)
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/336
timorl [Sun, 4 Dec 2022 15:37:49 +0000 (16:37 +0100)]
Small improvements to the Gentoo installation isntructions
floatingghost [Sat, 3 Dec 2022 23:17:43 +0000 (23:17 +0000)]
Purge Rejected Follow requests in daily task (#334)
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/334