Skip to content
Snippets Groups Projects
  1. Sep 06, 2017
    • Eugen Rochko's avatar
      Switch to static URIs, new URI format in both protocols for new statuses (#4815) · e7adbf57
      Eugen Rochko authored
      * Decouple Status#local? from uri being nil
      
      * Replace on-the-fly URI generation with stored URIs
      
      - Generate URI in after_save hook for local statuses
      - Use static value in TagManager when available, fallback to tag format
      - Make TagManager use ActivityPub::TagManager to understand new format
      - Adjust tests
      
      * Use other heuristic for locality of old statuses, do not perform long query
      
      * Exclude tombstone stream entries from Atom feed
      
      * Prevent nil statuses from landing in Pubsubhubbub::DistributionWorker
      
      * Fix URI not being saved (#4818)
      
      * Add more specs for Status
      
      * Save generated uri immediately
      
      and also fix method order to minimize diff.
      
      * Fix alternate HTML URL in Atom
      
      * Fix tests
      
      * Remove not-null constraint from statuses migration to speed it up
      e7adbf57
  2. Sep 05, 2017
  3. Sep 02, 2017
  4. Aug 30, 2017
  5. Aug 29, 2017
  6. Aug 26, 2017
  7. Aug 24, 2017
  8. Aug 21, 2017
  9. Aug 20, 2017
    • Eugen Rochko's avatar
      ActivityPub migration procedure (#4617) · 6e9eda53
      Eugen Rochko authored
      * ActivityPub migration procedure
      
      Once one account is detected as going from OStatus to ActivityPub,
      invalidate WebFinger cache for other accounts from the same domain
      
      * Unsubscribe from PuSH updates once we receive an ActivityPub payload
      
      * Re-subscribe to PuSH unless already unsubscribed, regardless of protocol
      6e9eda53
  10. Aug 19, 2017
    • Eugen Rochko's avatar
      Improve ActivityPub/OStatus compatibility (#4632) · 412ea873
      Eugen Rochko authored
      *Note: OStatus URIs are invalid for ActivityPub. But we have them for
      as long as we want to keep old OStatus-sourced content and as long as
      we remain OStatus-compatible.*
      
      - In Announce handling, if object URI is not a URL, fallback to object URL
      - Do not use specialized ThreadResolveWorker, rely on generalized handling
      - When serializing notes, if parent's URI is not a URL, use parent's URL
      412ea873
  11. Aug 12, 2017
    • Eugen Rochko's avatar
      ActivityPub delivery (#4566) · b7370ac8
      Eugen Rochko authored
      * Deliver ActivityPub Like
      
      * Deliver ActivityPub Undo-Like
      
      * Deliver ActivityPub Create/Announce activities
      
      * Deliver ActivityPub creates from mentions
      
      * Deliver ActivityPub Block/Undo-Block
      
      * Deliver ActivityPub Accept/Reject-Follow
      
      * Deliver ActivityPub Undo-Follow
      
      * Deliver ActivityPub Follow
      
      * Deliver ActivityPub Delete activities
      
      Incidentally fix #889
      
      * Adjust BatchedRemoveStatusService for ActivityPub
      
      * Add tests for ActivityPub workers
      
      * Add tests for FollowService
      
      * Add tests for FavouriteService, UnfollowService and PostStatusService
      
      * Add tests for ReblogService, BlockService, UnblockService, ProcessMentionsService
      
      * Add tests for AuthorizeFollowService, RejectFollowService, RemoveStatusService
      
      * Add tests for BatchedRemoveStatusService
      
      * Deliver updates to a local account to ActivityPub followers
      
      * Minor adjustments
      b7370ac8
    • Eugen Rochko's avatar
      3d47154c
  12. Aug 08, 2017
    • Eugen Rochko's avatar
      Add ActivityPub inbox (#4216) · dd7ef0dc
      Eugen Rochko authored
      * Add ActivityPub inbox
      
      * Handle ActivityPub deletes
      
      * Handle ActivityPub creates
      
      * Handle ActivityPub announces
      
      * Stubs for handling all activities that need to be handled
      
      * Add ActivityPub actor resolving
      
      * Handle conversation URI passing in ActivityPub
      
      * Handle content language in ActivityPub
      
      * Send accept header when fetching actor, handle JSON parse errors
      
      * Test for ActivityPub::FetchRemoteAccountService
      
      * Handle public key and icon/image when embedded/as array/as resolvable URI
      
      * Implement ActivityPub::FetchRemoteStatusService
      
      * Add stubs for more interactions
      
      * Undo activities implemented
      
      * Handle out of order activities
      
      * Hook up ActivityPub to ResolveRemoteAccountService, handle
      Update Account activities
      
      * Add fragment IDs to all transient activity serializers
      
      * Add tests and fixes
      
      * Add stubs for missing tests
      
      * Add more tests
      
      * Add more tests
      dd7ef0dc
  13. Jul 31, 2017
  14. Jul 28, 2017
  15. Jul 26, 2017
  16. Jul 24, 2017
  17. Jul 19, 2017
    • Eugen Rochko's avatar
      Fix webfinger retries (#4275) · 1fcdaafa
      Eugen Rochko authored
      * Do not raise unretryable exceptions in ResolveRemoteAccountService
      
      * Removed fatal exceptions from ResolveRemoteAccountService
      
      Exceptions that cannot be retried should not be raised. New exception
      class for those that can be retried (Mastodon::UnexpectedResponseError)
      1fcdaafa
  18. Jul 18, 2017
  19. Jul 17, 2017
  20. Jul 15, 2017
    • ThibG's avatar
      Optimize uri normalization (#4212) · 05cd3709
      ThibG authored
      * Add dependency on idn-ruby to speed up URI normalization
      
      * Use normalized_host instead of normalize.host when applicable
      
      When we are only interested in the normalized host, calling normalized_host
      avoids normalizing the other components of the URI as well as creating a
      new object
      05cd3709
  21. Jul 14, 2017
    • Eugen Rochko's avatar
      Fix #2672 - Connect signed PuSH subscription requests to instance domain (#4205) · cd9b2ab2
      Eugen Rochko authored
      * Fix #2672 - Connect signed PuSH subscription requests to instance domain
      
      Resolves #2739
      
      * Fix return of locate_subscription
      
      * Fix tests
      cd9b2ab2
    • Eugen Rochko's avatar
      HTTP signatures (#4146) · 1618b68b
      Eugen Rochko authored
      * Add Request class with HTTP signature generator
      
      Spec: https://tools.ietf.org/html/draft-cavage-http-signatures-06
      
      * Add HTTP signature verification concern
      
      * Add test for SignatureVerification concern
      
      * Add basic test for Request class
      
      * Make PuSH subscribe/unsubscribe requests use new Request class
      
      Accidentally fix lease_seconds not being set and sent properly, and
      change the new minimum subscription duration to 1 day
      
      * Make all PuSH workers use new Request class
      
      * Make Salmon sender use new Request class
      
      * Make FetchLinkService use new Request class
      
      * Make FetchAtomService use the new Request class
      
      * Make Remotable use the new Request class
      
      * Make ResolveRemoteAccountService use the new Request class
      
      * Add more tests
      
      * Allow +-30 seconds window for signed request to remain valid
      
      * Disable time window validation for signed requests, restore 7 days
      as PuSH subscription duration (which was previous default due to a bug)
      1618b68b
  22. Jul 13, 2017
    • Sorin Davidoi's avatar
      Web Push Notifications (#3243) · 0c7c188c
      Sorin Davidoi authored
      * feat: Register push subscription
      
      * feat: Notify when mentioned
      
      * feat: Boost, favourite, reply, follow, follow request
      
      * feat: Notification interaction
      
      * feat: Handle change of public key
      
      * feat: Unsubscribe if things go wrong
      
      * feat: Do not send normal notifications if push is enabled
      
      * feat: Focus client if open
      
      * refactor: Move push logic to WebPushSubscription
      
      * feat: Better title and body
      
      * feat: Localize messages
      
      * chore: Fix lint errors
      
      * feat: Settings
      
      * refactor: Lazy load
      
      * fix: Check if push settings exist
      
      * feat: Device-based preferences
      
      * refactor: Simplify logic
      
      * refactor: Pull request feedback
      
      * refactor: Pull request feedback
      
      * refactor: Create /api/web/push_subscriptions endpoint
      
      * feat: Spec PushSubscriptionController
      
      * refactor: WebPushSubscription => Web::PushSubscription
      
      * feat: Spec Web::PushSubscription
      
      * feat: Display first media attachment
      
      * feat: Support direction
      
      * fix: Stuff broken while rebasing
      
      * refactor: Integration with session activations
      
      * refactor: Cleanup
      
      * refactor: Simplify implementation
      
      * feat: Set VAPID keys via environment
      
      * chore: Comments
      
      * fix: Crash when no alerts
      
      * fix: Set VAPID keys in testing environment
      
      * fix: Follow link
      
      * feat: Notification actions
      
      * fix: Delete previous subscription
      
      * chore: Temporary logs
      
      * refactor: Move migration to a later date
      
      * fix: Fetch the correct session activation and misc bugs
      
      * refactor: Move migration to a later date
      
      * fix: Remove follow request (no notifications)
      
      * feat: Send administrator contact to push service
      
      * feat: Set time-to-live
      
      * fix: Do not show sensitive images
      
      * fix: Reducer crash in error handling
      
      * feat: Add badge
      
      * chore: Fix lint error
      
      * fix: Checkbox label overlap
      
      * fix: Check for payload support
      
      * fix: Rename action "type" (crash in latest Chrome)
      
      * feat: Action to expand notification
      
      * fix: Lint errors
      
      * fix: Unescape notification body
      
      * fix: Do not allow boosting if the status is hidden
      
      * feat: Add VAPID keys to the production sample environment
      
      * fix: Strip HTML tags from status
      
      * refactor: Better error messages
      
      * refactor: Handle browser not implementing the VAPID protocol (Samsung Internet)
      
      * fix: Error when target_status is nil
      
      * fix: Handle lack of image
      
      * fix: Delete reference to invalid subscriptions
      
      * feat: Better error handling
      
      * fix: Unescape HTML characters after tags are striped
      
      * refactor: Simpify code
      
      * fix: Modify to work with #4091
      
      * Sort strings alphabetically
      
      * i18n: Updated Polish translation
      
      it annoys me that it's not fully localized :P
      
      * refactor: Use current_session in PushSubscriptionController
      
      * fix: Rebase mistake
      
      * fix: Set cacheName to mastodon
      
      * refactor: Pull request feedback
      
      * refactor: Remove logging statements
      
      * chore(yarn): Fix conflicts with master
      
      * chore(yarn): Copy latest from master
      
      * chore(yarn): Readd offline-plugin
      
      * refactor: Use save! and update!
      
      * refactor: Send notifications async
      
      * fix: Allow retry when push fails
      
      * fix: Save track for failed pushes
      
      * fix: Minify sw.js
      
      * fix: Remove account_id from fabricator
      0c7c188c
  23. Jul 10, 2017
    • Eugen Rochko's avatar
      Limit total subscribe retries to 10, but space them out more (#4142) · 34ccc058
      Eugen Rochko authored
      Since there is little point in retrying so often when a service is down
      or does not exist anymore. Subscriptions are renewed 1 day before they
      should expire, so retrying in 30 minutes, then 2 hours, then 12 hours
      is fine. If even after that, the remote server does not work, there is
      little sense in retrying more often than once a day
      
      Also, uniqueness of the job should ensure that failed retries will
      not result in multiple retries for the same endpoint when the next
      resubscription cycle comes
      34ccc058
  24. Jul 07, 2017
  25. Jun 25, 2017
    • Eugen Rochko's avatar
      Bind web UI access tokens to sessions (#3940) · ed7dc170
      Eugen Rochko authored
      * Add overview of active sessions
      
      * Better display of browser/platform name
      
      * Improve how browser information is stored and displayed for sessions overview
      
      * Fix test
      
      * Fix #2347 - Bind web UI access token to session
      
      When you logout, session also destroys the access token, so it's no longer
      valid. If access token is destroyed some other way, the session is also
      destroyed, requiring a re-login.
      
      Fix #1681 - Add scheduler to remove revoked access tokens and grants
      
      * Fix test
      ed7dc170
  26. Jun 22, 2017
    • Akihiko Odaki (@fn_aki@pawoo.net)'s avatar
      Some minor change and spec for Account (#3813) · e27f792c
      Akihiko Odaki (@fn_aki@pawoo.net) authored
      * Introduce domains method to Account relation
      
      Account had followers_domains method, which was excessively specific.
      Let relation of Account have domains method instead.
      
      * Move follow_mapping in Account to AccountInteractions
      
      * Introduce shared examples for AccountAvatar inclusion
      
      * Cover Account more
      e27f792c
  27. Jun 18, 2017
  28. Jun 14, 2017
    • Eugen Rochko's avatar
      Batched remove status service (#3735) · e17c2e5d
      Eugen Rochko authored
      * Make Pubsubhubbub::DistributionWorker handle both single stream entry
      arguments, as well as arrays of stream entries
      
      * Add BatchedRemoveStatusService, make SuspendAccountService use it
      
      * Improve method names
      
      * Add test
      
      * Add more tests
      
      * Use PuSH payloads of 100 to have a clear mapping of
      1000 input statuses -> 10 PuSH payloads
      
      It was nice while it lasted
      e17c2e5d
    • Eugen Rochko's avatar
      Account deletion (#3728) · 4a618908
      Eugen Rochko authored
      * Add form for account deletion
      
      * If avatar or header are gone from source, remove them
      
      * Add option to have SuspendAccountService remove user record, add tests
      
      * Exclude suspended accounts from search
      4a618908
  29. Jun 03, 2017
  30. May 22, 2017
Loading