- May 05, 2017
-
-
masarakki authored
-
Eugen Rochko authored
* Fix #2473 - Use sidekiq scheduler to refresh PuSH subscriptions instead of cron Fix an issue where / in domain would raise exception in TagManager#normalize_domain PuSH subscriptions refresh done in a round-robin way to avoid hammering a single server's hub in sequence. Correct handling of failures/retries through Sidekiq (see also #2613). Optimize Account#with_followers scope. Also, since subscriptions are now delegated to Sidekiq jobs, an uncaught exception will not stop the entire refreshing operation halfway through Fix #2702 - Correct user agent header on outgoing http requests * Add test for SubscribeService * Extract #expiring_accounts into method * Make mastodon:push:refresh no-op * Queues are now defined in sidekiq.yml * Queues are now in sidekiq.yml
-
- May 03, 2017
-
-
Matt Jankowski authored
* add failing en specs * add cld2 gem * Replace WhatLanguage with CLD
-
- Apr 29, 2017
-
-
Yamagishi Kazutoshi authored
* Add target=_blank to user note Open new window when click link from user profile in remote instance. * fix rubocop
-
- Apr 27, 2017
-
-
Yamagishi Kazutoshi authored
-
Eugen Rochko authored
* OEmbed support for PreviewCard * Improve ProviderDiscovery code failure treatment * Do not crawl links if there is a content warning, since those don't display a link card anyway * Reset db schema * Fresh migrate * Fix rubocop style issues Fix #1681 - return existing access token when applicable instead of creating new * Fix test * Extract http client to helper * Improve oembed controller
- Apr 25, 2017
-
-
Yamagishi Kazutoshi authored
-
Eugen authored
* Fix #2119 - Whenever about to send a HTTP request, normalize the URI * Add test for IDN request in FetchLinkCardService * Perform IDN normalization on domains before they are stored in the DB
-
- Apr 23, 2017
-
-
178inaba authored
-
ThibG authored
This provides a hotfix for outbound salmon requests to other Mastodon instances as they currently will try to resovle user@WEB_DOMAIN instead of user@LOCAL_DOMAIN (see #2012 and #20312). Furthermore, this should ease transition from users switching from LOCAL_DOMAIN = WEB_DOMAIN to another LOCAL_DOMAIN when WEB_DOMAIN does not change.
-
- Apr 22, 2017
-
-
Matt Jankowski authored
* Add html lang attributes around statuses * Remove urls from language detection
-
Eugen authored
* Fix #1057 (close #1819) - Move HTML-formatted bio from <poco:note /> to <summary type="html" /> * Ensure <poco:note /> is plaintext for remote accounts, also, by stripping out HTML
-
- Apr 21, 2017
-
-
Mingye Wang authored
This commit fixes hashtag_html so it correctly handles matches with multiple hash-signs. Bug located by @over9001, initial fix suggested by @nightpool.
-
Matt Jankowski authored
* Add missing fields group on preferences page * Clean up settings/preferences controller * Extract a UserSettingsDecorator
-
- Apr 19, 2017
-
-
abcang authored
* fix character escaping in URL * add tests * put a comma after the last item * add HTML escape test
-
- Apr 18, 2017
-
-
Matt Jankowski authored
* Extract detect_language to separate class * Use default locale, not just en * Add spec to confirm that whatlanguage cant identify empty string * Allow account locale to override default in language detector * PostStatusService supplies an account to detect language
-
- Apr 17, 2017
-
-
Eugen authored
Also improve efficiency of the mastodon:maintenance:add_static_avatars task
-
- Apr 16, 2017
-
-
Eugen authored
* Fix #1870 - Strip control characters out of strings in AtomSerializer * Adjust according to comment by @alpaca-tc
-
Eugen authored
* Add language detection via WhatLanguage and (de)serialization of it through Atom * Fix default language in ProcessFeedService * Re-add newline before 'react-rails' Gem to fix groupings Fixes Code Climate issue
-
Eugen authored
-
- Apr 15, 2017
-
-
ThibG authored
* Allow running mastodon on a different domain as the one used for identifying users * Alter documentation of WEB_DOMAIN to make clear it shouldn't be used unless the admin knows what they are doing * Compare to web_domain instead of local_domain when dealing with feeds/API * Correctly identify mentions to local accounts Mentions URLs point to the person's web profile, i.e., the user page served on WEB_DOMAIN.
-
- Apr 14, 2017
-
-
Effy Elden authored
-
- Apr 13, 2017
-
-
Eugen authored
Fix username styling regression introduced in #1063 Fix report screen background regression introduced in #1415
-
Eugen authored
When transmitting data in a HTML-encoded element like <content type="html" />, relying on newlines being preserved is not wise, since HTML by itself does not care for newlines - it cares for <p> and <br> Additional fix: reset NSFW toggle after sending toot
-
Matt Jankowski authored
* Add `Presenters` group to SimpleCov configuration * Move validators to app/validators, add to simplecov config
-
- Apr 12, 2017
-
-
Ben Roberts authored
* significant improvement in microformats markup This is a huge improvement and I believe will close #965. Had these microformats reviewed by others in the community to help ensure they are at least correct, if not complete. I did not want to change the structure of the page, and so there it does not fully mark up the entire ancestry chain, or reply chain, only the direct decendants and direct ancestors are correctly associated, but this is likely fine as the most important bit is to have access to the urls for those toots which are now correctly fetchable. * improve code climate * trying to pass code climate tests * code climate * fix p-summary for content warning posts * fix error introduced when merging via github
-
Matt Jankowski authored
* Remove trailing whitespace * Use query methods instead of explicit .blank? checks
-
Matt Jankowski authored
* Add WebfingerResource class to extract usernames * Use WebfingerResource in xrd#webfinger
-
- Apr 10, 2017
-
-
Matt Jankowski authored
The `Status` class has a default order on it, so when this query gets built and gets all the way to `find_in_batches` there is an order already there. When `find_in_batches` is run it discards any existing order on the query, and emits a warning to the logs if there is one there. This change removes the order prior calling `find_in_batches`, which will stop the logged warning from occurring as well.
-
Matt Jankowski authored
* Consolidate webfinger string creation under Account#to_webfinger_s * Introduce Account#local_username_and_domain for consolidation
-
Rachel H authored
-
- Apr 09, 2017
-
-
Eugen authored
-
- Apr 07, 2017
-
-
Joël Quenneville authored
Checking reblog vs original status was happening in multiple places across the app. For views, this logic was encapsulated in a helper method named `proper_status` but in the other layers of the app, the logic was duplicated. Because the logic is used at all layers of the app, we extracted it into a `Status#proper` method on the model and changed all uses of the logic to use this method. There is now a single source of truth for this condition. We added test coverage to untested methods that got refactored.
-
Eugen Rochko authored
-
Eugen Rochko authored
-
Eugen authored
-
Eugen authored
* Rewrite Atom generation from stream entries to use Ox instead of Nokogiri::Builder StreamEntry is now limited to only statuses, which allows some optimization. Removed extra queries on AccountsController#show. AtomSerializer instead of AtomBuilderHelper used in AccountsController#show, StreamEntriesController#show, StreamEntryRenderer and PubSubHubbub::DistributionWorker PubSubHubbub::DistributionWorker moves n+1 DomainBlock query to PubSubHubbub::DeliveryWorker instead. All Salmon slaps that aren't based on StreamEntry still use AtomBuilderHelper and Nokogiri * All Salmon slaps now use Ox instead of Nokogiri. No touch from status on account
-
- Apr 05, 2017
-
-
Eugen Rochko authored
-
Eugen Rochko authored
-