1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 15:16:19 +09:00
mastodon/app/controllers
Eugen Rochko e7adbf572a Switch to static URIs, new URI format in both protocols for new statuses (#4815)
* Decouple Status#local? from uri being nil

* Replace on-the-fly URI generation with stored URIs

- Generate URI in after_save hook for local statuses
- Use static value in TagManager when available, fallback to tag format
- Make TagManager use ActivityPub::TagManager to understand new format
- Adjust tests

* Use other heuristic for locality of old statuses, do not perform long query

* Exclude tombstone stream entries from Atom feed

* Prevent nil statuses from landing in Pubsubhubbub::DistributionWorker

* Fix URI not being saved (#4818)

* Add more specs for Status

* Save generated uri immediately

and also fix method order to minimize diff.

* Fix alternate HTML URL in Atom

* Fix tests

* Remove not-null constraint from statuses migration to speed it up
2017-09-06 19:01:28 +02:00
..
activitypub Instantly upgrade account to ActivityPub if we receive ActivityPub payload (#4766) 2017-09-03 01:11:23 +02:00
admin Fix typo in admin/status_controller.rb (#4679) 2017-08-24 04:03:52 +02:00
api Fix #4794 - Fake instant follow in API response when account is believed unlocked (#4799) 2017-09-05 17:48:13 +02:00
auth Redirect to PasswordController#new when reset_password_token is invalid (#4506) 2017-08-03 17:45:45 +02:00
concerns Support more variations of ActivityPub keyId in signature (#4630) 2017-08-21 22:57:34 +02:00
oauth Fix #1165 - before_action was called before protect_from_forgery 2017-04-08 02:30:50 +02:00
settings authorize-follow-requests-after-unlocking (#4658) 2017-08-26 12:40:03 +02:00
well_known Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper (#2388) 2017-06-02 22:21:36 +02:00
about_controller.rb Redesign the landing page, mount public timeline on it (#4122) 2017-07-11 15:27:59 +02:00
account_follow_controller.rb Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
account_unfollow_controller.rb Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
accounts_controller.rb Switch to static URIs, new URI format in both protocols for new statuses (#4815) 2017-09-06 19:01:28 +02:00
application_controller.rb Add "signed in as" header to some pages (#4523) 2017-08-05 04:24:58 +02:00
authorize_follows_controller.rb Add "signed in as" header to some pages (#4523) 2017-08-05 04:24:58 +02:00
follower_accounts_controller.rb Set correct content-type for ActivityPub JSON (#4592) 2017-08-14 04:16:43 +02:00
following_accounts_controller.rb Set correct content-type for ActivityPub JSON (#4592) 2017-08-14 04:16:43 +02:00
home_controller.rb Web Push Notifications (#3243) 2017-07-13 22:15:32 +02:00
intents_controller.rb Add protocol handler. Handle follow intents (#4511) 2017-08-14 04:53:31 +02:00
manifests_controller.rb Fix #3063 - Add dynamic app manifest (#3563) 2017-06-06 19:29:42 +02:00
media_controller.rb Extract authorization policy for viewing statuses (#3150) 2017-05-29 18:22:22 +02:00
remote_follow_controller.rb Add "signed in as" header to some pages (#4523) 2017-08-05 04:24:58 +02:00
shares_controller.rb Make share intent modal to make "signed in as" shown. (#4611) 2017-08-16 16:48:44 +02:00
statuses_controller.rb Update status embeds (#4742) 2017-08-30 10:23:43 +02:00
stream_entries_controller.rb Update status embeds (#4742) 2017-08-30 10:23:43 +02:00
tags_controller.rb Set correct content-type for ActivityPub JSON (#4592) 2017-08-14 04:16:43 +02:00