mastodon/app
Claire acdeb162b8
Create instance actor if it hasn't been properly seeded (#15693)
An uncommon but somewhat difficult to digagnose issue is dealing with
improperly-seeded databases. In such cases, instance-signed fetches will
fail with a ActiveRecord::RecordNotFound error, usually caught and handled
as generic 404, leading people to think the remote resource itself has not
been found, while it's the local instance actor that does not exist.

This commit changes the code so that failure to find the instance actor
automatically creates a new one, so that improperly-seeded databases do
not cause any issue.
2021-02-09 18:12:54 +01:00
..
chewy Change `tootctl search deploy` algorithm (#14300) 2020-07-14 18:10:35 +02:00
controllers Create instance actor if it hasn't been properly seeded (#15693) 2021-02-09 18:12:54 +01:00
helpers Change RTL detection to rely on unicode-bidi paragraph by paragraph (#14573) 2020-12-15 12:56:43 +01:00
javascript Change max. image dimensions to 1920x1080px (1080p) (#15690) 2021-02-09 01:21:06 +01:00
lib Fix race conditions on account migration creation (#15597) 2021-02-02 14:49:57 +01:00
mailers Change account suspensions to be reversible by default (#14726) 2020-09-15 14:37:58 +02:00
models Create instance actor if it hasn't been properly seeded (#15693) 2021-02-09 18:12:54 +01:00
policies Fix admins being able to suspend their instance actor (#14567) 2020-12-15 17:23:58 +01:00
presenters Use Enumerable#filter_map in more places (#15527) 2021-01-22 16:28:15 +01:00
serializers Use existing FeaturedTag serializer and delete AccountFeaturedTag serializer (#15415) 2020-12-23 16:43:38 +01:00
services Fix first return value of FetchLinkCardService.html method (#15630) 2021-01-25 09:22:41 +01:00
validators Optimize some regex matching (#15528) 2021-01-22 10:09:08 +01:00
views Fix Google Translate breaking web interface (#15610) 2021-01-21 14:29:54 +01:00
workers Fix being able to import more than allowed number of follows (#15384) 2020-12-26 23:52:46 +01:00