2
0
Commit Graph

308 Commits

Author SHA1 Message Date
Claire
df2611a10f Add initial support for ingesting and verifying remote quote posts (#34370) 2025-04-17 07:45:23 +00:00
Matt Jankowski
b4e56822c7 Fix Style/MapToHash cop (#34327) 2025-03-31 14:08:02 +00:00
Jonny Saunders
46e13dd81c Add Fetch All Replies Part 1: Backend (#32615)
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
Co-authored-by: jonny <j@nny.fyi>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Co-authored-by: Kouhai <66407198+kouhaidev@users.noreply.github.com>
2025-03-12 09:03:01 +00:00
Matt Jankowski
50013b10a5 Add Status::Visibility concern to hold visibility logic (#33578) 2025-01-14 14:32:57 +00:00
Matt Jankowski
477412d62a Use hash arguments to select when possible (Rails 7.2) (#32917) 2024-11-18 14:58:45 +00:00
Matt Jankowski
68b545ef33 Add Status.not_direct_visibility scope (#32065) 2024-11-07 10:32:33 +00:00
Jonny Saunders
9074c1fac9 Use likes and shares totalItems on status creations and updates (#32620) 2024-10-28 04:55:18 +00:00
Christian Schmidt
8cdc148167 Handle invalid visibility (#31571) 2024-09-12 13:29:55 +00:00
Claire
d41b43ed4f Limit attachments to MEDIA_ATTACHMENTS_LIMIT when returning posts through the API (#30932) 2024-07-08 07:41:50 +00:00
Eugen Rochko
128987eded Add support for fediverse:creator OpenGraph tag (#30398) 2024-05-29 01:34:33 +02:00
Matt Jankowski
c61e356475 Add Status::MEDIA_ATTACHMENTS_LIMIT configuration constant (#30433) 2024-05-27 09:49:44 +00:00
Claire
e5062b7135 Fix post deletion not being deferred when those are part of an account warning (#30163) 2024-05-06 09:52:34 +00:00
Matt Jankowski
88882fbbee Move Rails/HABTM cop out of todo (#30118) 2024-05-02 09:40:05 +00:00
Matt Jankowski
ac7f4d57bb Use composable query in Status.without_replies scope (#30086) 2024-04-29 09:55:37 +00:00
Matt Jankowski
caad1e2628 Add scope Status.distributable_visibility (#29950) 2024-04-16 13:16:54 +00:00
Matt Jankowski
3159c0a547 Add scope Status.list_eligible_visibility (#29951) 2024-04-16 09:17:03 +00:00
Claire
babbf6017d Remove caching in cache_collection (#29862) 2024-04-08 13:46:13 +00:00
Matt Jankowski
1d0a43f6a3 Use composable query in Status.not_domain_blocked_by_account scope (#29766) 2024-03-27 09:59:45 +00:00
Matt Jankowski
6c3e718b86 Remove setting of sensitive value (default false, not null) in Status model (#29589) 2024-03-14 13:56:59 +00:00
Matt Jankowski
0bc17a3d48 Use enum-generated public_visibility scope on Status (#28156) 2024-03-14 09:31:57 +00:00
Wolfgang Fournès
cfadb87077 Update enum syntax to use the new Rails 7.0 style (#29217) 2024-02-16 14:54:23 +00:00
Matt Jankowski
9d413cbaf8 Fix Rails/WhereExists cop in app/models (#28863) 2024-01-24 09:57:49 +00:00
Matt Jankowski
aaa6f2e930 Group common class_name options in associations (#28779) 2024-01-18 12:29:41 +00:00
Matt Jankowski
4ccba94489 Remove unused *_silenced_accounts scopes on Status (#28644) 2024-01-08 13:35:53 +00:00
Claire
2bf84b93d4 Fix media attachment order of remote posts (#28469) 2023-12-22 15:10:39 +00:00
Matt Jankowski
3918dc68c7 Use composite primary key for PreviewCardsStatus model (#28208) 2023-12-07 14:49:05 +00:00
Matt Jankowski
f70f39dd04 Add explicit dependent: nil to associations (#28169) 2023-12-01 15:52:47 +00:00
Matt Jankowski
440b80b2e7 Model concerns organization into module namespaces (#28149) 2023-12-01 11:00:41 +00:00
Eugen Rochko
0d14fcebae Change link previews to keep original URL from the status (#27312) 2023-11-13 09:58:28 +00:00
Claire
9e77ab7db2 Change private statuses index to index without crutches (#26713) 2023-08-29 17:51:13 +02:00
jsgoldstein
30c191aaa0 Add new public status index (#26344)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-08-24 16:40:04 +02:00
Claire
60b9fa641d Fix cached posts including stale stats (#26409) 2023-08-17 16:11:48 +02:00
Claire
d5bee37c57 Fix missing cached preview cards attributes (#26343) 2023-08-04 16:13:47 +02:00
Matt Jankowski
644c5fddd8 Refactor Status.tagged_with_all for brakeman SQL injection warning (#25941) 2023-07-13 15:52:37 +02:00
Matt Jankowski
0b249ebdb0 Extract StatusSafeReblogInsert concern from Status (#24821) 2023-05-04 14:06:20 +02:00
Matt Jankowski
b5c4b47746 Fix Rails/ActiveRecordCallbacksOrder cop (#24689) 2023-05-02 18:23:35 +02:00
Matt Jankowski
af824db398 Fix Rails/InverseOf cop (#24732) 2023-04-30 14:06:53 +02:00
Claire
f53d009778 Refactor Status._insert_record slightly and tighten the test around reblogs of discarded statuses (#24516) 2023-04-12 12:47:05 +02:00
Claire
2626097869 Fix Rails cache namespace being overriden with v2 for cached statuses (#24202) 2023-03-22 15:47:44 +01:00
Vyr Cossont
94cbd808b5 Webhooks for local status.create, status.update, account.update (#24133) 2023-03-19 07:47:54 +01:00
Christian Schmidt
bd047acc35 Replace Status#translatable? with language matrix in separate endpoint (#24037) 2023-03-16 11:07:24 +01:00
Christian Schmidt
5a8c651e8f Only offer translation for supported languages (#23879) 2023-03-03 21:06:31 +01:00
Nick Schonning
9909b4b653 Autofix Rubocop Rails/WhereEquals (#23759) 2023-02-21 03:20:56 +09:00
Nick Schonning
717683d1c3 Autofix Rubocop remaining Layout rules (#23679) 2023-02-20 06:58:28 +01:00
Nick Schonning
63e6353886 Autofix Rubocop Rails/EnumHash (#23737) 2023-02-20 05:00:36 +01:00
Nick Schonning
597767a9f7 Autofix Rubocop Rails/RedundantForeignKey (#23731) 2023-02-20 02:19:40 +01:00
Nick Schonning
2177daeae9 Autofix Rubocop Style/RedundantBegin (#23703) 2023-02-19 07:09:40 +09:00
Nick Schonning
ab7816a414 Autofix Rubocop Style/Lambda (#23696) 2023-02-18 12:39:00 +01:00
Claire
13a2abacc8 Add roles attribute to Account entities in REST API (#23255) 2023-01-25 19:55:40 +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