1. 11 Sep, 2019 3 commits
  2. 10 Sep, 2019 1 commit
  3. 06 Sep, 2019 1 commit
  4. 04 Sep, 2019 1 commit
  5. 03 Sep, 2019 1 commit
  6. 30 Aug, 2019 2 commits
  7. 24 Aug, 2019 1 commit
  8. 22 Aug, 2019 1 commit
  9. 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
  10. 17 Aug, 2019 1 commit
  11. 16 Aug, 2019 1 commit
    • Eugen Rochko's avatar
      Add more accurate account search (#11537) · 8fdff274
      Eugen Rochko authored
      * Add more accurate account search
      When ElasticSearch is available, a more accurate search is implemented:
      - Using edge n-gram index for acct and display name
      - Using asciifolding and cjk width normalization on display names
      - Using Gaussian decay on account activity for additional scoring (recency)
      - Using followers/friends ratio for additional scoring (spamminess)
      - Using followers number for additional scoring (size)
      The exact match precedence only takes effect when the input conforms
      to the username format and the username part of it is complete, i.e.
      when the user started typing the domain part.
      * Support single-letter usernames
      * Fix tests
      * Fix not picking up account updates
      * Add weights and normalization for scores, skip zero terms queries
      * Use local counts for accounts index, adjust search parameters
      * Fix mistakes
      * Using updated_at of accounts is inadequate for remote accounts
  12. 08 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
  13. 06 Aug, 2019 2 commits
  14. 02 Aug, 2019 1 commit
  15. 31 Jul, 2019 1 commit
  16. 30 Jul, 2019 3 commits
  17. 29 Jul, 2019 2 commits
  18. 27 Jul, 2019 3 commits
  19. 24 Jul, 2019 1 commit
    • Rey Tucker's avatar
      Don't delete periods when validating username uniqueness (#11392) (#11400) · 94f5c714
      Rey Tucker authored
      * Check to make sure usernames with '.' cannot be created
      * Add test for instance actor account name conflicts
      This makes sure that migration 20190715164535_add_instance_actor
      won't fail if there's already an account that is named the same
      as the domain (minus the .)
      * Put the test into the correct context...
      * Add another test to split this into two validations
      * Don't delete periods when validating username uniqueness (#11392)
      The 20190715164535_add_instance_actor migration fails if there's
      already a username similar to the domain name, e.g. if you are
      'vulpine.club' and have a user named 'vulpineclub', validation
      Upon further review, usernames with periods are dropped by the
      regular expression in the Account class, so we don't need to
      worry about it here.
      Fixes #11392
  20. 22 Jul, 2019 3 commits
    • 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.
    • ThibG's avatar
      Play animated custom emoji on hover (#11348) · 7de8c518
      ThibG authored
      * Play animated custom emoji on hover in status
      * Play animated custom emoji on hover in display names
      * Play animated custom emoji on hover in bios/bio fields
      * Add support for animation on hover on public pages emojis too
      * Fix tests
      * Code style cleanup
    • Eugen Rochko's avatar
      Change locale detection to run once per session (#8657) · bd1545de
      Eugen Rochko authored
      Fix #6462
  21. 21 Jul, 2019 1 commit
  22. 20 Jul, 2019 1 commit
  23. 19 Jul, 2019 2 commits
    • ThibG's avatar
      Fix sanitizing lists contents (#11354) · fda437a0
      ThibG authored
      * Add test
      * Fix code for sanitizing nested lists stripping all tags
    • 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
      * 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
  24. 18 Jul, 2019 2 commits
  25. 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
  26. 12 Jul, 2019 1 commit
    • Eugen Rochko's avatar
      Add ActivityPub secure mode (#11269) · 5bf67ca9
      Eugen Rochko authored
      * Add HTTP signature requirement for served ActivityPub resources
      * Add 'Signature' to 'Vary' header and improve code style
      * Improve code style by adding `public_fetch_mode?` method
  27. 11 Jul, 2019 1 commit