matrix icon for matrix.to links

This commit is contained in:
Lauren Liberda 2021-12-15 19:43:53 +01:00
parent 967b7fe3dd
commit cd8ae73b8c
No known key found for this signature in database
GPG Key ID: 734C629FD04BD319
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ const LINK_PROVIDERS = {
icon: 'mastodon',
iconSet: 'b',
},
matrix: {
regex: '^https?://(?:www.)?matrix\\.to/#/([^/?]+)',
icon: 'https://raw.githubusercontent.com/vector-im/logos/master/matrix/matrix-favicon.png',
},
};
export default {