Skip to content
Extraits de code Groupes Projets
  1. fév. 28, 2018
  2. fév. 24, 2018
  3. fév. 21, 2018
    • Eugen Rochko's avatar
      Focal points (#6520) · 90f12f2e
      Eugen Rochko a rédigé
      * Add focus param to media API, center thumbnails on focus point
      
      * Add UI for setting a focal point
      
      * Improve focal point icon on upload item
      
      * Use focal point in upload preview
      
      * Add focalPoint property to ActivityPub
      
      * Don't show focal point button for non-image attachments
      Non vérifiée
      90f12f2e
    • Eugen Rochko's avatar
      Fix avatar and header issues by using custom geometry detector (#6515) · a7171af0
      Eugen Rochko a rédigé
      * Fix avatar and header issues by using custom geometry detector
      
      Revert a part of #6508. The file passed to dynamic styles method
      was not actually a file, but an instance of Paperclip::Attachment,
      which broke all styles by always returning {} from the method.
      
      One problem with GIF avatars was that Paperclip::GeometryDetector
      reported wrong dimensions for them, e.g. 120x120 GIF avatar would
      for some reason be detected as 120x53. By writing our own geometry
      parser, we can use FastImage, which also happens to be faster than
      ImageMagick, to detect image dimensions, which are also correct.
      
      Unfortunately, this PR does not implement skipping a `convert`
      entirely if the dimensions are already correct, as I found no easy
      way to write that behaviour into Paperclip without rewriting the
      Paperclip::Thumbnail class.
      
      * Only invoke convert if dimension or format needs to be changed
      Non vérifiée
      a7171af0
  4. fév. 17, 2018
  5. fév. 09, 2018
    • Eugen Rochko's avatar
      Full-text search for authorized statuses (#6423) · 3ebc0ad4
      Eugen Rochko a rédigé
      * Add full-text search for authorized statuses
      
      - Search API will return statuses that match the query
      - Only for logged in users
      - Only if you are author of the status,
      - Or you were mentioned in it
      - Or you favourited or reblogged it
      - Configuration over `ES_ENABLED`, `ES_HOST`, `ES_PORT`, `ES_PREFIX`
      - Run `rails chewy:deploy` to create & populate index
      
      Fix #5880
      Fix #4293
      Fix #1152
      
      * Add commented out docker-compose configuration for ES container
      
      * Optimize index import, filter search results
      
      * Add basic normalization to the index
      
      * Add better stemming and normalization to the index
      
      * Skip webfinger request if search query includes both @ and a space
      
      * Fix code style
      
      * Visually separate search result sections
      
      * Fix code style issues
      Non vérifiée
      3ebc0ad4
  6. fév. 08, 2018
  7. fév. 02, 2018
  8. jan. 19, 2018
  9. jan. 09, 2018
  10. jan. 08, 2018
  11. jan. 07, 2018
  12. jan. 03, 2018
  13. jan. 02, 2018
  14. déc. 29, 2017
    • Eugen Rochko's avatar
      Add more instance stats APIs (#6125) · 38fc1b49
      Eugen Rochko a rédigé
      * Add GET /api/v1/instance/peers API to reveal known domains
      
      * Add GET /api/v1/instance/activity API
      
      * Make new APIs disableable, exclude private statuses from activity stats
      
      * Fix code style issue
      
      * Fix week timestamps
      Non vérifiée
      38fc1b49
  15. déc. 27, 2017
  16. déc. 15, 2017
  17. déc. 13, 2017
  18. déc. 10, 2017
  19. déc. 06, 2017
  20. nov. 30, 2017
    • Eugen Rochko's avatar
      Add semi-support for Video/Image objects in ActivityPub (#5848) · 4c6b5dbe
      Eugen Rochko a rédigé
      * Add semi-support for Video/Image objects in ActivityPub
      
      Video and Image objects will create corresponding status records
      with manually crafted text contents (title + URL)
      
      * Extract html-url-finding logic into JsonLdHelper
      
      * Fallback to id when url missing, extract supported object types
      Non vérifiée
      4c6b5dbe
    • Eugen Rochko's avatar
      Fix too many forwards (#5854) · 85e97eca
      Eugen Rochko a rédigé
      * Avoid sending explicit Undo->Announce when original deleted
      
      * Do not forward a reply back to the server that sent it
      
      * Deduplicate inboxes of rebloggers' followers for delete forwarding
      
      * Adjust test
      
      * Fix wrong class, bad SQL, wrong variable, outdated comment
      Non vérifiée
      85e97eca
  21. nov. 28, 2017
    • aschmitz's avatar
      Allow hiding of reblogs from followed users (#5762) · eeaec398
      aschmitz a rédigé
      * Allow hiding of reblogs from followed users
      
      This adds a new entry to the account menu to allow users to hide
      future reblogs from a user (and then if they've done that, to show
      future reblogs instead).
      
      This does not remove or add historical reblogs from/to the user's
      timeline; it only affects new statuses.
      
      The API for this operates by sending a "reblogs" key to the follow
      endpoint. If this is sent when starting a new follow, it will be
      respected from the beginning of the follow relationship (even if
      the follow request must be approved by the followee). If this is
      sent when a follow relationship already exists, it will simply
      update the existing follow relationship. As with the notification
      muting, this will now return an object ({reblogs: [true|false]}) or
      false for each follow relationship when requesting relationship
      information for an account. This should cause few issues due to an
      object being truthy in many languages, but some modifications may
      need to be made in pickier languages.
      
      Database changes: adds a show_reblogs column (default true,
      non-nullable) to the follows and follow_requests tables. Because
      these are non-nullable, we use the existing MigrationHelpers to
      perform this change without locking those tables, although the
      tables are likely to be small anyway.
      
      Tests included.
      
      See also <https://github.com/glitch-soc/mastodon/pull/212>.
      
      * Rubocop fixes
      
      * Code review changes
      
      * Test fixes
      
      This patchset closes #648 and resolves #3271.
      
      * Rubocop fix
      
      * Revert reblogs defaulting in argument, fix tests
      
      It turns out we needed this for the same reason we needed it in muting:
      if nil gets passed in somehow (most usually by an API client not passing
      any value), we need to detect and handle it.
      
      We could specify a default in the parameter and then also catch nil, but
      there's no great reason to duplicate the default value.
      eeaec398
  22. nov. 18, 2017
    • Eugen Rochko's avatar
      Profile redirect notes (#5746) · 58cede48
      Eugen Rochko a rédigé
      * Serialize moved accounts into REST and ActivityPub APIs
      
      * Parse federated moved accounts from ActivityPub
      
      * Add note about moved accounts to public profiles
      
      * Add moved account message to web UI
      
      * Fix code style issues
      Non vérifiée
      58cede48
  23. nov. 17, 2017
    • Eugen Rochko's avatar
      Lists (#5703) · 24cafd73
      Eugen Rochko a rédigé
      * Add structure for lists
      
      * Add list timeline streaming API
      
      * Add list APIs, bind list-account relation to follow relation
      
      * Add API for adding/removing accounts from lists
      
      * Add pagination to lists API
      
      * Add pagination to list accounts API
      
      * Adjust scopes for new APIs
      
      - Creating and modifying lists merely requires "write" scope
      - Fetching information about lists merely requires "read" scope
      
      * Add test for wrong user context on list timeline
      
      * Clean up tests
      Non vérifiée
      24cafd73
    • Eugen Rochko's avatar
      Fix some rubocop style issues (#5730) · 3e90987c
      Eugen Rochko a rédigé
      3e90987c
  24. nov. 16, 2017
    • Renato "Lond" Cerqueira's avatar
      Improve language filter (#5724) · ad207456
      Renato "Lond" Cerqueira a rédigé
      * Scrub text of html before detecting language.
      
      * Detect language on statuses coming from activitypub.
      
      * Fix rubocop comments.
      
      * Remove custom emoji from text before language detection
      ad207456
  25. nov. 07, 2017
  26. oct. 27, 2017
  27. oct. 17, 2017
  28. oct. 16, 2017
    • Eugen Rochko's avatar
      Keep references to all reblogs of a status on home feed (#5419) · 34118169
      Eugen Rochko a rédigé
      * Keep references to all reblogs of a status on home feed
      
      When inserting reblog: Add to set of reblogs of this status on
      the feed, if original status was present in the feed, add it to
      that set as well.
      
      When removing a reblog: Remove it from that set. Take random
      remaining item from the set. If one exists, re-insert it into feed,
      otherwise do not re-insert anything.
      
      Fix #4210
      
      * When original is removed, toss out reblog references
      34118169
    • Eugen Rochko's avatar
      Ensure that feed renegeration restores non-zero items (#5409) · 7cc71748
      Eugen Rochko a rédigé
      Fix #5398
      
      Ordering the home timeline query by account_id meant that the first
      100 items belonged to a single account. There was also no reason to
      reverse-iterate over the statuses. Assuming the user accesses the
      feed halfway-through, it's better to have recent statuses already
      available at the top. Therefore working from newer->older is ideal.
      
      If the algorithm ends up filtering all items out during last-mile
      filtering, repeat again a page further. The algorithm terminates
      when either at least one item has been added, or if the database
      query returns nothing (end of data reached)
      7cc71748
    • unarist's avatar
      Fix un-reblogged status being at wrong position in the home timeline (#5418) · 6f490b4b
      unarist a rédigé
      We've changed un-reblogging behavior when we implement Snowflake, to insert un-reblogged status at the position reblogging status existed.
      
      However, our API expects home timeline is ordered by status ids, and max_id/since_id filters by zset score. Due to this, un-reblogged status appears as a last item of result set, and timeline expansion may skips many statuses.
      
      So this reverts that change...reblogged status inserted at corresponding position to its id.
      6f490b4b
Chargement en cours