ActivityPub-federated video streaming platform using P2P directly in your web browser
Add alert if the pod already made friends
Chocobozzzd7c01e7793d8
diff --git a/public/javascripts/index.js b/public/javascripts/index.jsindex 5d42f02e0b..3a02367c86 100644--- a/public/javascripts/index.js+++ b/public/javascripts/index.js@@ -58,6 +58,11 @@url: '/api/v1/pods/makefriends',type: 'GET',dataType: 'json',+ statusCode: {+ 409: function () {+ alert('Already made friends.')+ }+ },success: function () {alert('Made friends!')}