akkoma
2 years agoAdd docs about emoji stealing (#364)
timorl [Fri, 30 Dec 2022 02:58:06 +0000 (02:58 +0000)]
Add docs about emoji stealing (#364)

I managed to steal some emoji, but I had to figure out the specifics the hard way. This should make it easier for future criminals.

Feel free to close if this documentation was omitted on purpose, I can imagine some reasons for why it might have.

Co-authored-by: timorl <timorl@disroot.org>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/364
Co-authored-by: timorl <timorl+akkomadev@disroot.org>
Co-committed-by: timorl <timorl+akkomadev@disroot.org>
2 years agoMerge pull request 'docs/installation: update comment to reflect flavour change'...
floatingghost [Fri, 30 Dec 2022 02:54:09 +0000 (02:54 +0000)]
Merge pull request 'docs/installation: update comment to reflect flavour change' (#394) from norm/akkoma:flavour-fix into develop

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

2 years agoMerge pull request 'remove comment about old openssl versions in nginx config' (...
floatingghost [Fri, 30 Dec 2022 02:53:48 +0000 (02:53 +0000)]
Merge pull request 'remove comment about old openssl versions in nginx config' (#395) from norm/akkoma:remove-old-openssl-comment into develop

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

2 years agoMerge pull request 'Don't treat js/css as binary in git anymore' (#397) from norm...
floatingghost [Fri, 30 Dec 2022 02:50:52 +0000 (02:50 +0000)]
Merge pull request 'Don't treat js/css as binary in git anymore' (#397) from norm/akkoma:norm-patch-2 into develop

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

2 years agoMerge pull request 'docs: fedora install errata' (#398) from acuteaura/akkoma:acuteau...
floatingghost [Fri, 30 Dec 2022 02:50:34 +0000 (02:50 +0000)]
Merge pull request 'docs: fedora install errata' (#398) from acuteaura/akkoma:acuteaura-patch-1 into develop

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

2 years agoargon2 password hashing (#406)
floatingghost [Fri, 30 Dec 2022 02:46:58 +0000 (02:46 +0000)]
argon2 password hashing (#406)

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/406

2 years agoAdd link verification in profile fields (#405)
floatingghost [Thu, 29 Dec 2022 20:56:06 +0000 (20:56 +0000)]
Add link verification in profile fields (#405)

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/405

2 years agoDocument instance reboots
FloatingGhost [Thu, 29 Dec 2022 20:24:04 +0000 (20:24 +0000)]
Document instance reboots

2 years agodocument dump_to_file and load_from_file
FloatingGhost [Thu, 29 Dec 2022 20:00:04 +0000 (20:00 +0000)]
document dump_to_file and load_from_file

2 years agoAdd dump_to_file and load_from_file tasks
FloatingGhost [Thu, 29 Dec 2022 19:56:35 +0000 (19:56 +0000)]
Add dump_to_file and load_from_file tasks

2 years agoCheck out the latest tag on update
FloatingGhost [Thu, 29 Dec 2022 15:42:25 +0000 (15:42 +0000)]
Check out the latest tag on update

2 years agoclean-up docs to avoid mismatches in BE and FE. Clearly state that stable-versions...
Stefan [Fri, 16 Dec 2022 16:23:31 +0000 (17:23 +0100)]
clean-up docs to avoid mismatches in BE and FE. Clearly state that stable-versions are installed

2 years agodocs: fedora install errata
acuteaura [Sun, 25 Dec 2022 15:32:57 +0000 (15:32 +0000)]
docs: fedora install errata

2 years agoDon't treat js/css as binary in git anymore
Norm [Fri, 23 Dec 2022 18:03:14 +0000 (18:03 +0000)]
Don't treat js/css as binary in git anymore

Since Akkoma doesn't include precompiled frontends in the main repo anymore, it doesn't make sense to keep treating the few js/css files remaining as binary files.

2 years agoremove comment about old openssl versions in nginx config
Francis Dinh [Fri, 23 Dec 2022 00:27:16 +0000 (19:27 -0500)]
remove comment about old openssl versions in nginx config

I doubt many people are actually still using OpenSSL 1.0.2 or older,
since that version was first released in 2015, and last updated in 2019.

2 years agodocs/installation: update comment to reflect flavour change
Francis Dinh [Fri, 23 Dec 2022 00:18:54 +0000 (19:18 -0500)]
docs/installation: update comment to reflect flavour change

The comment still says the flavour is `amd64-musl` when it was updated
to just `amd64` in 64ccdadad318c4a75fea4875009fb05895f6b93a.

2 years agoMerge pull request 'doc-update / switch default flavor to amd64' (#393) from YokaiRic...
floatingghost [Thu, 22 Dec 2022 23:39:35 +0000 (23:39 +0000)]
Merge pull request 'doc-update / switch default flavor to amd64' (#393) from YokaiRick/akkoma:develop into develop

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

2 years agoswitch default flavor to amd64
YokaiRick [Thu, 22 Dec 2022 21:25:31 +0000 (21:25 +0000)]
switch default flavor to amd64

Most ppl probably need to set it to amd64.
This would help to remove some confusion while installing akkoma

2 years agoDo not crash on invalid atom in configDB
FloatingGhost [Wed, 21 Dec 2022 00:16:39 +0000 (00:16 +0000)]
Do not crash on invalid atom in configDB

2 years agoSimplified HTTP signature processing
Atsuko Karagi [Mon, 19 Dec 2022 20:41:48 +0000 (20:41 +0000)]
Simplified HTTP signature processing

2 years agoRespect restrict_unauthenticated in /api/v1/accounts/lookup
Atsuko Karagi [Mon, 19 Dec 2022 20:32:16 +0000 (20:32 +0000)]
Respect restrict_unauthenticated in /api/v1/accounts/lookup

2 years agoMix format
FloatingGhost [Mon, 19 Dec 2022 13:07:29 +0000 (13:07 +0000)]
Mix format

2 years agoAdd translation module for Argos Translate (#351)
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>
2 years agorevert 28ab09d37755aa4e3f886f4d7748beaed4ad22e3
floatingghost [Mon, 19 Dec 2022 02:34:46 +0000 (02:34 +0000)]
revert 28ab09d37755aa4e3f886f4d7748beaed4ad22e3

revert Remove unused dependencies

2 years agoRemove unused dependencies
FloatingGhost [Mon, 19 Dec 2022 02:26:04 +0000 (02:26 +0000)]
Remove unused dependencies

2 years agoremove now-unused test
FloatingGhost [Sat, 17 Dec 2022 23:21:24 +0000 (23:21 +0000)]
remove now-unused test

2 years agodrop admin scopes on create app instead of rejecting
FloatingGhost [Sat, 17 Dec 2022 23:14:49 +0000 (23:14 +0000)]
drop admin scopes on create app instead of rejecting

2 years agoAdd option to modify HTTP pool size develop
FloatingGhost [Fri, 16 Dec 2022 18:33:00 +0000 (18:33 +0000)]
Add option to modify HTTP pool size

2 years agoincrease rich media backoff time
FloatingGhost [Fri, 16 Dec 2022 17:31:04 +0000 (17:31 +0000)]
increase rich media backoff time

2 years agoMerge branch 'develop' of akkoma.dev:AkkomaGang/akkoma into develop
FloatingGhost [Fri, 16 Dec 2022 17:23:03 +0000 (17:23 +0000)]
Merge branch 'develop' of akkoma.dev:AkkomaGang/akkoma into develop

2 years agoupdate stats every 5 minutes
FloatingGhost [Fri, 16 Dec 2022 17:22:56 +0000 (17:22 +0000)]
update stats every 5 minutes

2 years agoadd remote user count for the heck of it
FloatingGhost [Fri, 16 Dec 2022 17:22:26 +0000 (17:22 +0000)]
add remote user count for the heck of it

2 years agoMerge pull request 'Remove legacy references to FE that is not officially supported...
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

2 years agoRemove legacy references to FE that is not officially supported
Paul Dawson [Fri, 16 Dec 2022 14:08:00 +0000 (08:08 -0600)]
Remove legacy references to FE that is not officially supported

2 years agofix markdown link
FloatingGhost [Fri, 16 Dec 2022 13:24:18 +0000 (13:24 +0000)]
fix markdown link

2 years agoadd changelog entry for custom emoji
FloatingGhost [Fri, 16 Dec 2022 13:20:48 +0000 (13:20 +0000)]
add changelog entry for custom emoji

2 years agoremove unused variable
FloatingGhost [Fri, 16 Dec 2022 12:36:34 +0000 (12:36 +0000)]
remove unused variable

2 years agoMerge pull request 'metrics' (#375) from stats into develop
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

2 years agofix csp-induced HTML match error
FloatingGhost [Fri, 16 Dec 2022 12:19:24 +0000 (12:19 +0000)]
fix csp-induced HTML match error

2 years agoadd changelog entry
FloatingGhost [Fri, 16 Dec 2022 11:57:19 +0000 (11:57 +0000)]
add changelog entry

2 years agomake 2fa UI less awful
FloatingGhost [Fri, 16 Dec 2022 11:50:25 +0000 (11:50 +0000)]
make 2fa UI less awful

2 years agomix format
FloatingGhost [Fri, 16 Dec 2022 11:18:14 +0000 (11:18 +0000)]
mix format

2 years agoallow disabling prometheus entirely
FloatingGhost [Fri, 16 Dec 2022 11:17:04 +0000 (11:17 +0000)]
allow disabling prometheus entirely

2 years agoadd test for metrics controller
FloatingGhost [Fri, 16 Dec 2022 10:56:17 +0000 (10:56 +0000)]
add test for metrics controller

2 years agodocument prometheus
FloatingGhost [Fri, 16 Dec 2022 10:24:36 +0000 (10:24 +0000)]
document prometheus

2 years agoallow users with admin:metrics to read app metrics
FloatingGhost [Fri, 16 Dec 2022 03:32:51 +0000 (03:32 +0000)]
allow users with admin:metrics to read app metrics

2 years agodo not allow non-admins to register tokens with admin scopes
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

2 years agoAdd prometheus metrics to router
FloatingGhost [Thu, 15 Dec 2022 02:02:07 +0000 (02:02 +0000)]
Add prometheus metrics to router

2 years agoMeasure stats-data
Tim Buchwaldt [Sat, 12 Nov 2022 16:13:39 +0000 (17:13 +0100)]
Measure stats-data

2 years agoTake tesla telemetry
Tim Buchwaldt [Sat, 12 Nov 2022 15:11:38 +0000 (16:11 +0100)]
Take tesla telemetry

2 years agoTrack oban failures
Tim Buchwaldt [Sat, 12 Nov 2022 11:42:53 +0000 (12:42 +0100)]
Track oban failures

2 years agoRevert "Bump live-dashboard"
Tim Buchwaldt [Sat, 12 Nov 2022 11:38:25 +0000 (12:38 +0100)]
Revert "Bump live-dashboard"

This reverts commit c196d79aafd51b671aa19032b32e4cd416dab720.

2 years agoFix oban tags
Tim Buchwaldt [Sat, 12 Nov 2022 10:54:35 +0000 (11:54 +0100)]
Fix oban tags

2 years agoListen to loopback
Tim Buchwaldt [Sat, 12 Nov 2022 10:31:03 +0000 (11:31 +0100)]
Listen to loopback

2 years agoFix buckets for query timing
Tim Buchwaldt [Sat, 12 Nov 2022 10:23:44 +0000 (11:23 +0100)]
Fix buckets for query timing

2 years agoStart adding telemetry
Tim Buchwaldt [Sat, 12 Nov 2022 10:14:16 +0000 (11:14 +0100)]
Start adding telemetry

2 years agogiant massive dep upgrade and dialyxir-found error emporium (#371)
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

2 years agoMerge pull request 'Return HTTP code 413 when uploading an avatar/header that's too...
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

2 years agoUpdate the "Updating your instance" docs (#361)
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>
2 years agoUpdate 'CHANGELOG.md'
Norm [Sun, 11 Dec 2022 22:57:43 +0000 (22:57 +0000)]
Update 'CHANGELOG.md'

2 years agoReturn 413 when an actor's banner or background exceeds the size limit
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

2 years agoUploading an avatar media exceeding max size returns a 413
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.

2 years agoallow http AS profile in ld+json header
FloatingGhost [Mon, 12 Dec 2022 19:06:04 +0000 (19:06 +0000)]
allow http AS profile in ld+json header

2 years agoUpdate '.gitea/issue_template/feat.yml'
floatingghost [Mon, 12 Dec 2022 04:26:43 +0000 (04:26 +0000)]
Update '.gitea/issue_template/feat.yml'

2 years agoUpdate '.gitea/issue_template/bug.yml'
floatingghost [Mon, 12 Dec 2022 04:26:24 +0000 (04:26 +0000)]
Update '.gitea/issue_template/bug.yml'

2 years agoAdd `mail` to make the gmail adapter in swoosh work
FloatingGhost [Mon, 12 Dec 2022 02:34:13 +0000 (02:34 +0000)]
Add `mail` to make the gmail adapter in swoosh work

2 years agoTest removed HTTP adapter
FloatingGhost [Sun, 11 Dec 2022 23:50:31 +0000 (23:50 +0000)]
Test removed HTTP adapter

2 years agoAllow mock in http adapter checking
FloatingGhost [Sun, 11 Dec 2022 23:33:58 +0000 (23:33 +0000)]
Allow mock in http adapter checking

2 years agoRemove quack, ensure adapter is finch
FloatingGhost [Sun, 11 Dec 2022 23:22:35 +0000 (23:22 +0000)]
Remove quack, ensure adapter is finch

2 years agouppdate excoveralls
FloatingGhost [Sun, 11 Dec 2022 22:58:26 +0000 (22:58 +0000)]
uppdate excoveralls

2 years agoAdd diagnostics http
FloatingGhost [Sun, 11 Dec 2022 22:57:18 +0000 (22:57 +0000)]
Add diagnostics http

2 years agoEnsure Gun is Gone
FloatingGhost [Sun, 11 Dec 2022 19:26:21 +0000 (19:26 +0000)]
Ensure Gun is Gone

2 years agoRemove hackney/gun in favour of finch
FloatingGhost [Sun, 11 Dec 2022 19:19:31 +0000 (19:19 +0000)]
Remove hackney/gun in favour of finch

2 years agoBump versions
FloatingGhost [Sat, 10 Dec 2022 14:50:02 +0000 (14:50 +0000)]
Bump versions

2 years agoMerge pull request 'Don't listen Erlang Port Mapper Daemon (4369/tcp) on 0.0.0.0...
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

2 years agoMerge pull request 'Add dark and light theme mode to docs, detection, and button...
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

2 years agoAdd dark and light theme mode to docs, detection, and button
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>
2 years agoDon't listen Erlang Port Mapper Daemon (4369/tcp) on 0.0.0.0
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>
2 years agoMerge pull request 'Remove unnecessary KillMode=process' (#359) from r3g_5z/akkoma...
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

2 years agoMerge remote-tracking branch 'origin/translations' into develop
FloatingGhost [Sat, 10 Dec 2022 00:10:24 +0000 (00:10 +0000)]
Merge remote-tracking branch 'origin/translations' into develop

2 years agoRemove unnecessary KillMode=process
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>
2 years agoDo not fetch anything from blocked instances
FloatingGhost [Sat, 10 Dec 2022 00:09:45 +0000 (00:09 +0000)]
Do not fetch anything from blocked instances

2 years agoAdd some extra info around possible nils
FloatingGhost [Fri, 9 Dec 2022 23:45:51 +0000 (23:45 +0000)]
Add some extra info around possible nils

2 years agoUpdate translation files
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/

2 years agoTranslated using Weblate (Indonesian)
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)

2 years agoMerge pull request 'Magical patches' (#357) from magical-patches into develop
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

2 years agoRevert "mandate published on notes"
FloatingGhost [Fri, 9 Dec 2022 20:59:26 +0000 (20:59 +0000)]
Revert "mandate published on notes"

This reverts commit e49b583147748be73062acc92ea510f6f55a503a.

2 years agoMerge pull request 'Skip posts in indexer where publish date is nil' (#356) from...
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>
2 years agomandate published on notes
FloatingGhost [Fri, 9 Dec 2022 20:27:54 +0000 (20:27 +0000)]
mandate published on notes

fixes #356

2 years agoAdd URL and code to :not_found errors
FloatingGhost [Fri, 9 Dec 2022 20:13:31 +0000 (20:13 +0000)]
Add URL and code to :not_found errors

Ref #355

2 years agoUnderscore unused variable
FloatingGhost [Fri, 9 Dec 2022 20:04:48 +0000 (20:04 +0000)]
Underscore unused variable

2 years agoDo not pass transient undo-y activities through MRF
FloatingGhost [Fri, 9 Dec 2022 20:01:38 +0000 (20:01 +0000)]
Do not pass transient undo-y activities through MRF

2 years agoRemove FollowBotPolicy
FloatingGhost [Fri, 9 Dec 2022 19:59:27 +0000 (19:59 +0000)]
Remove FollowBotPolicy

2 years agoextend reject MRF to check if originating instance is blocked
FloatingGhost [Fri, 9 Dec 2022 19:57:29 +0000 (19:57 +0000)]
extend reject MRF to check if originating instance is blocked

2 years agoSkip posts in indexer where publish date is nil
sn0w [Thu, 8 Dec 2022 09:04:20 +0000 (10:04 +0100)]
Skip posts in indexer where publish date is nil

2 years agoMerge remote-tracking branch 'ilja/fix_tagpolicy_to_also_work_on_updates' into develop
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

2 years agomix format
FloatingGhost [Fri, 9 Dec 2022 10:24:38 +0000 (10:24 +0000)]
mix format

2 years agoFix MRF policies to also work with Update
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

2 years agoFix tagpolicy to also work with Update
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.

2 years agoMerge pull request 'Add YAML issue templates for bug and feat' (#353) from sfr/akkoma...
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