Skip to content
Snippets Groups Projects
  1. Aug 25, 2020
    • Akihiko Odaki's avatar
      Use Status.group instead of Status.distinct in HashQueryService (#14662) · 41eeb9eb
      Akihiko Odaki authored
      DISTINCT clause removes duplicated records according to all the selected
      attributes. In reality, it can remove duplicated records only looking at
      statuses.id, but the clause confuses the query planner and yields
      insufficient performance.
      The behavior is also problematic if the scope produced by HashQueryService
      is used to query columns without id (using pluck method, for example). The
      scope is expected to contain unique statuses, but the uniquness will be
      evaluated with some arbitrary columns other than id.
      
      GROUP BY clause resolves those problem by explicitly specifying the
      column to take into account for the record distinction.
      
      A workaround for the problem of DISTINCT clause in
      Api::V1::Timelines::TagController is no longer necessary and removed.
      41eeb9eb
  2. Aug 24, 2020
    • ThibG's avatar
      Add support for latest HTTP Signatures spec draft (#14556) · b241f20b
      ThibG authored
      * Add support for latest HTTP Signatures spec draft
      
      https://www.ietf.org/id/draft-ietf-httpbis-message-signatures-00.html
      
      - add support for the “hs2019” signature algorithm (assumed to be equivalent
        to RSA-SHA256, since we do not have a mechanism to specify the algorithm
        within the key metadata yet)
      - add support for (created) and (expires) pseudo-headers and related
        signature parameters, when using the hs2019 signature algorithm
      - adjust default “headers” parameter while being backwards-compatible with
        previous implementation
      - change the acceptable time window logic from 12 hours surrounding the “date”
        header to accepting signatures created up to 1 hour in the future and
        expiring up to 1 hour in the past (but only allowing expiration dates up to
        12 hours after the creation date)
        This doesn't conform with the current draft, as it doesn't permit accounting
        for clock skew.
        This, however, should be addressed in a next version of the draft:
        https://github.com/httpwg/http-extensions/pull/1235
      
      * Add additional signature requirements
      
      * Rewrite signature params parsing using Parslet
      
      * Make apparent which signature algorithm Mastodon on verification failure
      
      Mastodon uses RSASSA-PKCS1-v1_5, which is not recommended for new applications,
      and new implementers may thus unknowingly use RSASSA-PSS.
      
      * Add workaround for PeerTube's invalid signature header
      
      The previous parser allowed incorrect Signature headers, such as
      those produced by old versions of the `http-signature` node.js package,
      and seemingly used by PeerTube.
      
      This commit adds a workaround for that.
      
      * Fix `signature_key_id` raising an exception
      
      Previously, parsing failures would result in `signature_key_id` being nil,
      but the parser changes made that result in an exception.
      
      This commit changes the `signature_key_id` method to return `nil` in case
      of parsing failures.
      
      * Move extra HTTP signature helper methods to private methods
      
      * Relax (request-target) requirement to (request-target) || digest
      
      This lets requests from Plume work without lowering security significantly.
      b241f20b
    • ThibG's avatar
      Fix dereferencing remote statuses not using the correct account (#14656) · 92319d73
      ThibG authored
      Follow-up to #14359
      
      In the case of limited toots, the receiver may not be explicitly part of the
      audience. If a specific user's inbox URI was specified, it makes sense to
      dereference the toot from the corresponding user, instead of trying to find
      someone in the explicit audience.
      92319d73
    • santiagorodriguez96's avatar
      Add WebAuthn as an alternative 2FA method (#14466) · e8d41bc2
      santiagorodriguez96 authored
      
      * feat: add possibility of adding WebAuthn security keys to use as 2FA
      
      This adds a basic UI for enabling WebAuthn 2FA. We did a little refactor
      to the Settings page for editing the 2FA methods – now it will list the
      methods that are available to the user (TOTP and WebAuthn) and from
      there they'll be able to add or remove any of them.
      Also, it's worth mentioning that for enabling WebAuthn it's required to
      have TOTP enabled, so the first time that you go to the 2FA Settings
      page, you'll be asked to set it up.
      This work was inspired by the one donde by Github in their platform, and
      despite it could be approached in different ways, we decided to go with
      this one given that we feel that this gives a great UX.
      
      Co-authored-by: default avatarFacundo Padula <facundo.padula@cedarcode.com>
      
      * feat: add request for WebAuthn as second factor at login if enabled
      
      This commits adds the feature for using WebAuthn as a second factor for
      login when enabled.
      If use...
      e8d41bc2
    • Tdxdxoz's avatar
      Fix: also use custom private boost icon for detailed status (#14471) · a3ec9af9
      Tdxdxoz authored
      * use custom private boost icon for detail status
      
      * only use className
      a3ec9af9
    • ThibG's avatar
      Add support for inlined objects in activity audience (#14514) · 720214fe
      ThibG authored
      * Add support for inlined objects in activity audience
      
      * Add tests
      720214fe
    • Daigo 3 Dango's avatar
      Better manage subscriptionCounters (#14608) · 9669557b
      Daigo 3 Dango authored
      Before this change:
      - unsubscribe() was not called for a disconnection
      - It seems that WebSocketClient calls connected() and reconnected().
        subscriptionCounters were incremented twice for a single reconnection,
        first from connected() and second from reconnected()
      
      This might be a an additional change to
      https://github.com/tootsuite/mastodon/pull/14579
      to recover subscriptions after a reconnect.
      9669557b
  3. Aug 22, 2020
  4. Aug 21, 2020
  5. Aug 19, 2020
  6. Aug 13, 2020
  7. Aug 12, 2020
    • ThibG's avatar
      Improve email address validation (#14565) · 8d217d72
      ThibG authored
      * Increase DNS timeout from 1 second to 5 seconds for MX check
      
      1 seconds is rather short when using a recursive DNS resolver which
      hasn't got a cached result already available. Use 5 seconds instead,
      which is the timeout value we use for outgoing HTTP queries.
      
      * Add more precise error messages for invalid e-mail addresses
      8d217d72
    • ThibG's avatar
      Add client-side validation in password change forms (#14564) · 7dc4c742
      ThibG authored
      * Fix client-side username validation at registration
      
      It used the Account::USERNAME_RE regexp which is for *remote* users,
      local user validation is stricter. Also take into account max username length.
      
      * Add client-side form validation for password change
      
      * Add client-side form validation to dedicated registration form
      
      Previous changes only applied to the /about page, not the dedicated form on
      /auth
      7dc4c742
  8. Aug 11, 2020
  9. Aug 09, 2020
  10. Aug 08, 2020
  11. Aug 07, 2020
  12. Aug 05, 2020
  13. Aug 02, 2020
  14. Aug 01, 2020
  15. Jul 26, 2020
  16. Jul 24, 2020
    • Eugen Rochko's avatar
      00448db3
    • Eugen Rochko's avatar
      New Crowdin updates (#14335) · 054f4af6
      Eugen Rochko authored
      * New translations en.yml (Kazakh)
      [ci skip]
      
      * New translations en.json (Norwegian Nynorsk)
      [ci skip]
      
      * New translations simple_form.en.yml (Norwegian Nynorsk)
      [ci skip]
      
      * New translations en.yml (Latvian)
      [ci skip]
      
      * New translations simple_form.en.yml (Kazakh)
      [ci skip]
      
      * New translations en.json (Latvian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Estonian)
      [ci skip]
      
      * New translations simple_form.en.yml (Estonian)
      [ci skip]
      
      * New translations en.yml (Estonian)
      [ci skip]
      
      * New translations en.yml (Norwegian Nynorsk)
      [ci skip]
      
      * New translations en.yml (Slovak)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Croatian)
      [ci skip]
      
      * New translations en.yml (Spanish, Argentina)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Portuguese, Brazilian)
      [ci skip]
      
      * New translations en.json (Indonesian)
      [ci skip]
      
      * New translations simple_form.en.yml (Indonesian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Indonesian)
      [ci skip]
      
      * New translations simple_form.en.yml (Persian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Persian)
      [ci skip]
      
      * New translations en.json (Tamil)
      [ci skip]
      
      * New translations en.yml (Tamil)
      [ci skip]
      
      * New translations simple_form.en.yml (Tamil)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Tamil)
      [ci skip]
      
      * New translations simple_form.en.yml (Spanish, Argentina)
      [ci skip]
      
      * New translations simple_form.en.yml (Croatian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Spanish, Argentina)
      [ci skip]
      
      * New translations en.json (Bengali)
      [ci skip]
      
      * New translations en.yml (Bengali)
      [ci skip]
      
      * New translations simple_form.en.yml (Bengali)
      [ci skip]
      
      * New translations en.json (Marathi)
      [ci skip]
      
      * New translations en.yml (Marathi)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Marathi)
      [ci skip]
      
      * New translations en.json (Croatian)
      [ci skip]
      
      * New translations en.yml (Welsh)
      [ci skip]
      
      * New translations en.yml (Croatian)
      [ci skip]
      
      * New translations en.json (Welsh)
      [ci skip]
      
      * New translations simple_form.en.yml (Asturian)
      [ci skip]
      
      * New translations simple_form.en.yml (Welsh)
      [ci skip]
      
      * New translations en.yml (Taigi)
      [ci skip]
      
      * New translations en.yml (Corsican)
      [ci skip]
      
      * New translations simple_form.en.yml (Corsican)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Corsican)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Kabyle)
      [ci skip]
      
      * New translations en.json (Ido)
      [ci skip]
      
      * New translations en.yml (Ido)
      [ci skip]
      
      * New translations simple_form.en.yml (Ido)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Ido)
      [ci skip]
      
      * New translations en.json (Taigi)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Serbian (Latin))
      [ci skip]
      
      * New translations en.json (Silesian)
      [ci skip]
      
      * New translations en.yml (Silesian)
      [ci skip]
      
      * New translations en.json (Uyghur)
      [ci skip]
      
      * New translations en.yml (Uyghur)
      [ci skip]
      
      * New translations en.json (Sorani (Kurdish))
      [ci skip]
      
      * New translations en.yml (Sorani (Kurdish))
      [ci skip]
      
      * New translations simple_form.en.yml (Serbian (Latin))
      [ci skip]
      
      * New translations doorkeeper.en.yml (Welsh)
      [ci skip]
      
      * New translations en.yml (Breton)
      [ci skip]
      
      * New translations en.json (Esperanto)
      [ci skip]
      
      * New translations simple_form.en.yml (Esperanto)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Esperanto)
      [ci skip]
      
      * New translations en.json (Chinese Traditional, Hong Kong)
      [ci skip]
      
      * New translations en.yml (Chinese Traditional, Hong Kong)
      [ci skip]
      
      * New translations simple_form.en.yml (Chinese Traditional, Hong Kong)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Chinese Traditional, Hong Kong)
      [ci skip]
      
      * New translations en.json (Malayalam)
      [ci skip]
      
      * New translations en.yml (Malayalam)
      [ci skip]
      
      * New translations simple_form.en.yml (Malayalam)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Malayalam)
      [ci skip]
      
      * New translations simple_form.en.yml (Breton)
      [ci skip]
      
      * New translations en.yml (Serbian (Latin))
      [ci skip]
      
      * New translations doorkeeper.en.yml (Breton)
      [ci skip]
      
      * New translations en.json (Kannada)
      [ci skip]
      
      * New translations en.yml (Kannada)
      [ci skip]
      
      * New translations en.json (Asturian)
      [ci skip]
      
      * New translations en.yml (Asturian)
      [ci skip]
      
      * New translations en.yml (Portuguese, Brazilian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Asturian)
      [ci skip]
      
      * New translations en.yml (Occitan)
      [ci skip]
      
      * New translations simple_form.en.yml (Occitan)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Occitan)
      [ci skip]
      
      * New translations en.json (Serbian (Latin))
      [ci skip]
      
      * New translations simple_form.en.yml (Portuguese, Brazilian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Turkish)
      [ci skip]
      
      * New translations en.json (Portuguese, Brazilian)
      [ci skip]
      
      * New translations en.json (Georgian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Hungarian)
      [ci skip]
      
      * New translations en.yml (Armenian)
      [ci skip]
      
      * New translations simple_form.en.yml (Armenian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Armenian)
      [ci skip]
      
      * New translations en.yml (Italian)
      [ci skip]
      
      * New translations simple_form.en.yml (Italian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Italian)
      [ci skip]
      
      * New translations simple_form.en.yml (Japanese)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Japanese)
      [ci skip]
      
      * New translations en.yml (Georgian)
      [ci skip]
      
      * New translations simple_form.en.yml (Hebrew)
      [ci skip]
      
      * New translations simple_form.en.yml (Georgian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Georgian)
      [ci skip]
      
      * New translations en.yml (Korean)
      [ci skip]
      
      * New translations simple_form.en.yml (Korean)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Korean)
      [ci skip]
      
      * New translations en.json (Lithuanian)
      [ci skip]
      
      * New translations en.yml (Lithuanian)
      [ci skip]
      
      * New translations en.json (Macedonian)
      [ci skip]
      
      * New translations en.yml (Macedonian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Hebrew)
      [ci skip]
      
      * New translations en.yml (Hebrew)
      [ci skip]
      
      * New translations en.json (Occitan)
      [ci skip]
      
      * New translations en.json (Sardinian)
      [ci skip]
      
      * New translations en.yml (Sardinian)
      [ci skip]
      
      * New translations en.json (Slovenian)
      [ci skip]
      
      * New translations en.yml (Slovenian)
      [ci skip]
      
      * New translations en.yml (Esperanto)
      [ci skip]
      
      * New translations en.yml (Russian)
      [ci skip]
      
      * New translations en.json (Hebrew)
      [ci skip]
      
      * New translations en.json (Slovak)
      [ci skip]
      
      * New translations simple_form.en.yml (Russian)
      [ci skip]
      
      * New translations simple_form.en.yml (Ukrainian)
      [ci skip]
      
      * New translations en.yml (Hungarian)
      [ci skip]
      
      * New translations simple_form.en.yml (Hungarian)
      [ci skip]
      
      * New translations en.yml (Japanese)
      [ci skip]
      
      * New translations simple_form.en.yml (Chinese Simplified)
      [ci skip]
      
      * New translations en.yml (Persian)
      [ci skip]
      
      * New translations en.json (Ukrainian)
      [ci skip]
      
      * New translations en.yml (Ukrainian)
      [ci skip]
      
      * New translations simple_form.en.yml (Finnish)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Finnish)
      [ci skip]
      
      * New translations en.json (Dutch)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Icelandic)
      [ci skip]
      
      * New translations en.yml (Urdu (Pakistan))
      [ci skip]
      
      * New translations doorkeeper.en.yml (Swedish)
      [ci skip]
      
      * New translations en.json (Turkish)
      [ci skip]
      
      * New translations en.yml (Turkish)
      [ci skip]
      
      * New translations simple_form.en.yml (Turkish)
      [ci skip]
      
      * New translations en.yml (Indonesian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Ukrainian)
      [ci skip]
      
      * New translations en.yml (Chinese Traditional)
      [ci skip]
      
      * New translations simple_form.en.yml (Chinese Traditional)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Chinese Traditional)
      [ci skip]
      
      * New translations en.json (Urdu (Pakistan))
      [ci skip]
      
      * New translations en.yml (Swedish)
      [ci skip]
      
      * New translations en.yml (Galician)
      [ci skip]
      
      * New translations simple_form.en.yml (Galician)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Galician)
      [ci skip]
      
      * New translations en.json (Icelandic)
      [ci skip]
      
      * New translations en.yml (Icelandic)
      [ci skip]
      
      * New translations simple_form.en.yml (Icelandic)
      [ci skip]
      
      * New translations simple_form.en.yml (Swedish)
      [ci skip]
      
      * New translations en.json (Swedish)
      [ci skip]
      
      * New translations en.yml (Dutch)
      [ci skip]
      
      * New translations simple_form.en.yml (Portuguese)
      [ci skip]
      
      * New translations simple_form.en.yml (Dutch)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Dutch)
      [ci skip]
      
      * New translations en.json (Norwegian)
      [ci skip]
      
      * New translations en.yml (Norwegian)
      [ci skip]
      
      * New translations simple_form.en.yml (Norwegian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Norwegian)
      [ci skip]
      
      * New translations en.json (Polish)
      [ci skip]
      
      * New translations en.yml (Polish)
      [ci skip]
      
      * New translations simple_form.en.yml (Polish)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Polish)
      [ci skip]
      
      * New translations en.yml (Portuguese)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Portuguese)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Serbian (Cyrillic))
      [ci skip]
      
      * New translations doorkeeper.en.yml (Russian)
      [ci skip]
      
      * New translations simple_form.en.yml (Slovak)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Slovak)
      [ci skip]
      
      * New translations simple_form.en.yml (Slovenian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Slovenian)
      [ci skip]
      
      * New translations en.yml (Albanian)
      [ci skip]
      
      * New translations simple_form.en.yml (Albanian)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Albanian)
      [ci skip]
      
      * New translations en.json (Serbian (Cyrillic))
      [ci skip]
      
      * New translations en.yml (Serbian (Cyrillic))
      [ci skip]
      
      * New translations simple_form.en.yml (Serbian (Cyrillic))
      [ci skip]
      
      * New translations en.json (Portuguese, Brazilian)
      [ci skip]
      
      * New translations en.yml (Thai)
      [ci skip]
      
      * New translations en.json (French)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Vietnamese)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Vietnamese)
      [ci skip]
      
      * New translations simple_form.en.yml (Vietnamese)
      [ci skip]
      
      * New translations doorkeeper.en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Chinese Simplified)
      [ci skip]
      
      * New translations en.yml (Chinese Simplified)
      [ci skip]
      
      * New translations en.yml (Chinese Simplified)
      [ci skip]
      
      * New translations en.yml (Chinese Simplified)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.json (Spanish)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.json (Finnish)
      [ci skip]
      
      * New translations en.json (Finnish)
      [ci skip]
      
      * New translations en.yml (Finnish)
      [ci skip]
      
      * New translations en.yml (Finnish)
      [ci skip]
      
      * New translations en.yml (Finnish)
      [ci skip]
      
      * New translations simple_form.en.yml (Finnish)
      [ci skip]
      
      * New translations en.yml (Finnish)
      [ci skip]
      
      * New translations simple_form.en.yml (Finnish)
      [ci skip]
      
      * New translations en.yml (Finnish)
      [ci skip]
      
      * New translations en.yml (Finnish)
      [ci skip]
      
      * New translations en.yml (Finnish)
      [ci skip]
      
      * New translations en.yml (Finnish)
      [ci skip]
      
      * New translations en.json (Finnish)
      [ci skip]
      
      * New translations en.json (Finnish)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.json (Dutch)
      [ci skip]
      
      * New translations en.json (Dutch)
      [ci skip]
      
      * New translations en.yml (Dutch)
      [ci skip]
      
      * New translations en.json (Thai)
      [ci skip]
      
      * New translations devise.en.yml (Thai)
      [ci skip]
      
      * New translations en.json (Thai)
      [ci skip]
      
      * New translations en.json (Korean)
      [ci skip]
      
      * New translations en.json (Thai)
      [ci skip]
      
      * New translations en.yml (Thai)
      [ci skip]
      
      * New translations en.yml (Thai)
      [ci skip]
      
      * New translations en.yml (Thai)
      [ci skip]
      
      * New translations en.yml (Thai)
      [ci skip]
      
      * New translations en.json (Vietnamese)
      [ci skip]
      
      * New translations en.json (Spanish)
      [ci skip]
      
      * New translations en.yml (Spanish)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations simple_form.en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations simple_form.en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * New translations simple_form.en.yml (Vietnamese)
      [ci skip]
      
      * New translations en.yml (Vietnamese)
      [ci skip]
      
      * i18n-tasks normalize
      
      * yarn manage:translations
      
      * Fix normalization
      054f4af6
    • ThibG's avatar
  17. Jul 23, 2020
  18. Jul 22, 2020
    • ThibG's avatar
      Change disabled retweet icon (#14373) · e93efc03
      ThibG authored
      * Change disabled retweet icon
      
      * Hide fontawesome version of boost icon in both reduce-motion and no-reduce-motion
      e93efc03
    • ThibG's avatar
      Fix not handling Undo on some activity types when they aren't inlined (#14346) · 5d9acc0c
      ThibG authored
      * Fix not handling Undo on some activity types when they aren't inlined
      
      When receiving an Undo for a non-inlined activity, try looking it up in
      database using the URI. The queries are ad-hoc because we don't have a global
      index of object URIs, and not all activity types are stored in database with
      an index on their URI.
      
      Announces are just statuses, and have an index on URIs, so this check can
      be done efficiently.
      
      Accepts cannot be handled at all because we don't record their URI at any
      point.
      
      Follows don't have an index on URI, but they have an index on the issuing
      account, which should make such queries largely manageable.
      
      Likes don't have an index on URI, they have an index on the issuing account,
      but the number of favs per account may be very high, so I decided not to
      handle that.
      
      Blocks don't have an index on URI, but they have an index on the issuing
      account, which should make such queries largely manageable.
      
      In all cases, if an Undo could not be handled properly, we call `delete_later!`
      because that does not require us to know more than the URI of the undone
      property.
      
      * Add tests
      
      * Make newer blocks overwrite older ones
      
      Allows re-synchronizing block info by re-blocking and un-blocking again
      when the original Undo Block has been lost.
      5d9acc0c
    • ThibG's avatar
      Fix RSS feeds not being cachable (#14368) · f55dd193
      ThibG authored
      * Add tests for some cachable responses
      
      This only covers responses that we should have managed to make cachable
      so far. It's not the case of all responses that should be cachable in
      the end.
      
      * Fix RSS feeds not being cachable
      f55dd193
    • ThibG's avatar
      Dereference object URIs in Create and Update messages (#14359) · bcf85b52
      ThibG authored
      
      * Dereference object URIs in Create and Update messages
      
      Fixes #14353
      
      Signed-off-by: default avatarThibaut Girka <thib@sitedethib.com>
      
      * Refactor, and perform origin check *before* attempting to fetch object
      
      Co-authored-by: default avatarFire Demon <firedemon@creature.cafe>
      bcf85b52
  19. Jul 20, 2020
Loading