Skip to content
Snippets Groups Projects
  1. Apr 27, 2017
    • Eugen Rochko's avatar
      Improve shared status verification (#2525) · 2af4f3c4
      Eugen Rochko authored
      * Instead of parsing shared status contents verbatim, make roundtrip
      to purported original URL. Confirm that the "original" URL is from the
      same domain as the author it claims to be from.
      
      * Fix obvious typo, add comment
      
      * Use URI look-up first
      
      * Add test, update Goldfinger dependency to make less useless HTTP requests per Webfinger lookup
      2af4f3c4
    • Matt Jankowski's avatar
    • Eugen Rochko's avatar
      OEmbed support for PreviewCard (#2337) · 88725d6c
      Eugen Rochko authored
      * OEmbed support for PreviewCard
      
      * Improve ProviderDiscovery code failure treatment
      
      * Do not crawl links if there is a content warning, since those
      don't display a link card anyway
      
      * Reset db schema
      
      * Fresh migrate
      
      * Fix rubocop style issues
      Fix #1681 - return existing access token when applicable instead of creating new
      
      * Fix test
      
      * Extract http client to helper
      
      * Improve oembed controller
      88725d6c
  2. Apr 26, 2017
  3. Apr 25, 2017
  4. Apr 24, 2017
  5. Apr 23, 2017
    • Eugen's avatar
      Followers-only post federation (#2111) · 50151496
      Eugen authored
      * Make private toots get PuSHed to subscription URLs that belong to domains where you have approved followers
      
      * Authorized followers controller, stub for bulk action
      
      * Soft block in the background
      
      * Add simple test for new controller
      
      * Rename Settings::FollowersController to Settings::FollowerDomainsController, paginate results,
      rename "private" post setting to "followers-only", fix pagination style, improve post privacy
      preferences style, improve warning style
      
      * Extract compose form warnings into own container, show warning when posting to followers-only with unlocked account
      50151496
    • Matt Jankowski's avatar
    • Matt Jankowski's avatar
      Ensure i18n matches options (#2358) · 55e1e12b
      Matt Jankowski authored
      * Add failing spec showing that human_locales does not match what i18n knows about
      
      * Add missing `ar` key for arabic to human locales
      
      * Remove duplicate `id` key from available locales
      
      * Sort keys in human locales list
      
      * Add spec for human_locale helper
      55e1e12b
    • Joël Quenneville's avatar
      Test embedded_view related code in a helper (#2282) · 1cf9e14a
      Joël Quenneville authored
      The two methods `StreamEntriesHelper#stream_link_target` and
      `StreamEntriesHelper#acct` are based on checking whether we are running
      in an embedded view.
      
      This adds some test helper code to make the testing easier. We extracted
      some "magic strings" to constants to lower the coupling in the specs.
      1cf9e14a
    • Joël Quenneville's avatar
      Add test coverage to CSS class generation (#2285) · 0c2fe22b
      Joël Quenneville authored
      The code that generates CSS is based on a lot of boolean conditions.
      The possible combinations of these grows exponentially as we add more
      conditions.
      
      Since most of the code is conditional on a single boolean, we tested the
      following:
      
      1. All `false`
      2. All `true`
      3. Each individual flag set to `true`
      
      The methods tested are:
      
      * `StreamEntriesHelper#style_classes`
      * `StreamEntriesHelper#microformats_classes`
      * `StreamEntriesHelper#microformats_h_class`
      0c2fe22b
    • Evan Minto's avatar
      ActivityPub: Add basic, read-only support for Outboxes, Notes, and... · 66fd8e78
      Evan Minto authored
      ActivityPub: Add basic, read-only support for Outboxes, Notes, and Create/Announce Activities (#2197)
      
      * Clean up collapsible components
      
      * Expose user Outboxes and AS2 representations of statuses
      
      * Save work thus far.
      
      * Fix bad merge.
      
      * Save my work
      
      * Clean up pagination.
      
      * First test working.
      
      * Add tests.
      
      * Add Forbidden error template.
      
      * Revert yarn.lock changes.
      
      * Fix code style deviations and use localized instead of hardcoded English text.
      66fd8e78
    • Ash Furrow's avatar
      Admin UI for confirming users (#2245) · 723f25a9
      Ash Furrow authored
      * Shows confirmed status in list.
      
      * Adds ability to confirm users in admin UI.
      
      * Added new english translations.
      
      * Addresses feedback from #2245.
      
      * More feedback.
      723f25a9
  6. Apr 22, 2017
    • Wesley Ellis's avatar
      Add og:url tags (#2298) · a1174a6d
      Wesley Ellis authored
      * add og:url to stream_item view
      
      * add og:url and text to about/show
      
      * add og:url to profile, followers and follows pages
      a1174a6d
    • Matt Jankowski's avatar
      [WIP] Html lang on statuses (#2297) · 629d35e6
      Matt Jankowski authored
      * Add html lang attributes around statuses
      
      * Remove urls from language detection
      629d35e6
    • Matt Jankowski's avatar
      2FA controller cleanup (#2296) · 67dea31b
      Matt Jankowski authored
      * Add spec coverage for settings/two_factor_auth area
      
      * extract setup method for qr code
      
      * Move otp required check to before action
      
      * Merge method only used once
      
      * Remove duplicate view
      
      * Consolidate creation of @codes for backup
      
      * Move settings/2fq#recovery_codes to settings/recovery_codes#create
      
      * Rename settings/two_factor_auth#disable to #destroy
      
      * Add coverage for the otp required path on 2fa#show
      
      * Clean up the recovery codes list styles
      
      * Move settings/two_factor_auth to settings/two_factor_authentication
      
      * Reorganize the settings two factor auth area
      
      Updated to use a flow like:
      
      - settings/two_factor_authentication goes to a #show view which has a button
        either enable or disable 2fa on the account
      - the disable button turns off the otp requirement for the user
      - the enable button cycles the user secret and redirects to a confirmation page
      - the confirmation page is a #new view which shows the QR code for user
      - that page posts to #create which verifies the code, and creates the recovery
        codes
      - that create action shares a view with a recovery codes controller which can be
        used separately to reset codes if needed
      67dea31b
  7. Apr 21, 2017
  8. Apr 20, 2017
    • Matt Jankowski's avatar
      Admin settings controller refactor, add specs, cleanup (#2225) · 1ada494b
      Matt Jankowski authored
      * Add render_views for admin/settings spec
      
      * Add coverage for admin/settings#update
      
      * Add coverage for admin/settings typecasting open_registrations setting
      
      * Simplify how admin/settings finds the value for updating
      
      * Rely on activerecord to not update a value that hasnt changed
      
      * Add coverage for non-existent setting
      
      * Use a constant for boolean settings
      1ada494b
  9. Apr 19, 2017
  10. Apr 18, 2017
Loading