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
  2. 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
      21ad21cb
    • Eugen Rochko's avatar
      Fix typo in ActivityPub Create handler (#8952) · 61d44dd1
      Eugen Rochko a rédigé
      Regression from #8951
      61d44dd1
  3. oct. 10, 2018
  4. 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
      774ac473
  5. oct. 05, 2018
  6. oct. 03, 2018
  7. sept. 28, 2018
  8. sept. 27, 2018
    • cbayerlein's avatar
      Exclude replies from list timelines (#8683) · 4b785461
      cbayerlein a rédigé
      * Changed list behaviour
      
      I added the following line to the FeedManager (app/lib/feed_manager.rb) in the push_to_list function:
      
      `return false if status.reply?`
      
      Now all posts that are replies are filtered out, so that now only "genuine" posts are displayed in the list.
      
      This is a first approach to solve issue #5916
      
      * Update feed_manager.rb
      
      As suggested by @Gargron
      4b785461
  9. sept. 25, 2018
  10. sept. 24, 2018
  11. sept. 18, 2018
    • Eugen Rochko's avatar
      Redesign forms, verify link ownership with rel="me" (#8703) · f4d549d3
      Eugen Rochko a rédigé
      * Verify link ownership with rel="me"
      
      * Add explanation about verification to UI
      
      * Perform link verifications
      
      * Add click-to-copy widget for verification HTML
      
      * Redesign edit profile page
      
      * Redesign forms
      
      * Improve responsive design of settings pages
      
      * Restore landing page sign-up form
      
      * Fix typo
      
      * Support <link> tags, add spec
      
      * Fix links not being verified on first discovery and passive updates
      f4d549d3
  12. août 31, 2018
  13. août 30, 2018
  14. août 26, 2018
    • Eugen Rochko's avatar
      Add CLI task for rotating keys (#8466) · cabdbb7f
      Eugen Rochko a rédigé
      * If an Update is signed with known key, skip re-following procedure
      
      Because it means the remote actor did *not* lose their database
      
      * Add CLI method for rotating keys
      
          bin/tootctl accounts rotate [USERNAME]
      
      Generates a new RSA key per account and sends out an Update activity
      signed with the old key.
      
      * Key rotation: Space out Update fan-outs every 5 minutes per 1000 accounts
      
      * Skip suspended accounts in key rotation
      cabdbb7f
    • Quint Guvernator's avatar
      Fix low-hanging rubocop gripes (#8458) · da13fa50
      Quint Guvernator a rédigé
      * rubocop: quit being so picky
      
      * rubocop: miscellany
      
      * rubocop: prefer present to blank
      da13fa50
  15. août 25, 2018
  16. août 23, 2018
    • Jakub Mendyk's avatar
      Add ability to change an instance default theme from the administration panel (#7092) (#8381) · 6cb3514d
      Jakub Mendyk a rédigé
      * Add default_settings class method to ScopedSettings
      
      ScopedSettings was extended to use value of unscoped setting instead of
      only using defaults set in config/settings.yml for selected settings.
      This adds possibility for admins to set default values of users' settings,
      for example default theme (as requested in #7092).
      
      * Add ability to change an instance default theme
      
      Closes #7092
      6cb3514d
  17. août 22, 2018
  18. août 17, 2018
  19. août 12, 2018
  20. août 05, 2018
  21. juil. 30, 2018
  22. juil. 16, 2018
  23. juil. 15, 2018
  24. juil. 14, 2018
  25. juil. 10, 2018
  26. juil. 09, 2018
  27. juil. 06, 2018
  28. juil. 05, 2018
  29. juil. 02, 2018
    • Eugen Rochko's avatar
      Re-add follow recommendations API (#7918) · da8fe807
      Eugen Rochko a rédigé
      * Re-add follow recommendations API
      
          GET /api/v1/suggestions
      
      Removed in 8efa081f due to Neo4J
      dependency. The algorithm uses triadic closures, takes into account
      suspensions, blocks, mutes, domain blocks, excludes locked and moved
      accounts, and prefers more recently updated accounts.
      
      * Track interactions with people you don't follow
      
      Replying to, favouriting and reblogging someone you're not following
      will make them show up in follow recommendations. The interactions
      have different weights:
      
      - Replying is 1
      - Favouriting is 10 (decidedly positive interaction, but private)
      - Reblogging is 20
      
      Following them, muting or blocking will remove them from the list,
      obviously.
      
      * Remove triadic closures, ensure potential friendships are trimmed
      da8fe807
  30. juin 29, 2018
    • MIYAGI Hikaru's avatar
      Merge `HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY` into `ALLOW_ACCESS_TO_HIDDEN_SERVICE` (#7901) · ddd0bb69
      MIYAGI Hikaru a rédigé
      If Mastodon accesses to the hidden service via transparent proxy, it's needed to avoid checking whether it's a private address, since `.onion` is resolved to a private address.
      I was previously using the `HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY` to provide that function. However, I realized that using `HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY` is redundant, since this specification is always used with `ALLOW_ACCESS_TO_HIDDEN_SERVICE`. Therefore, I decided to integrate the setting of `HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY` into` ALLOW_ACCESS_TO_HIDDEN_SERVICE`.
      ddd0bb69
    • Eugen Rochko's avatar
      Keyword/phrase filtering (#7905) · cdb10134
      Eugen Rochko a rédigé
      * Add keyword filtering
      
          GET|POST       /api/v1/filters
          GET|PUT|DELETE /api/v1/filters/:id
      
      - Irreversible filters can drop toots from home or notifications
      - Other filters can hide toots through the client app
      - Filters use a phrase valid in particular contexts, expiration
      
      * Make sure expired filters don't get applied client-side
      
      * Add missing API methods
      
      * Remove "regex filter" from column settings
      
      * Add tests
      
      * Add test for FeedManager
      
      * Add CustomFilter test
      
      * Add UI for managing filters
      
      * Add streaming API event to allow syncing filters
      
      * Fix tests
      cdb10134
  31. juin 17, 2018
Chargement en cours