Skip to content
Snippets Groups Projects
  1. Apr 26, 2017
    • Francis Chong's avatar
      Add media dimensions (#2448) · 193dddb4
      Francis Chong authored
      * Fixes #1985
      
      - add migration AddMediaAttachmentMeta, which add meta field to media_attachments
      - before saving attachment, set file meta if needed
      - add meta in api
      
      * add spec
      
      * align the “size” format for image and video
      
      * fix code climate
      
      * fixes media_attachment_spec.rb
      193dddb4
  2. Apr 25, 2017
  3. Apr 24, 2017
  4. 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
  5. 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
  6. Apr 21, 2017
  7. 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
  8. Apr 19, 2017
  9. Apr 18, 2017
  10. Apr 17, 2017
    • Matt Jankowski's avatar
      Remove unused methods (#1730) · 16d50f60
      Matt Jankowski authored
      * Remove unused method #set_counters_maps from api controller
      
      * Remove unused method #set_account_counters_maps from api controller
      
      * Remove unused method Account#followers_domains
      
      * Remove unused User.prolific scope
      
      * Add mastodon:users:admins task to list all admin emails
      
      * Use interpolated query style in Account.triadic_closures
      
      * Coverage for Account.triadic_closures
      16d50f60
    • Eugen's avatar
      Add forgotten AtomSerializer spec (#2047) · f03fb6c0
      Eugen authored
      f03fb6c0
    • Matt Jankowski's avatar
      Instance helper to replace site title helper (#2038) · 389f8f82
      Matt Jankowski authored
      * Move site title helper to instance helper (name change only)
      
      * Remove newline in <title> tag
      
      * Add site_hostname helper method to wrap up local_domain value
      
      * Use site_hostname helper in places that need local_domain value
      389f8f82
    • Matt Jankowski's avatar
      Remove i18n_spec file (#2014) · 4ed12cd8
      Matt Jankowski authored
      These were being skipped with `xit`, but we also just added the `unused` task to
      the CI server, and it will be caught there. That seems good enough for this,
      instead of requiring a full keys check on every local spec suite run.
      4ed12cd8
    • Matt Jankowski's avatar
      Media controller specs (#2022) · cc1361c1
      Matt Jankowski authored
      * Add spec for media controller
      
      * Add MediaAttachment.attached scope
      
      * Simplify methods in media controller
      cc1361c1
Loading