Skip to content
Extraits de code Groupes Projets
  1. 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
      ddd30f33
    • ThibG's avatar
      Handle global hotkeys even when no element has focus (#8998) · adb06bae
      ThibG a rédigé
      This fixes hotkeys not working when pressing the column
      “back” button, for instance.
      adb06bae
  2. oct. 16, 2018
  3. oct. 15, 2018
  4. oct. 12, 2018
  5. oct. 11, 2018
    • Eugen Rochko's avatar
      8fd2cc54
    • 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
      21ad21cb
    • ThibG's avatar
      Set Content-Security-Policy rules through RoR's config (#8957) · 2d27c110
      ThibG a rédigé
      * Set CSP rules in RoR's configuration
      
      * Override CSP setting in the embed controller to allow frames
      2d27c110
    • Eugen Rochko's avatar
      Fix typo in ActivityPub Create handler (#8952) · 61d44dd1
      Eugen Rochko a rédigé
      Regression from #8951
      61d44dd1
  6. oct. 10, 2018
  7. oct. 09, 2018
  8. oct. 08, 2018
  9. oct. 07, 2018
  10. oct. 06, 2018
  11. oct. 05, 2018
  12. oct. 04, 2018
  13. oct. 03, 2018
  14. oct. 01, 2018
  15. sept. 29, 2018
Chargement en cours