Commit Graph

15036 Commits

Author SHA1 Message Date
FloatingGhost dcf58a3c53 Do not pass transient undo-y activities through MRF 2022-12-09 20:01:38 +00:00
FloatingGhost 9db4c2429f Remove FollowBotPolicy 2022-12-09 19:59:27 +00:00
FloatingGhost 6f83ae27aa extend reject MRF to check if originating instance is blocked 2022-12-09 19:57:29 +00:00
sn0w 4c0911592b
Skip posts in indexer where publish date is nil
ci/woodpecker/pr/woodpecker Pipeline is pending Details
2022-12-09 20:56:39 +01:00
FloatingGhost d5828f1c5e Merge remote-tracking branch 'ilja/fix_tagpolicy_to_also_work_on_updates' into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-09 10:31:22 +00:00
FloatingGhost 0eaec57d3f mix format
ci/woodpecker/push/woodpecker Pipeline is pending Details
2022-12-09 10:24:38 +00:00
ilja 1f863f0a36 Fix MRF policies to also work with Update
ci/woodpecker/pr/woodpecker Pipeline failed Details
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
2022-12-08 23:22:05 +01:00
ilja ce517ff4e5 Fix tagpolicy to also work with Update
ci/woodpecker/pr/woodpecker Pipeline is pending Details
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.
2022-12-08 21:53:42 +01:00
floatingghost 9addd8f414 Merge pull request 'Add YAML issue templates for bug and feat' (#353) from sfr/akkoma:issue-template into develop
ci/woodpecker/push/woodpecker Pipeline is pending Details
Reviewed-on: #353
2022-12-08 18:40:45 +00:00
Sol Fisher Romanoff 067bd17e1e
Add YAML issue templates for bug and feat
ci/woodpecker/pr/woodpecker Pipeline is pending Details
2022-12-08 20:16:59 +02:00
floatingghost 104d8dcc1f Update 'ISSUE_TEMPLATE.md'
ci/woodpecker/push/woodpecker Pipeline is pending Details
2022-12-07 22:37:23 +00:00
floatingghost 3f1c84d300 Add issue template
ci/woodpecker/push/woodpecker Pipeline is pending Details
2022-12-07 22:27:00 +00:00
FloatingGhost 4e4bd24813 Add misskey markdown to format suggestions
ci/woodpecker/push/woodpecker Pipeline is pending Details
Fixes #345
2022-12-07 15:39:19 +00:00
FloatingGhost cb3ccf5f47 Add check for null reply_to_user
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-07 13:41:12 +00:00
FloatingGhost 1afba64464 Redirect to standard FE if logged in
ci/woodpecker/push/woodpecker Pipeline is pending Details
2022-12-07 13:35:00 +00:00
FloatingGhost 221a95b860 Document custom.css
ci/woodpecker/push/woodpecker Pipeline is pending Details
2022-12-07 11:45:53 +00:00
FloatingGhost c7369d6d03 GOOGLE
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-07 11:41:24 +00:00
sfr 7c4b415929 static-fe overhaul (#236)
ci/woodpecker/push/woodpecker Pipeline was successful Details
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: #236
Co-authored-by: sfr <sol@solfisher.com>
Co-committed-by: sfr <sol@solfisher.com>
2022-12-07 11:20:53 +00:00
floatingghost 09326ffa56 Diagnostics tasks (#348)
ci/woodpecker/push/woodpecker Pipeline is pending Details
a bunch of ways to get query plans to help with debugging

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #348
2022-12-07 11:12:34 +00:00
floatingghost 4f2f2c9125 Merge pull request 'Small improvements to the Gentoo installation isntructions' (#335) from timorl/akkoma:i-use-gentoo-btw into develop
ci/woodpecker/push/woodpecker Pipeline is pending Details
Reviewed-on: #335
2022-12-07 11:07:06 +00:00
ilja fdf33392b3 DOCS: backup restore improvements (#332)
ci/woodpecker/push/woodpecker Pipeline is pending Details
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: #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>
2022-12-07 11:05:35 +00:00
FloatingGhost b058df3faa Allow dashes in domain name search
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-06 10:57:10 +00:00
FloatingGhost 8e5a88edf7 update default favicon
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-05 13:47:52 +00:00
FloatingGhost b70a60c6c5 Doc branding
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-05 13:45:36 +00:00
floatingghost c62e1e3ad5 varnish config/docs (#342)
ci/woodpecker/push/woodpecker Pipeline failed Details
Co-authored-by: Mark Felder <feld@feld.me>
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #342
2022-12-05 13:39:27 +00:00
floatingghost d55de5debf Remerge of hashtag following (#341)
ci/woodpecker/push/woodpecker Pipeline was successful Details
this time with less idiot

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #341
2022-12-05 12:58:48 +00:00
floatingghost ec6bf8c3f7 revert 4a94c9a31e
ci/woodpecker/push/woodpecker Pipeline is pending Details
revert Add ability to follow hashtags (#336)

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #336
2022-12-04 20:04:09 +00:00
floatingghost 4c3971aebd Add changelog entry for hashtag following
ci/woodpecker/push/woodpecker Pipeline is pending Details
2022-12-04 18:35:04 +00:00
floatingghost 4a94c9a31e Add ability to follow hashtags (#336)
ci/woodpecker/push/woodpecker Pipeline was successful Details
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #336
2022-12-04 17:36:59 +00:00
timorl d923cb96b1
Small improvements to the Gentoo installation isntructions
ci/woodpecker/pr/woodpecker Pipeline is pending Details
2022-12-04 16:37:49 +01:00
floatingghost 6b882a2c0b Purge Rejected Follow requests in daily task (#334)
ci/woodpecker/push/woodpecker Pipeline was successful Details
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #334
2022-12-03 23:17:43 +00:00
floatingghost 0c2c057c75 Merge pull request 'Manually define PATH for Arch Linux users in systemd unit' (#333) from r3g_5z/akkoma:arch-perl-modules into develop
ci/woodpecker/push/woodpecker Pipeline is pending Details
Reviewed-on: #333
2022-12-03 22:24:34 +00:00
r3g_5z 04b5c711be
Manually define PATH for Arch Linux users in systemd unit
ci/woodpecker/pr/woodpecker Pipeline is pending Details
Signed-off-by: r3g_5z <june@girlboss.ceo>
2022-12-03 14:17:54 -05:00
FloatingGhost 1409f91d50 Add maskable to logo
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-02 12:00:56 +00:00
floatingghost 94b469cab0 Merge pull request 'Add PWA config' (#329) from pwa into develop
ci/woodpecker/push/woodpecker Pipeline is pending Details
Reviewed-on: #329
2022-12-02 11:13:29 +00:00
floatingghost 8d6cc6cb65 Resolve follow activity from accept/reject without ID (#328)
ci/woodpecker/push/woodpecker Pipeline is pending Details
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #328
2022-12-02 11:12:37 +00:00
FloatingGhost b33e548e8d still use mask
ci/woodpecker/push/woodpecker Pipeline is pending Details
ci/woodpecker/pr/woodpecker Pipeline is pending Details
2022-12-02 11:10:35 +00:00
FloatingGhost bbf2e3f445 Add PWA info 2022-12-02 11:10:35 +00:00
floatingghost db60640c5b Fixing up deletes a bit (#327)
ci/woodpecker/push/woodpecker Pipeline failed Details
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #327
2022-12-01 15:00:53 +00:00
floatingghost 083368d61a Merge pull request 'docs: Remove quarantine section' (#324) from norm/akkoma:remove-quarantine into develop
ci/woodpecker/push/woodpecker Pipeline is pending Details
Reviewed-on: #324
2022-12-01 12:59:50 +00:00
Norm b188ac3f21 docs: Remove quarantine section
ci/woodpecker/pr/woodpecker Pipeline is pending Details
Quarantining was deprecated back in 2022.08.

Also added that SimplePolicy's `reject` also prevents outbound federation to servers listed there.
2022-11-29 18:31:24 +00:00
floatingghost 0cfd5b4e89 Add ability to set a default post expiry (#321)
ci/woodpecker/push/woodpecker Pipeline is pending Details
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #321
2022-11-28 13:34:54 +00:00
floatingghost 2d019e14e3 Merge pull request 'Spin off imports into n oban jobs' (#319) from spin-off-imports into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #319
2022-11-27 21:59:41 +00:00
FloatingGhost ee7059c9cf Spin off imports into n oban jobs
ci/woodpecker/push/woodpecker Pipeline is pending Details
ci/woodpecker/pr/woodpecker Pipeline failed Details
2022-11-27 21:45:41 +00:00
floatingghost 8d17287e2d Merge pull request 'Delete 'installation/download-mastofe-build.sh'' (#317) from norm/akkoma:delete-download-mastofe-build.sh into develop
ci/woodpecker/push/woodpecker Pipeline is pending Details
Reviewed-on: #317
2022-11-27 20:56:54 +00:00
Norm 8557188ced
Delete 'installation/download-mastofe-build.sh'
ci/woodpecker/pr/woodpecker Pipeline is pending Details
AFAIK, this isn't being used anymore, and it's outdated anyways.
2022-11-26 19:32:09 -05:00
FloatingGhost a8f3cf6563 Merge branch 'normalise-markup-by-default' into develop
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-26 21:16:21 +00:00
FloatingGhost 5bb95256ee weirdly no, images should not have classes
ci/woodpecker/push/woodpecker Pipeline is pending Details
2022-11-26 21:15:10 +00:00
floatingghost 98a21debf9 normalise markup by default (#316)
ci/woodpecker/push/woodpecker Pipeline failed Details
why was this _not_ default?

honestly i'm surprised pleroma hasn't exploded yet

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #316
2022-11-26 21:06:20 +00:00
FloatingGhost 2fd45e0cb6 document normalizemarkup and inlinequote MRFs
ci/woodpecker/push/woodpecker Pipeline is pending Details
ci/woodpecker/pr/woodpecker Pipeline is pending Details
2022-11-26 21:05:04 +00:00