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
    • Akihiko Odaki's avatar
      Replace incorrect use of distinct with group (#14675) · e26e7a1c
      Akihiko Odaki authored
      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.
      Unverified
      e26e7a1c
  2. Mar 06, 2020
  3. Sep 27, 2019
  4. Aug 30, 2019
  5. Aug 08, 2019
  6. Apr 07, 2019
    • Eugen Rochko's avatar
      Improve blocked view of profiles (#10491) · 67b3b62b
      Eugen Rochko authored
      * Revert "Fix filtering of favourited_by, reblogged_by, followers and following (#10447)"
      
      This reverts commit 12054406.
      
      * Revert "Hide blocking accounts from blocked users (#10442)"
      
      This reverts commit 62bafa20.
      
      * Improve blocked view of profiles
      
      - Change "You are blocked" to "Profile unavailable"
      - Hide following/followers in API when blocked
      - Disable follow button and show "Profile unavailable" on public profile as well
      Unverified
      67b3b62b
  7. Apr 01, 2019
    • ThibG's avatar
      Hide blocking accounts from blocked users (#10442) · 62bafa20
      ThibG authored
      * Revert "Add indication that you have been blocked in web UI (#10420)"
      
      This reverts commit bd02ec6d.
      
      * Revert "Add `blocked_by` relationship to the REST API (#10373)"
      
      This reverts commit 9745de88.
      
      * Hide blocking accounts from search results
      
      * Filter blocking accouts from account followers
      
      * Filter blocking accouts from account's following accounts
      
      * Filter blocking accounts from “reblogged by” and “favourited by” lists
      
      * Remove blocking account from URL search
      
      * Return 410 on trying to fetch user data from a user who blocked us
      
      * Return 410 in /api/v1/account/statuses for suspended or blocking accounts
      
      * Fix status filtering when performing URL search
      
      * Restore some React improvements
      
      Restore some cleanup from bd02ec6d
      
      * Refactor by adding `without_blocking` scope
      62bafa20
  8. Mar 13, 2019
  9. Feb 26, 2019
  10. Feb 04, 2019
    • Eugen Rochko's avatar
      Add featured hashtags to profiles (#9755) · 364f2ff9
      Eugen Rochko authored
      * Add hashtag filter to profiles
      
      GET /@:username/tagged/:hashtag
      GET /api/v1/accounts/:id/statuses?tagged=:hashtag
      
      * Display featured hashtags on public profile
      
      * Use separate model for featured tags
      
      * Update featured hashtag counters on-write
      
      * Limit featured tags to 10
      Unverified
      364f2ff9
  11. Dec 27, 2018
  12. Dec 20, 2018
  13. Sep 28, 2018
    • Eugen Rochko's avatar
      Support min_id-based pagination in REST API (#8736) · f0fff3eb
      Eugen Rochko authored
      * Allow min_id pagination in Feed#get
      
      * Add min_id pagination to home and list timeline APIs
      
      * Add min_id pagination to account statuses, public and tag APIs
      
      * Remove unused stub in reports API
      
      * Use min_id pagination in notifications, favourites, and fix order
      
      * Fix HomeFeed#from_database not using paginate_by_id
      Unverified
      f0fff3eb
  14. Jul 05, 2018
    • Eugen Rochko's avatar
      Add more granular OAuth scopes (#7929) · 1f6ed4f8
      Eugen Rochko authored
      * Add more granular OAuth scopes
      
      * Add human-readable descriptions of the new scopes
      
      * Ensure new scopes look good on the app UI
      
      * Add tests
      
      * Group scopes in screen and color-code dangerous ones
      
      * Fix wrong extra scope
      Unverified
      1f6ed4f8
  15. May 16, 2018
  16. Apr 02, 2018
  17. Mar 10, 2018
  18. Mar 01, 2018
  19. Aug 24, 2017
  20. Jul 07, 2017
  21. Jun 07, 2017
  22. May 31, 2017
Loading