Commit Graph

5 Commits

Author SHA1 Message Date
Earlopain
2e140a5607
[Posts] Use addressable for source parsing
Fixes no icons for links with square brackets
2024-03-18 18:59:19 +01:00
Cinder
74e3286779
[Misc] External favicon tweaks (#621)
* Address the baraag/mastodon icon situation

* Add a blogspot.com icon

* Add a yiff.life icon

* Add a nijie.info icon

* Add an f-list.net icon

* Fix the issue with the AO3 icon

* Add a couple of aliases for existing icons

* Misnamed AO3 file

* Add a wordpress.com icon

* Add a wikimedia.org icon

* Add a furbooru.org icon

* Add an alias to the Patreon CDN

* Remove the t.co - t.me alias

* Misnamed wikimedia.org file

* Add a fandom.com icon

* Add an exhentai.org alias
2024-02-28 17:55:00 +01:00
Earlopain
2d7e507555
[Posts] Show an icon for non-matches urls 2024-02-27 15:48:52 +01:00
Earlopain
e1a2c8697e
[Posts] Improve source favicon display on mobile
Makes them somewhat fit to the font instead of being left at 16px
2024-02-26 19:09:45 +01:00
Cinder
e1e4b94a50
[Misc] External link favicons (now without a spritesheet) (#610)
* [Misc] Add favicons to some external links

* RuboCop changes from master

* Use packs for favicon images

This works better with caching.
If the file changes, the url changes

* Add favicons to an artists domain list

* Fix aliases

The lookup is done by strings, the keys were symbols

* Add old deviantart cdn alias

* Guard against links with that parse down to no host

http:twitter.com for example

* Tweak flow

* Add basic tests, fix some of what I probably broke

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2024-02-25 20:27:54 +01:00