From 56ad654a025d0c7edec60cdaa5bbcbb448c2c4ef Mon Sep 17 00:00:00 2001
From: cel <107010984+orchidsage@users.noreply.github.com>
Date: Wed, 17 Aug 2022 17:35:45 +0100
Subject: [PATCH] Add Fediverse, Matrix and XMPP social links (#2044)
---
models/socialHandle.go | 12 ++
webroot/img/platformlogos/fediverse.svg | 162 +++++++++++++++++++
webroot/img/platformlogos/matrix.svg | 14 ++
webroot/img/platformlogos/xmpp.svg | 120 ++++++++++++++
webroot/js/components/platform-logos-list.js | 2 +-
5 files changed, 309 insertions(+), 1 deletion(-)
create mode 100644 webroot/img/platformlogos/fediverse.svg
create mode 100644 webroot/img/platformlogos/matrix.svg
create mode 100644 webroot/img/platformlogos/xmpp.svg
diff --git a/models/socialHandle.go b/models/socialHandle.go
index 0f024d8e9..9c0aefd6a 100644
--- a/models/socialHandle.go
+++ b/models/socialHandle.go
@@ -20,6 +20,18 @@ func GetSocialHandle(platform string) *SocialHandle {
// GetAllSocialHandles will return a list of all the social platforms we support.
func GetAllSocialHandles() map[string]SocialHandle {
socialHandlePlatforms := map[string]SocialHandle{
+ "fediverse": {
+ Platform: "Fediverse",
+ Icon: "/img/platformlogos/fediverse.svg",
+ },
+ "matrix": {
+ Platform: "Matrix",
+ Icon: "/img/platformlogos/matrix.svg",
+ },
+ "xmpp": {
+ Platform: "XMPP",
+ Icon: "/img/platformlogos/xmpp.svg",
+ },
"bandcamp": {
Platform: "Bandcamp",
Icon: "/img/platformlogos/bandcamp.svg",
diff --git a/webroot/img/platformlogos/fediverse.svg b/webroot/img/platformlogos/fediverse.svg
new file mode 100644
index 000000000..1af05f6d6
--- /dev/null
+++ b/webroot/img/platformlogos/fediverse.svg
@@ -0,0 +1,162 @@
+
+
+
+
diff --git a/webroot/img/platformlogos/matrix.svg b/webroot/img/platformlogos/matrix.svg
new file mode 100644
index 000000000..784896156
--- /dev/null
+++ b/webroot/img/platformlogos/matrix.svg
@@ -0,0 +1,14 @@
+
+
+
diff --git a/webroot/img/platformlogos/xmpp.svg b/webroot/img/platformlogos/xmpp.svg
new file mode 100644
index 000000000..849a52f77
--- /dev/null
+++ b/webroot/img/platformlogos/xmpp.svg
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/webroot/js/components/platform-logos-list.js b/webroot/js/components/platform-logos-list.js
index d5c051e56..63c431195 100644
--- a/webroot/js/components/platform-logos-list.js
+++ b/webroot/js/components/platform-logos-list.js
@@ -33,7 +33,7 @@ function SocialIcon(props) {
return html`