Skip to content
Snippets Groups Projects
  1. Jan 19, 2018
  2. Jan 09, 2018
  3. Jan 08, 2018
  4. Jan 07, 2018
  5. Jan 03, 2018
  6. Jan 02, 2018
  7. Dec 29, 2017
    • Eugen Rochko's avatar
      Add more instance stats APIs (#6125) · 38fc1b49
      Eugen Rochko authored
      * Add GET /api/v1/instance/peers API to reveal known domains
      
      * Add GET /api/v1/instance/activity API
      
      * Make new APIs disableable, exclude private statuses from activity stats
      
      * Fix code style issue
      
      * Fix week timestamps
      38fc1b49
  8. Dec 27, 2017
  9. Dec 15, 2017
  10. Dec 13, 2017
  11. Dec 10, 2017
  12. Dec 06, 2017
  13. Nov 30, 2017
    • Eugen Rochko's avatar
      Add semi-support for Video/Image objects in ActivityPub (#5848) · 4c6b5dbe
      Eugen Rochko authored
      * Add semi-support for Video/Image objects in ActivityPub
      
      Video and Image objects will create corresponding status records
      with manually crafted text contents (title + URL)
      
      * Extract html-url-finding logic into JsonLdHelper
      
      * Fallback to id when url missing, extract supported object types
      4c6b5dbe
    • Eugen Rochko's avatar
      Fix too many forwards (#5854) · 85e97eca
      Eugen Rochko authored
      * Avoid sending explicit Undo->Announce when original deleted
      
      * Do not forward a reply back to the server that sent it
      
      * Deduplicate inboxes of rebloggers' followers for delete forwarding
      
      * Adjust test
      
      * Fix wrong class, bad SQL, wrong variable, outdated comment
      85e97eca
  14. Nov 28, 2017
    • aschmitz's avatar
      Allow hiding of reblogs from followed users (#5762) · eeaec398
      aschmitz authored
      * Allow hiding of reblogs from followed users
      
      This adds a new entry to the account menu to allow users to hide
      future reblogs from a user (and then if they've done that, to show
      future reblogs instead).
      
      This does not remove or add historical reblogs from/to the user's
      timeline; it only affects new statuses.
      
      The API for this operates by sending a "reblogs" key to the follow
      endpoint. If this is sent when starting a new follow, it will be
      respected from the beginning of the follow relationship (even if
      the follow request must be approved by the followee). If this is
      sent when a follow relationship already exists, it will simply
      update the existing follow relationship. As with the notification
      muting, this will now return an object ({reblogs: [true|false]}) or
      false for each follow relationship when requesting relationship
      information for an account. This should cause few issues due to an
      object being truthy in many languages, but some modifications may
      need to be made in pickier languages.
      
      Database changes: adds a show_reblogs column (default true,
      non-nullable) to the follows and follow_requests tables. Because
      these are non-nullable, we use the existing MigrationHelpers to
      perform this change without locking those tables, although the
      tables are likely to be small anyway.
      
      Tests included.
      
      See also <https://github.com/glitch-soc/mastodon/pull/212>.
      
      * Rubocop fixes
      
      * Code review changes
      
      * Test fixes
      
      This patchset closes #648 and resolves #3271.
      
      * Rubocop fix
      
      * Revert reblogs defaulting in argument, fix tests
      
      It turns out we needed this for the same reason we needed it in muting:
      if nil gets passed in somehow (most usually by an API client not passing
      any value), we need to detect and handle it.
      
      We could specify a default in the parameter and then also catch nil, but
      there's no great reason to duplicate the default value.
      eeaec398
  15. 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
      58cede48
  16. Nov 17, 2017
    • Eugen Rochko's avatar
      Lists (#5703) · 24cafd73
      Eugen Rochko authored
      * Add structure for lists
      
      * Add list timeline streaming API
      
      * Add list APIs, bind list-account relation to follow relation
      
      * Add API for adding/removing accounts from lists
      
      * Add pagination to lists API
      
      * Add pagination to list accounts API
      
      * Adjust scopes for new APIs
      
      - Creating and modifying lists merely requires "write" scope
      - Fetching information about lists merely requires "read" scope
      
      * Add test for wrong user context on list timeline
      
      * Clean up tests
      24cafd73
    • Eugen Rochko's avatar
      Fix some rubocop style issues (#5730) · 3e90987c
      Eugen Rochko authored
      3e90987c
  17. Nov 16, 2017
    • Renato "Lond" Cerqueira's avatar
      Improve language filter (#5724) · ad207456
      Renato "Lond" Cerqueira authored
      * Scrub text of html before detecting language.
      
      * Detect language on statuses coming from activitypub.
      
      * Fix rubocop comments.
      
      * Remove custom emoji from text before language detection
      ad207456
  18. Nov 07, 2017
  19. Oct 27, 2017
  20. Oct 17, 2017
  21. Oct 16, 2017
    • Eugen Rochko's avatar
      Keep references to all reblogs of a status on home feed (#5419) · 34118169
      Eugen Rochko authored
      * Keep references to all reblogs of a status on home feed
      
      When inserting reblog: Add to set of reblogs of this status on
      the feed, if original status was present in the feed, add it to
      that set as well.
      
      When removing a reblog: Remove it from that set. Take random
      remaining item from the set. If one exists, re-insert it into feed,
      otherwise do not re-insert anything.
      
      Fix #4210
      
      * When original is removed, toss out reblog references
      34118169
    • Eugen Rochko's avatar
      Ensure that feed renegeration restores non-zero items (#5409) · 7cc71748
      Eugen Rochko authored
      Fix #5398
      
      Ordering the home timeline query by account_id meant that the first
      100 items belonged to a single account. There was also no reason to
      reverse-iterate over the statuses. Assuming the user accesses the
      feed halfway-through, it's better to have recent statuses already
      available at the top. Therefore working from newer->older is ideal.
      
      If the algorithm ends up filtering all items out during last-mile
      filtering, repeat again a page further. The algorithm terminates
      when either at least one item has been added, or if the database
      query returns nothing (end of data reached)
      7cc71748
    • unarist's avatar
      Fix un-reblogged status being at wrong position in the home timeline (#5418) · 6f490b4b
      unarist authored
      We've changed un-reblogging behavior when we implement Snowflake, to insert un-reblogged status at the position reblogging status existed.
      
      However, our API expects home timeline is ordered by status ids, and max_id/since_id filters by zset score. Due to this, un-reblogged status appears as a last item of result set, and timeline expansion may skips many statuses.
      
      So this reverts that change...reblogged status inserted at corresponding position to its id.
      6f490b4b
    • Nolan Lawson's avatar
      Add option to reduce motion (#5393) · fa0be3f8
      Nolan Lawson authored
      * Add option to reduce motion
      
      * Use HOC to wrap all Motion calls
      
      * fix case-sensitive issue
      
      * Avoid updating too frequently
      
      * Get rid of unnecessary change to _simple_status.html.haml
      fa0be3f8
  22. Oct 14, 2017
  23. Oct 13, 2017
  24. Oct 08, 2017
  25. Oct 07, 2017
  26. Oct 06, 2017
Loading