1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-23 11:08:39 +09:00
Commit Graph

275 Commits

Author SHA1 Message Date
Matt Jankowski
5405bdd344
Remove unused E2EE messaging code () 2024-09-18 09:27:43 +00:00
Claire
c35ea59ee6
Fix security context sometimes not being added in LD-Signed activities () 2024-09-12 12:58:12 +00:00
Claire
2a704add90
Fix status processing failing halfway when a remote post has a malformed replies attribute () 2024-08-02 10:39:12 +00:00
Claire
ced5e853c7
Fix duplicate orderedItems in user archive's outbox.json () 2024-07-22 08:56:05 +00:00
Claire
d3a056adfd
Merge pull request from GHSA-xjvf-fm67-4qc3 2024-07-04 16:45:52 +02:00
Matt Jankowski
9cc4040308
Extract COMMENT_SIZE_LIMIT constant in AP::Activity::Flag class () 2024-06-10 15:23:55 +00:00
Matt Jankowski
c61e356475
Add Status::MEDIA_ATTACHMENTS_LIMIT configuration constant () 2024-05-27 09:49:44 +00:00
Matt Jankowski
9b5055d34d
Fix Style/SuperArguments cop () 2024-05-24 08:36:21 +00:00
Claire
133d98fb25
Normalize language code of incoming posts () 2024-05-23 17:28:18 +00:00
Claire
1726085db5
Merge pull request from GHSA-3fjr-858r-92rw
* Fix insufficient origin validation

* Bump version to 4.3.0-alpha.1
2024-02-01 15:56:46 +01:00
KMY(雪あすか)
9a8293f58d
Fix process of receiving posts with bearcaps is not working () 2024-01-25 10:37:09 +00:00
Matt Jankowski
1290fede65
Fix Rails/WhereExists cop in app/lib () 2024-01-24 11:51:09 +00:00
Claire
1070804a1a
Fix RedownloadMediaWorker not being called on transient S3 failure () 2024-01-12 17:00:17 +00:00
Claire
2bf84b93d4
Fix media attachment order of remote posts () 2023-12-22 15:10:39 +00:00
Claire
963354978a
Add Account#unavailable? and Account#permanently_unavailable? aliases () 2023-11-30 15:43:26 +00:00
Claire
c0989b78f8
Fix incoming status creation date not being restricted to standard ISO8601 () 2023-11-06 09:28:14 +00:00
Claire
13688539bc
Fix processing LDSigned activities from actors with unknown public keys () 2023-10-20 10:45:46 +02:00
Claire
3262d1f1b6
Fix incorrect serialization of regional languages in contentMap () 2023-10-06 17:46:04 +02:00
Claire
6273416292
Fix post edits not being forwarded as expected () 2023-09-15 19:54:32 +02:00
Claire
9ed0c91a37
Add auto-refresh of accounts we get new messages/edits of () 2023-08-21 16:09:26 +02:00
Claire
6c3c5bbbc3
Fix crash when processing Flag activity with no status () 2023-07-27 16:11:56 +02:00
Matt Jankowski
2e1391fdd2
Fix Naming/MemoizedInstanceVariableName cop () 2023-07-12 10:08:51 +02:00
Eugen Rochko
93e8a15415
Add forwarding of reported replies to servers being replied to () 2023-07-08 20:00:02 +02:00
Emelia Smith
19f9098551
Allow reports with long comments from remote instances, but truncate () 2023-05-22 13:15:21 +02:00
Matt Jankowski
668a19a2f3
Fix Performance/DeletePrefix cop () 2023-05-02 21:07:45 +02:00
Matt Jankowski
f1c1dd0118
Rename with_lock to with_redis_lock to avoid confusion with ActiveRecord's method () 2023-05-02 18:16:07 +02:00
Matt Jankowski
0a5f0a8b20
Remove instance variables from helper usage () 2023-04-23 22:35:54 +02:00
Claire
1d0ad558ff
Change sidekiq-bulk's batch size from 10,000 to 1,000 jobs in one Redis call () 2023-03-15 03:45:15 +01:00
Nick Schonning
0cfdd1a401
Enable Rubocop Style/StringConcatenation defaults () 2023-02-22 09:54:36 +09:00
Nick Schonning
717683d1c3
Autofix Rubocop remaining Layout rules () 2023-02-20 06:58:28 +01:00
Nick Schonning
2177daeae9
Autofix Rubocop Style/RedundantBegin () 2023-02-19 07:09:40 +09:00
Nick Schonning
e2a3ebb271
Autofix Rubocop Style/IfUnlessModifier () 2023-02-18 12:37:47 +01:00
Nick Schonning
669f6d2c0a
Run rubocop formatting except line length () 2023-02-18 06:56:20 +09:00
Claire
0c9eac80d8
Fix unbounded recursion in post discovery ()
* 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
Nick Schonning
ed570050c6
Autofix Rails/EagerEvaluationLogMessage ()
* Autofix Rails/EagerEvaluationLogMessage

* Update spec for debug block syntax
2023-02-07 03:44:36 +01:00
Claire
c8849d6cee
Fix unbounded recursion in account discovery ()
* Fix trying to fetch posts from other users when fetching featured posts

* Rate-limit discovery of new subdomains

* Put a limit on recursively discovering new accounts
2022-12-07 00:15:24 +01:00
Takeshi Umeda
1d34eff63f
Add featured tag add/remove activity handler () 2022-10-22 11:49:41 +02:00
Claire
8cf7006d4e
Refactor ActivityPub handling to prepare for non-Account actors ()
* Move ActivityPub::FetchRemoteAccountService to ActivityPub::FetchRemoteActorService

ActivityPub::FetchRemoteAccountService is kept as a wrapper for when the actor is
specifically required to be an Account

* Refactor SignatureVerification to allow non-Account actors

* fixup! Move ActivityPub::FetchRemoteAccountService to ActivityPub::FetchRemoteActorService

* Refactor ActivityPub::FetchRemoteKeyService to potentially return non-Account actors

* Refactor inbound ActivityPub payload processing to accept non-Account actors

* Refactor inbound ActivityPub processing to accept activities relayed through non-Account

* Refactor how Account key URIs are built

* Refactor Request and drop unused key_id_format parameter

* Rename ActivityPub::Dereferencer `signature_account` to `signature_actor`
2022-09-21 22:45:57 +02:00
Takeshi Umeda
9c571a95db
Fix missing , () 2022-06-23 23:10:03 +02:00
Yamagishi Kazutoshi
c3fac61f56
Fix Mastodon::RaceConditionError that occurs when external status is reblogged ()
* Fix `Mastodon::RaceConditionError` that occurs when external status is reblogged

* Replace to `@object`
2022-05-16 01:00:09 +02:00
Eugen Rochko
6cf57c6765
Refactor how Redis locks are created ()
* Refactor how Redis locks are created

* Fix autorelease duration on account deletion lock
2022-05-13 00:02:35 +02:00
Eugen Rochko
3917353645
Fix single Redis connection being used across all threads ()
* Fix single Redis connection being used across all Sidekiq threads

* Fix tests
2022-04-28 17:47:34 +02:00
Claire
0360135d4d
Fix PeerTube videos appearing with an erroneous “Edited at” marker ()
* Fix PeerTube videos appearing with an erroneous “Edited at” marker

PeerTube videos have an `updated` field equal to `published`.
When processing an incoming activity that has the same value for `updated` and
`published`, assume this doesn't represent an actual edit.

* Please CodeClimate
2022-04-26 21:25:26 +02:00
Eugen Rochko
cefa526c6d
Refactor formatter ()
* Refactor formatter

* Move custom emoji pre-rendering logic to view helpers

* Move more methods out of Formatter

* Fix code style issues

* Remove Formatter

* Add inline poll options to RSS feeds

* Remove unused helper method

* Fix code style issues

* Various fixes and improvements

* Fix test
2022-03-26 02:53:34 +01:00
Eugen Rochko
71f2b95106
Fix edits with no actual changes being allowed ()
* Fix edits with no actual changes being allowed locally

* Fix edits with no actual changes being allowed through ActivityPub

* Fix false positive changes caused by description processing in model

* Fix not recording poll expiration update

* Fix test

* Revert changes to ProcessStatusUpdateService

* Various fixes and improvements

* Fix code style issues

* Various changes and improvements

* Add guard clause
2022-03-26 00:38:44 +01:00
Claire
c9b3cf8510
Fix searching already-known converted activities by URL ()
Fixes 
2022-03-17 00:46:49 +01:00
Eugen Rochko
ddbe906c25
Fix not updating a status when newer version is fetched manually () 2022-03-12 09:11:36 +01:00
Eugen Rochko
2ea754b861
Fix duplicate notifications being possible after poll expiration () 2022-03-04 01:06:33 +01:00
Eugen Rochko
04c3ac896a
Fix infinite re-forwarding of update activities temporarily () 2022-03-04 01:00:13 +01:00
Eugen Rochko
0dc57ab6ed
Fix status updates not being forwarded like deletes through ActivityPub ()
Fix 
2022-02-26 17:51:59 +01:00