Skip to content
Extraits de code Groupes Projets
  1. fév. 17, 2019
  2. jan. 18, 2019
  3. jan. 16, 2019
  4. jan. 02, 2019
  5. déc. 30, 2018
  6. déc. 29, 2018
  7. déc. 26, 2018
  8. déc. 09, 2018
    • ThibG's avatar
      Add setting to not aggregate reblogs (#9248) · 81bda7d6
      ThibG a rédigé
      * Add setting to not aggregate reblogs
      
      Fixes #9222
      
      * Handle cases where user is nil in add_to_home and add_to_list
      
      * Add hint for setting_aggregate_reblogs option
      
      * Reword setting_aggregate_reblogs label
      81bda7d6
  9. nov. 27, 2018
  10. nov. 22, 2018
    • Eugen Rochko's avatar
      Fix connect timeout not being enforced (#9329) · fd8145d2
      Eugen Rochko a rédigé
      * Fix connect timeout not being enforced
      
      The loop was catching the timeout exception that should stop execution, so the next IP would no longer be within a timed block, which led to requests taking much longer than 10 seconds.
      
      * Use timeout on each IP attempt, but limit to 2 attempts
      
      * Fix code style issue
      
      * Do not break Request#perform if no block given
      
      * Update method stub in spec for Request
      
      * Move timeout inside the begin/rescue block
      
      * Use Resolv::DNS with timeout of 1 to get IP addresses
      
      * Update Request spec to stub Resolv::DNS instead of Addrinfo
      
      * Fix Resolve::DNS stubs in Request spec
      Non vérifiée
      fd8145d2
  11. nov. 21, 2018
  12. nov. 16, 2018
  13. nov. 10, 2018
  14. nov. 08, 2018
  15. oct. 30, 2018
  16. oct. 29, 2018
  17. oct. 26, 2018
  18. oct. 25, 2018
  19. oct. 20, 2018
  20. oct. 17, 2018
    • Eugen Rochko's avatar
      Improve support for aspects/circles (#8950) · ddd30f33
      Eugen Rochko a rédigé
      * Add silent column to mentions
      
      * Save silent mentions in ActivityPub Create handler and optimize it
      
      Move networking calls out of the database transaction
      
      * Add "limited" visibility level masked as "private" in the API
      
      Unlike DMs, limited statuses are pushed into home feeds. The access
      control rules between direct and limited statuses is almost the same,
      except for counter and conversation logic
      
      * Ensure silent column is non-null, add spec
      
      * Ensure filters don't check silent mentions for blocks/mutes
      
      As those are "this person is also allowed to see" rather than "this
      person is involved", therefore does not warrant filtering
      
      * Clean up code
      
      * Use Status#active_mentions to limit returned mentions
      
      * Fix code style issues
      
      * Use Status#active_mentions in Notification
      
      And remove stream_entry eager-loading from Notification
      Non vérifiée
      ddd30f33
  21. oct. 11, 2018
    • Eugen Rochko's avatar
      Improve signature verification safeguards (#8959) · 21ad21cb
      Eugen Rochko a rédigé
      * Downcase signed_headers string before building the signed string
      
      The HTTP Signatures draft does not mandate the “headers” field to be downcased,
      but mandates the header field names to be downcased in the signed string, which
      means that prior to this patch, Mastodon could fail to process signatures from
      some compliant clients. It also means that it would not actually check the
      Digest of non-compliant clients that wouldn't use a lowercased Digest field
      name.
      
      Thankfully, I don't know of any such client.
      
      * Revert "Remove dead code (#8919)"
      
      This reverts commit a00ce8c9.
      
      * Restore time window checking, change it to 12 hours
      
      By checking the Date header, we can prevent replaying old vulnerable
      signatures. The focus is to prevent replaying old vulnerable requests
      from software that has been fixed in the meantime, so a somewhat long
      window should be fine and accounts for timezone misconfiguration.
      
      * Escape users' URLs when formatting them
      
      Fixes possible HTML injection
      
      * Escape all string interpolations in Formatter class
      
      Slightly improve performance by reducing class allocations
      from repeated Formatter#encode calls
      
      * Fix code style issues
      Non vérifiée
      21ad21cb
    • Eugen Rochko's avatar
      Fix typo in ActivityPub Create handler (#8952) · 61d44dd1
      Eugen Rochko a rédigé
      Regression from #8951
      Non vérifiée
      61d44dd1
  22. oct. 10, 2018
  23. oct. 07, 2018
    • Eugen Rochko's avatar
      Add conversations API (#8832) · 774ac473
      Eugen Rochko a rédigé
      * Add conversations API
      
      * Add web UI for conversations
      
      * Add test for conversations API
      
      * Add tests for ConversationAccount
      
      * Improve web UI
      
      * Rename ConversationAccount to AccountConversation
      
      * Remove conversations on block and mute
      
      * Change last_status_id to be a denormalization of status_ids
      
      * Add optimistic locking
      Non vérifiée
      774ac473
  24. oct. 05, 2018
  25. oct. 03, 2018
  26. sept. 28, 2018
Chargement en cours