1. 27 Jan, 2020 1 commit
  2. 26 Jan, 2020 1 commit
  3. 23 Jan, 2020 1 commit
    • Eugen Rochko's avatar
      Add announcements (#12662) · f52c988e
      Eugen Rochko authored
      * Add announcements
      
      Fix #11006
      
      * Add reactions to announcements
      
      * Add admin UI for announcements
      
      * Add unit tests
      
      * Fix issues
      
      - Add `with_dismissed` param to announcements API
      - Fix end date not being formatted when time range is given
      - Fix announcement delete causing reactions to send streaming updates
      - Fix announcements container growing too wide and mascot too small
      - Fix `all_day` being settable when no time range is given
      - Change text "Update" to "Announcement"
      
      * Fix scheduler unpublishing announcements before they are due
      
      * Fix filter params not being passed to announcements filter
      f52c988e
  4. 21 Jan, 2020 1 commit
  5. 10 Jan, 2020 1 commit
  6. 29 Dec, 2019 1 commit
    • ThibG's avatar
      Fix old migrations failing because of strong_migrations update (#12692) · 1155dc08
      ThibG authored
      Fixes #12690
      
      The `strong_migrations` update from ba2eac88
      introduced a check for `change_column_null` specific to Postgres. This rejects
      old migrations.
      
      This commit just wraps old migrations with `safety_assured` to bypass this
      check. Alternatives would have been to:
      - Disable that check entirely (a possibility added in that same
        `strong_migrations` version) for Mastodon, but it makes sense to write new
        migrations without such a strong lock.
      - Rewrite the old migrations to do it in a way that do not require an exclusive
        lock. I thought fixing those old migrations for performance wasn't worth the
        pain. Also, if I understand correctly, the next version of
        `strong_migrations` is going to include a helper to do that. We could update
        those migrations at that point.
      1155dc08
  7. 18 Dec, 2019 1 commit
  8. 17 Dec, 2019 1 commit
  9. 04 Dec, 2019 1 commit
  10. 13 Nov, 2019 1 commit
    • ThibG's avatar
      Add bookmarks (#7107) · dfea7368
      ThibG authored
      * Add backend support for bookmarks
      
      Bookmarks behave like favourites, except they aren't shared with other
      users and do not have an associated counter.
      
      * Add spec for bookmark endpoints
      
      * Add front-end support for bookmarks
      
      * Introduce OAuth scopes for bookmarks
      
      * Add bookmarks to archive takeout
      
      * Fix migration
      
      * Coding style fixes
      
      * Fix rebase issue
      
      * Update bookmarked_statuses to latest UI changes
      
      * Update bookmark actions to properly reflect status changes in state
      
      * Add bookmarks item to single-column layout
      
      * Make active bookmarks red
      dfea7368
  11. 04 Nov, 2019 1 commit
    • ThibG's avatar
      Add abilityto add oneself to lists (#12271) · 65e13cfa
      ThibG authored
      * Add ability to add oneself to lists
      
      * Change search results to include oneself when searching through followers
      
      * Mark follow relation as optional in ListAccount
      65e13cfa
  12. 07 Oct, 2019 2 commits
  13. 02 Oct, 2019 1 commit
  14. 29 Sep, 2019 1 commit
    • ThibG's avatar
      Add voters count support (#11917) · 3babf846
      ThibG authored
      * Add voters count to polls
      
      * Add ActivityPub serialization and parsing of voters count
      
      * Add support for voters count in WebUI
      
      * Move incrementation of voters count out of redis lock
      
      * Reword “voters” to “people”
      3babf846
  15. 27 Sep, 2019 2 commits
  16. 19 Sep, 2019 1 commit
    • Eugen Rochko's avatar
      Add account migration UI (#11846) · 3ed94dcc
      Eugen Rochko authored
      Fix #10736
      
      - Change data export to be available for non-functional accounts
      - Change non-functional accounts to include redirecting accounts
      3ed94dcc
  17. 18 Sep, 2019 1 commit
  18. 06 Sep, 2019 1 commit
  19. 02 Sep, 2019 1 commit
  20. 24 Aug, 2019 1 commit
  21. 22 Aug, 2019 1 commit
  22. 19 Aug, 2019 1 commit
  23. 18 Aug, 2019 1 commit
    • Eugen Rochko's avatar
      Add more accurate hashtag search (#11579) · cc0a55cf
      Eugen Rochko authored
      * Add more accurate hashtag search
      
      Using ElasticSearch to index hashtags with edge n-grams and score
      them by usage within the last 7 days since last activity. Only
      hashtags that have been reviewed and are listable can appear in
      searches, unless they match the query exactly
      
      * Fix search analyzer dropping non-ascii characters
      cc0a55cf
  24. 07 Aug, 2019 1 commit
    • ThibG's avatar
      Add domain block notes (#11515) · bced7046
      ThibG authored
      * Add database columns for adding notes to domain blocks/restrctions
      
      * Add admin UI to set private and public comments when blocking a domain
      
      * Add text for private and public comments on domain blocks
      
      * Show domain block comments in admin UI
      
      * Add comments to the domain block undo page
      
      * Make UnblockDomainService more robust regarding upgraded domain blocks
      
      * Allow editing domain blocks
      
      * Rename button from “undo domain block” to “view domain block” in account admin UI
      
      * Change test to unsilence silenced users from upgraded blocks
      bced7046
  25. 05 Aug, 2019 1 commit
    • Eugen Rochko's avatar
      Change admin UI for hashtags and add back whitelisted trends (#11490) · 115dab78
      Eugen Rochko authored
      Fix #271
      
      Add back the `GET /api/v1/trends` API with the caveat that it does
      not return tags that have not been allowed to trend by the staff.
      
      When a hashtag begins to trend (internally) and that hashtag has
      not been previously reviewed by the staff, the staff is notified.
      
      The new admin UI for hashtags allows filtering hashtags by where
      they are used (e.g. in the profile directory), whether they have
      been reviewed or are pending reviewal, they show by how many people
      the hashtag is used in the directory, how many people used it
      today, how many statuses with it have been created today, and it
      allows fixing the name of the hashtag to make it more readable.
      
      The disallowed hashtags feature has been reworked. It is now
      controlled from the admin UI for hashtags instead of from
      the file `config/settings.yml`
      115dab78
  26. 30 Jul, 2019 2 commits
  27. 29 Jul, 2019 1 commit
  28. 28 Jul, 2019 3 commits
  29. 23 Jul, 2019 1 commit
    • Daigo 3 Dango's avatar
      List columns within the method (#11377) · cd687143
      Daigo 3 Dango authored
      To avoid the exception:
      
      NoMethodError: undefined method `perform' for nil:NilClass
      .../vendor/bundle/ruby/2.6.0/gems/strong_migrations-0.4.1/lib/strong_migrations/migration.rb:14:in `method_missing'
      .../vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:604:in `method_missing'
      .../db/migrate/20170918125918_ids_to_bigints.rb:69:in `<class:IdsToBigints>'
      .../db/migrate/20170918125918_ids_to_bigints.rb:3:in `<top (required)>'
      cd687143
  30. 22 Jul, 2019 1 commit
    • Eugen Rochko's avatar
      Change unconfirmed user login behaviour (#11375) · 964ae8ee
      Eugen Rochko authored
      Allow access to account settings, 2FA, authorized applications, and
      account deletions to unconfirmed and pending users, as well as
      users who had their accounts disabled. Suspended users cannot update
      their e-mail or password or delete their account.
      
      Display account status on account settings page, for example, when
      an account is frozen, limited, unconfirmed or pending review.
      
      After sign up, login users straight away and show a simple page that
      tells them the status of their account with links to account settings
      and logout, to reduce onboarding friction and allow users to correct
      wrongly typed e-mail addresses.
      
      Move the final sign-up step of SSO integrations to be the same
      as above to reduce code duplication.
      964ae8ee
  31. 21 Jul, 2019 2 commits
  32. 18 Jul, 2019 1 commit
    • ThibG's avatar
      Add ActivityPub actor representing the entire server (#11321) · 730c4053
      ThibG authored
      * Add support for an instance actor
      
      * Skip username validation for local Application accounts
      
      * Add migration script to create instance actor
      
      * Make Codeclimate happy
      
      * Switch to id -99 for instance actor
      
      * Remove unused `icon` and `image` attributes from instance actor
      
      * Use if/elsif/else instead of return + ternary operator
      
      * Add instance actor to fresh installs
      
      * Use instance actor as instance representative
      
      Use instance actor for forwarding reports, relay operations, and spam
      auto-reporting.
      
      * Seed database in test environment
      
      * Fix single-user mode
      
      * Fix tests
      
      * Fix specs to accomodate for an extra `Account`
      
      * Auto-reject follows on instance actor
      
      Following an instance actor might make sense, but we are not handling that
      right now, so auto-reject.
      
      * Fix webfinger lookup and serialization for instance actor
      
      * Rename instance actor
      
      * Make it clear in the HTML view that the instance actor should not be blocked
      
      * Raise cache time for instance actor as there's no dynamic content
      
      * Re-use /about/more with a flash message for instance actor profile
      730c4053
  33. 13 Jul, 2019 1 commit
    • Eugen Rochko's avatar
      Add a spam check (#11217) · 6ff67be0
      Eugen Rochko authored
      * Add a spam check
      
      * Use Nilsimsa to generate locality-sensitive hashes and compare using Levenshtein distance
      
      * Add more tests
      
      * Add exemption when the message is a reply to something that mentions the sender
      
      * Use Nilsimsa Compare Value instead of Levenshtein distance
      
      * Use MD5 for messages shorter than 10 characters
      
      * Add message to automated report, do not add non-public statuses to
      automated report, add trust level to accounts and make unsilencing
      raise the trust level to prevent repeated spam checks on that account
      
      * Expire spam check data after 3 months
      
      * Add support for local statuses, reduce expiration to 1 week, always create a report
      
      * Add content warnings to the spam check and exempt empty statuses
      
      * Change Nilsimsa threshold to 95 and make sure removed statuses are removed from the spam check
      
      * Add all matched statuses into automatic report
      6ff67be0
  34. 10 Jul, 2019 1 commit