Commit graph

1147 commits

Author SHA1 Message Date
e0a4800871
Merge remote-tracking branch 'glitch/main' 2023-02-11 12:27:14 +09:00
Claire
87419f9307 Merge branch 'main' into glitch-soc/merge-upstream 2023-02-10 22:49:59 +01:00
Claire
0c9eac80d8
Fix unbounded recursion in post discovery (#23506)
* Add a limit to how many posts can get fetched as a result of a single request

* Add tests

* Always pass `request_id` when processing `Announce` activities

---------

Co-authored-by: nametoolong <nametoolong@users.noreply.github.com>
2023-02-10 22:16:37 +01:00
Claire
85558a5e18 Merge branch 'main' into glitch-soc/merge-upstream
Conflicts:
- `README.md`:
  Minor upstream change, our README is completely different.
  Kept ours.
- `lib/tasks/assets.rake`:
  glitch-soc has extra code to deal with its theming system,
  upstream changed a line that exists in glitch-soc.
  Applied upstream changes.
2023-02-09 12:46:12 +01:00
b8c4e131db
Merge remote-tracking branch 'glitch/main' 2023-02-08 21:56:46 +09:00
Nick Schonning
0592937264
Apply Rubocop Rails/WhereNot (#23448)
* Apply Rubocop Rails/WhereNot

* Update spec for where.not
2023-02-08 10:39:57 +01:00
Nick Schonning
0d1f192c54
Apply Rubocop Performance/BlockGivenWithExplicitBlock (#23441)
* Apply Rubocop Performance/BlockGivenWithExplicitBlock

* Unprefix used block parameter
2023-02-08 10:36:23 +01:00
Nick Schonning
203739dd3a
Apply Rubocop Performance/StringIdentifierArgument (#23444) 2023-02-08 02:36:20 +01:00
Nick Schonning
ef8988aef2
Apply Rubocop Performance/DoubleStartEndWith (#23442) 2023-02-08 10:06:48 +09:00
Nick Schonning
ed570050c6
Autofix Rails/EagerEvaluationLogMessage (#23429)
* Autofix Rails/EagerEvaluationLogMessage

* Update spec for debug block syntax
2023-02-07 03:44:36 +01:00
388300482c
Merge remote-tracking branch 'VyrCossont/search-all-visible-toots' 2023-02-04 19:57:12 +09:00
919292c7c3
Revert "Extended Search" to add in properly
This reverts commit 93a73ce9db.
2023-02-04 19:56:07 +09:00
b98a2f01be
add in hometown's norss
https://github.com/glitch-soc/mastodon/pull/2002
2023-02-04 19:26:59 +09:00
58847542c1
Merge remote-tracking branch 'glitch/main' 2023-02-04 19:02:39 +09:00
Claire
aeacebb3d7 Merge branch 'main' into glitch-soc/merge-upstream
Conflicts:
- `.github/workflows/build-image.yml`:
  Upstream updated `docker/build-push-action`, and we a different config
  for `docker/metadata-action` so the lines directly above were different,
  but it's not a real conflict.
  Upgraded `docker/build-push-action` as upstream did.
- `app/javascript/mastodon/features/compose/components/compose_form.js`:
  Upstream changed the codestyle near a line we had modified to accommodate
  configurable character count.
  Kept our change.
2023-02-03 19:23:27 +01:00
Eugen Rochko
4c919812b9
Change number of stored items in home feed from 400 to 800 (#23349) 2023-02-01 11:24:22 +01:00
Vyr Cossont
b342b12dbd Don't import if ES is not enabled 2023-01-30 21:18:15 -08:00
Vyr Cossont
c4a5e0ca0e
Advertise supported MIME types for statuses (#2090) 2023-01-20 13:57:32 +01:00
Claire
60abcb3c4c Merge branch 'main' into glitch-soc/merge-upstream
Conflicts:
- `config/i18n-tasks.yml`:
  Upstream added new ignored strings, glitch-soc has extra ignored strings
  because of the theming system.
  Added upstream's changes.
2023-01-18 17:38:11 +01:00
Claire
41517a4845
Fix spurious admin dashboard warning when using ElasticSearch 7.x (#23064)
Some 7.x ElasticSearch versions support some 6.x nodes, thus the version check
is inadequate. I am not sure there is a good way to check if a server
implements all the 7.x APIs, so check server version and minimum wire version
instead.
2023-01-18 16:21:48 +01:00
890e178828
Merge remote-tracking branch 'glitch/main' 2023-01-13 20:41:20 +09:00
Claire
3e63fcd4f0 Merge branch 'main' into glitch-soc/merge-upstream
Conflicts:
- `app/models/status.rb`:
  Minor upstream refactor moved hook definitions around,
  and glitch-soc has an extra `before_create`.
  Moved the `before_create` accordingly.
- `app/services/batched_remove_status_service.rb`:
  Minor upstream refactor changed a block in which glitch-soc
  had one extra call to handle direct timelines.
  Adapted changes to keep glitch-soc's extra call.
2023-01-12 10:15:46 +01:00
Markus Unterwaditzer
0c689b9d01
fix: allow verification when page size exceeds 1MB (using HTML5 parser) (#22879)
* fix: allow verification when page size exceeds 1MB
Truncates the page after 1MB instead

Closes #15316

* switch to HTML5 parser, fix rubocop errors

* undo rubocop fixes

Co-authored-by: Chris Zubak-Skees <chriszs@gmail.com>
2023-01-11 21:59:13 +01:00
Kaspar V
ae62e5fa53
Fix/remove calling private method with send in model (#22951)
* fix(status): remove send usage for private unlink_from_conversations

- make unlink_from_conversations public method
- rename unlink_from_conversations to unlink_from_conversations!
- fix send call on private method in statuses_vacuum and batched_remove_status_service

* fix(feeds_vacuum): replace find_in_batches with in_batches

because active record query results should be a little more efficient than
itterating with map and each. Postgres can grasp such lists of ids much quicker
than ruby can.
Will probably make allmost no difference, but cannot hurt either.
2023-01-11 21:57:24 +01:00
a76913f947
Merge remote-tracking branch 'glitch/main' 2023-01-06 13:56:00 +09:00
Claire
6c20dad201 Merge branch 'main' into glitch-soc/merge-upstream
Conflicts:
- `README.md`:
  Upstream updated its README, while we have a completely different one.
  Kept our README.
- `app/controllers/concerns/web_app_controller_concern.rb`:
  Conflict because of glitch-soc's theming system.
  Additionally, glitch-soc has different behavior regarding moved accounts.
  Ported some of the changes, but kept our overall behavior.
- `app/javascript/packs/admin.js`:
  Code changes actually applied to `app/javascript/core/admin.js`
2023-01-05 14:16:25 +01:00
Vyr Cossont
06f979098c
Check OpenSearch compatibility version instead of regular version (#22422)
Fixes #18535.
2023-01-05 13:44:31 +01:00
Jeong Arm
fdd1facba1
Fix home TL could contain post from who blocked me (#22849)
* Fix home tl contains post from who blocked me

* Add test

* Fix feed_manager's build_crutches

blocked_by was not includes status' owner

* Add test for status from I blocked

* Fix typo
2023-01-05 13:30:38 +01:00
Vyr Cossont
d1797b437f Add scope:classic filter 2023-01-01 16:31:40 -08:00
Vyr Cossont
30faf1f6da Add before: and after: filters 2023-01-01 15:30:13 -08:00
Vyr Cossont
a6ee508eb7 Add visibility: and is:sensitive filters 2022-12-30 15:58:34 -08:00
Vyr Cossont
bf34294fcb Add is:, has:, domain:, lang: search filters 2022-12-30 15:11:27 -08:00
Vyr Cossont
26d465175a Add sort operator, default to newest first 2022-12-30 12:48:23 -08:00
c6b561902b
more quote toot fixups from th 2022-12-28 21:16:52 +09:00
fecf2fa9ce
Emoji Reactions(hopefully) 2022-12-27 19:33:33 +09:00
93a73ce9db
Extended Search
https://github.com/VyrCossont/mastodon/pull/2
2022-12-27 16:52:26 +09:00
73706b289e
Add quote toots from glitch+treehouse 2022-12-27 16:06:06 +09:00
fef
7175d10935
handle incoming custom emoji reactions properly 2022-12-20 18:27:54 +01:00
fef
6d51a3de13
support Undo action for EmojiReaction 2022-12-20 18:27:54 +01:00
fef
bd026ad118
download remote custom emojis from reactions
Emoji reactions containing custom emojis from
remote instances were assumed to already have
been downloaded and stored in the database.
This might obviously not be the case.
2022-12-20 18:27:54 +01:00
fef
17d23d1c73
fix integer cast bug
Gotta love Rails.
2022-12-20 18:27:54 +01:00
fef
77491a8f22
sanitize setting for number of visible reactions
This is kind of a hack, but the lack of
validation for settings unfortunately makes it
necessary.
2022-12-20 18:27:54 +01:00
fef
7250a4f6c2
make number of visible reactions a vanilla setting
Reactions will be backported to the vanilla
flavour, which requires all related settings to
be accessible from the vanilla settings page
rather than the glitch specific settings modal.
2022-12-20 18:27:46 +01:00
fef
1b3df9b5e8
handle misskey reactions properly
misskey federates emoji reactions as likes.
2022-12-20 18:24:19 +01:00
fef
cc71e734c4
federate emoji reactions
this is kind of experimental, but it should work
in theory.  at least i tested it with a remove
akkoma instance and it didn't crash.
2022-12-20 18:22:05 +01:00
Vyr Cossont
3ea4a5ed29 Fix rubocop complaint 2022-12-19 13:17:29 -08:00
Vyr Cossont
9474bb27fc The id column is actually used: something in the bulk import requires that the primary key column be in the custom select 2022-12-18 22:39:08 -08:00
Vyr Cossont
87b5f7f485 Explicit ES import when AP status or account is created or updated 2022-12-18 16:21:32 -08:00
Claire
f3a4d57be1 Merge branch 'main' into glitch-soc/merge-upstream
Conflicts:
- `README.md`:
  Discarded upstream changes: we have our own README
- `app/controllers/follower_accounts_controller.rb`:
  Port upstream's minor refactoring
2022-12-15 20:25:25 +01:00
Claire
d13702ac06
Fix status cache hydration discrepancy (#19879) 2022-12-15 18:55:55 +01:00