Skip to content
Snippets Groups Projects
  1. Jan 18, 2023
  2. Oct 20, 2022
    • Eugen Rochko's avatar
      Change public accounts pages to mount the web UI (#19319) · 839f8931
      Eugen Rochko authored
      * Change public accounts pages to mount the web UI
      
      * Fix handling of remote usernames in routes
      
      - When logged in, serve web app
      - When logged out, redirect to permalink
      - Fix `app-body` class not being set sometimes due to name conflict
      
      * Fix missing `multiColumn` prop
      
      * Fix failing test
      
      * Use `discoverable` attribute to control indexing directives
      
      * Fix `<ColumnLoading />` not using `multiColumn`
      
      * Add `noindex` to accounts in REST API
      
      * Change noindex directive to not be rendered by default before a route is mounted
      
      * Add loading indicator for detailed status in web UI
      
      * Fix missing indicator appearing while account is loading in web UI
      Unverified
      839f8931
  3. May 10, 2022
  4. Mar 27, 2022
  5. Mar 26, 2022
    • Eugen Rochko's avatar
      Refactor formatter (#17828) · cefa526c
      Eugen Rochko authored
      * Refactor formatter
      
      * Move custom emoji pre-rendering logic to view helpers
      
      * Move more methods out of Formatter
      
      * Fix code style issues
      
      * Remove Formatter
      
      * Add inline poll options to RSS feeds
      
      * Remove unused helper method
      
      * Fix code style issues
      
      * Various fixes and improvements
      
      * Fix test
      Unverified
      cefa526c
  6. May 09, 2021
  7. May 07, 2021
  8. Sep 11, 2020
  9. Jan 26, 2020
  10. Dec 30, 2019
  11. Dec 04, 2019
    • Takeshi Umeda's avatar
      Add basic support for group actors (#12071) · f43f1e01
      Takeshi Umeda authored
      * Show badge on group actor in WebUI
      
      * Do not notify in case of  by following group actor
      
      * If you mention group actor, also mention group actor followers
      
      * Relax characters that can be used in username (same as Application)
      
      * Revert "Relax characters that can be used in username (same as Application)"
      
      This reverts commit 7e10a137b878d0db1b5252c52106faef5e09ca4b.
      
      * Delete display_name method
      f43f1e01
  12. Dec 03, 2019
  13. Aug 29, 2019
  14. Jul 07, 2019
  15. Oct 04, 2018
  16. Sep 18, 2018
    • Eugen Rochko's avatar
      Redesign forms, verify link ownership with rel="me" (#8703) · f4d549d3
      Eugen Rochko authored
      * Verify link ownership with rel="me"
      
      * Add explanation about verification to UI
      
      * Perform link verifications
      
      * Add click-to-copy widget for verification HTML
      
      * Redesign edit profile page
      
      * Redesign forms
      
      * Improve responsive design of settings pages
      
      * Restore landing page sign-up form
      
      * Fix typo
      
      * Support <link> tags, add spec
      
      * Fix links not being verified on first discovery and passive updates
      Unverified
      f4d549d3
  17. Jun 16, 2018
  18. May 07, 2018
  19. May 06, 2018
  20. Apr 14, 2018
    • Eugen Rochko's avatar
      Add bio fields (#6645) · 78ed4ab7
      Eugen Rochko authored
      * Add bio fields
      
      - Fix #3211
      - Fix #232
      - Fix #121
      
      * Display bio fields in web UI
      
      * Fix output of links and missing fields
      
      * Federate bio fields over ActivityPub as PropertyValue
      
      * Improve how the fields are stored, add to Edit profile form
      
      * Add rel=me to links in fields
      
      Fix #121
      Unverified
      78ed4ab7
  21. Apr 01, 2018
  22. Dec 14, 2017
  23. Nov 18, 2017
    • Eugen Rochko's avatar
      Profile redirect notes (#5746) · 58cede48
      Eugen Rochko authored
      * Serialize moved accounts into REST and ActivityPub APIs
      
      * Parse federated moved accounts from ActivityPub
      
      * Add note about moved accounts to public profiles
      
      * Add moved account message to web UI
      
      * Fix code style issues
      Unverified
      58cede48
  24. Sep 20, 2017
    • aschmitz's avatar
      Change IDs to strings rather than numbers in API JSON output (#5019) · 669fe9ee
      aschmitz authored
      * Fix JavaScript interface with long IDs
      
      Somewhat predictably, the JS interface handled IDs as numbers, which in
      JS are IEEE double-precision floats. This loses some precision when
      working with numbers as large as those generated by the new ID scheme,
      so we instead handle them here as strings. This is relatively simple,
      and doesn't appear to have caused any problems, but should definitely
      be tested more thoroughly than the built-in tests. Several days of use
      appear to support this working properly.
      
      BREAKING CHANGE:
      
      The major(!) change here is that IDs are now returned as strings by the
      REST endpoints, rather than as integers. In practice, relatively few
      changes were required to make the existing JS UI work with this change,
      but it will likely hit API clients pretty hard: it's an entirely
      different type to consume. (The one API client I tested, Tusky, handles
      this with no problems, however.)
      
      Twitter ran into this issue when introducing Snowflake IDs, and decided
      to instead introduce an `id_str` field in JSON responses. I have opted
      to *not* do that, and instead force all IDs to 64-bit integers
      represented by strings in one go. (I believe Twitter exacerbated their
      problem by rolling out the changes three times: once for statuses, once
      for DMs, and once for user IDs, as well as by leaving an integer ID
      value in JSON. As they said, "If you’re using the `id` field with JSON
      in a Javascript-related language, there is a very high likelihood that
      the integers will be silently munged by Javascript interpreters. In most
      cases, this will result in behavior such as being unable to load or
      delete a specific direct message, because the ID you're sending to the
      API is different than the actual identifier associated with the
      message." [1]) However, given that this is a significant change for API
      users, alternatives or a transition time may be appropriate.
      
      1: https://blog.twitter.com/developer/en_us/a/2011/direct-messages-going-snowflake-on-sep-30-2011.html
      
      * Additional fixes for stringified IDs in JSON
      
      These should be the last two. These were identified using eslint to try
      to identify any plain casts to JavaScript numbers. (Some such casts are
      legitimate, but these were not.)
      
      Adding the following to .eslintrc.yml will identify casts to numbers:
      
      ~~~
        no-restricted-syntax:
        - warn
        - selector: UnaryExpression[operator='+'] > :not(Literal)
          message: Avoid the use of unary +
        - selector: CallExpression[callee.name='Number']
          message: Casting with Number() may coerce string IDs to numbers
      ~~~
      
      The remaining three casts appear legitimate: two casts to array indices,
      one in a server to turn an environment variable into a number.
      
      * Back out RelationshipsController Change
      
      This was made to make a test a bit less flakey, but has nothing to
      do with this branch.
      
      * Change internal streaming payloads to stringified IDs as well
      
      Per
      https://github.com/tootsuite/mastodon/pull/5019#issuecomment-330736452
      we need these changes to send deleted status IDs as strings, not
      integers.
      669fe9ee
  25. Jul 07, 2017
Loading