1. 25 Aug, 2017 1 commit
  2. 24 Aug, 2017 3 commits
  3. 23 Aug, 2017 1 commit
  4. 22 Aug, 2017 2 commits
    • Eugen Rochko's avatar
      Fix up the applications area (#4664) · c1b086a5
      Eugen Rochko authored
      - Section it into "Development" area
      - Improve UI of application form, index, and details
      c1b086a5
    • Colin Mitchell's avatar
      Application prefs section (#2758) · 871c0d25
      Colin Mitchell authored
      * Add code for creating/managing apps to settings section
      
      * Add specs for app changes
      
      * Fix controller spec
      
      * Fix view file I pasted over by mistake
      
      * Add locale strings. Add 'my apps' to nav
      
      * Add Client ID/Secret to App page. Add some visual separation
      
      * Fix rubocop warnings
      
      * Fix embarrassing typo
      
      I lost an `end` statement while fixing a merge conflict.
      
      * Add code for creating/managing apps to settings section
      
      - Add specs for app changes
      - Add locale strings. Add 'my apps' to nav
      - Add Client ID/Secret to App page. Add some visual separation
      - Fix some bugs/warnings
      
      * Update to match code standards
      
      * Trigger notification
      
      * Add warning about not sharing API secrets
      
      * Tweak spec a bit
      
      * Cleanup fixture creation by using let!
      
      * Remove unused key
      
      * Add foreign key for application<->user
      871c0d25
  5. 20 Aug, 2017 1 commit
  6. 18 Aug, 2017 1 commit
  7. 14 Aug, 2017 2 commits
  8. 12 Aug, 2017 2 commits
    • Eugen Rochko's avatar
    • 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
  9. 09 Aug, 2017 1 commit
  10. 08 Aug, 2017 1 commit
    • 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
  11. 05 Aug, 2017 1 commit
  12. 03 Aug, 2017 1 commit
  13. 28 Jul, 2017 1 commit
  14. 27 Jul, 2017 2 commits
  15. 23 Jul, 2017 1 commit
  16. 19 Jul, 2017 1 commit
    • 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
  17. 18 Jul, 2017 1 commit
  18. 15 Jul, 2017 1 commit
    • Eugen Rochko's avatar
      Improve ActivityPub representations (#3844) · 8c45cd0e
      Eugen Rochko authored
      * Improve webfinger templates and make tests more flexible
      
      * Clean up AS2 representation of actor
      
      * Refactor outbox
      
      * Create activities representation
      
      * Add representations of followers/following collections, do not redirect /users/:username route if format is empty
      
      * Remove unused translations
      
      * ActivityPub endpoint for single statuses, add ActivityPub::TagManager for better
      URL/URI generation
      
      * Add ActivityPub::TagManager#to
      
      * Represent all attachments as Document instead of Image/Video specifically
      (Because for remote ones we may not know for sure)
      
      Add mentions and hashtags representation to AP notes
      
      * Add AP-resolvable hashtag URIs
      
      * Use ActiveModelSerializers for ActivityPub
      
      * Clean up unused translations
      
      * Separate route for object and activity
      
      * Adjust cc/to matrices
      
      * Add to/cc to activities, ensure announce activity embeds target status and
      not the wrapper status, add "id" to all collections
      8c45cd0e
  19. 14 Jul, 2017 2 commits
    • 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
  20. 13 Jul, 2017 1 commit
    • 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
  21. 12 Jul, 2017 1 commit
  22. 10 Jul, 2017 1 commit
    • STJrInuyasha's avatar
      Remote following success page (#4129) · 7a889a8e
      STJrInuyasha authored
      * Added a success page to remote following
      Includes follow-through links to web (the old redirect target) and back to the remote user's profile
      
      * Use Account.new in spec instead of a fake with only id
      (fixes spec)
      
      * Fabricate(:account) over Account.new
      
      * Remove self from the success text
      (and all HTML with it)
      7a889a8e
  23. 08 Jul, 2017 1 commit
  24. 30 Jun, 2017 1 commit
  25. 28 Jun, 2017 1 commit
  26. 26 Jun, 2017 1 commit
  27. 25 Jun, 2017 3 commits
  28. 19 Jun, 2017 1 commit
  29. 18 Jun, 2017 1 commit
  30. 14 Jun, 2017 2 commits