Skip to content
Snippets Groups Projects
  1. Sep 06, 2019
  2. Sep 03, 2019
  3. Sep 02, 2019
  4. Aug 30, 2019
  5. Aug 29, 2019
  6. Aug 23, 2019
  7. Aug 22, 2019
  8. Aug 18, 2019
    • 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
  9. Aug 16, 2019
  10. Aug 15, 2019
    • 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
      8fdff274
  11. Aug 07, 2019
    • 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
  12. Aug 06, 2019
  13. Aug 05, 2019
    • 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
  14. Aug 01, 2019
  15. Jul 30, 2019
  16. Jul 29, 2019
  17. Jul 28, 2019
  18. Jul 27, 2019
  19. Jul 26, 2019
  20. Jul 24, 2019
    • 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
      fails.
      
      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
      94f5c714
  21. Jul 22, 2019
    • 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
  22. Jul 21, 2019
  23. Jul 19, 2019
  24. Jul 18, 2019
    • ThibG's avatar
      Fix sanitizing lists contents (#11354) · fda437a0
      ThibG authored
      * Add test
      
      * Fix code for sanitizing nested lists stripping all tags
      fda437a0
    • 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
    • Eugen Rochko's avatar
      84e98847
    • Eugen Rochko's avatar
  25. Jul 13, 2019
    • 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
  26. Jul 11, 2019
  27. Jul 10, 2019
  28. Jul 09, 2019
  29. Jul 08, 2019
Loading