Files
danbooru/test/unit
evazion 4ef8178bd1 sources: remove canonical_url method.
Refactor source strategies to remove the `canonical_url` method.

`canonical_url` returned the URL that should be used as the source of
the post after upload. Now we simply use `Source::URL#page_url` to
determine the source after upload. If the source is an image URL that is
convertible to a page URL, then the image URL is used as the source. If
the source is an image URL that is not convertible to a page URL, then
the page URL is used as the source.

This simplifies source strategies so that all they have to care about is
implementing the `Source::URL#page_url` and `Sources::Strategies#page_url`
methods, and the preferred source will be chosen for posts automatically.
2022-03-23 23:38:06 -05:00
..
2022-03-15 05:14:56 -05:00
2020-03-21 21:07:35 -05:00
2022-03-18 02:06:30 -05:00
2020-06-20 00:20:39 -05:00
2022-01-15 22:02:47 -06:00
2021-01-11 05:12:09 -06:00
2021-12-09 13:20:26 -06:00