Skip to content
Snippets Groups Projects
  1. Aug 28, 2020
    • Akihiko Odaki's avatar
      Introduce ApplicationController#cache_collection_paginated_by_id (#14677) · 64ef37b8
      Akihiko Odaki authored
      * Replace incorrect use of distinct with group
      
      Some uses of ActiveRecord::QueryMethods#distinct pass field names but they
      are incorrect for the current version of Rails.
      
      ActiveRecord::QueryMethods#group provides the expected behavior and
      benefits performance. See commit 6da24aad4cafdef8d8a2c92bac2002a5fc2fe9c8.
      
      * Introduce ApplicationController#cache_collection_paginated_by_id
      
      ApplicationController#cache_collection_paginated_by_id fuses
      ApplicationController#cache_collection and Paginable.paginate_by_id.
      
      An advantage of this method is that it prevents from modifying scope which
      Paginable.paginate_by_id may provide.
      ApplicationController#cache_collection always return an array and there
      is no possibility of the scope modification. It is also clear for a
      programmer, considering the implication of "cache".
      
      This method can also emit more efficient queries by using
      Cacheable.cache_ids before calling Paginable.paginate_by_id.
      Unverified
      64ef37b8
  2. May 03, 2020
  3. Jul 16, 2019
  4. Jul 11, 2019
    • Eugen Rochko's avatar
      Add ActivityPub secure mode (#11269) · 5bf67ca9
      Eugen Rochko authored
      * Add HTTP signature requirement for served ActivityPub resources
      
      * Change `SECURE_MODE` to `AUTHORIZED_FETCH`
      
      * Add 'Signature' to 'Vary' header and improve code style
      
      * Improve code style by adding `public_fetch_mode?` method
      Unverified
      5bf67ca9
  5. Jul 08, 2019
  6. Jun 05, 2019
    • ThibG's avatar
      Cleanup various controllers (#10972) · cac91105
      ThibG authored
      * Remove skip_session! as it is not supported in Rails 5
      
      * Minor cleanup in StreamEntriesController
      
      * Remove redundant mark_cacheable! calls
      cac91105
  7. Apr 03, 2019
  8. May 04, 2018
  9. Mar 04, 2018
    • Eugen Rochko's avatar
      Federate pinned statuses over ActivityPub (#6610) · 9110db41
      Eugen Rochko authored
      * Federate pinned statuses over ActivityPub
      
      * Display pinned toots in web UI
      
      Fix #6117
      
      * Fix migration
      
      * Fix tests
      
      * Update outbox_serializer.rb
      
      * Update remove_serializer.rb
      
      * Update add_serializer.rb
      
      * Update fetch_featured_collection_service.rb
      Unverified
      9110db41
  10. Feb 02, 2018
  11. Aug 14, 2017
  12. Jul 16, 2017
  13. Jul 15, 2017
    • Eugen Rochko's avatar
      Improve ActivityPub representations (#3844) · 8c45cd0e
      Eugen Rochko authored
      * Improve webfinger templates and make tests more flexible
      
      * Clean up AS2 representation of actor
      
      * Refactor outbox
      
      * Create activities representation
      
      * Add representations of followers/following collections, do not redirect /users/:username route if format is empty
      
      * Remove unused translations
      
      * ActivityPub endpoint for single statuses, add ActivityPub::TagManager for better
      URL/URI generation
      
      * Add ActivityPub::TagManager#to
      
      * Represent all attachments as Document instead of Image/Video specifically
      (Because for remote ones we may not know for sure)
      
      Add mentions and hashtags representation to AP notes
      
      * Add AP-resolvable hashtag URIs
      
      * Use ActiveModelSerializers for ActivityPub
      
      * Clean up unused translations
      
      * Separate route for object and activity
      
      * Adjust cc/to matrices
      
      * Add to/cc to activities, ensure announce activity embeds target status and
      not the wrapper status, add "id" to all collections
      8c45cd0e
Loading