[gimp-web] themes: add a suggestion list to the mastodon instance field for the…



commit 0e3997de7b56f3c956fa9b5319fd199272c669bb
Author: Jehan <jehan girinstud io>
Date:   Sat Oct 15 22:53:00 2022 +0200

    themes: add a suggestion list to the mastodon instance field for the…
    
    … "Share on Mastodon" link.
    
    Someone was suggesting to do this as a response to our Mastodon post where I
    talked about this "Share on" feature, to list the most common instances.
    Actually while writing this list, I wondered if it were the best idea, since the
    whole point of the federation is to have no prefered instance.
    
    Yet it's clear that some are more known, such as mastodon.social (the one
    maintained by the dev team, if I understand). I also added floss.social and
    fosstodon.org since they are obviously oriented FLOSS (and the former is where
    our account is). Same for bsd.network as I saw a few people hosted there.
    I added framapiaf.org and pouet.chapril.org, the ones from the Framasoft and
    April non-profit for FLOSS, and finally mastodon.art and post.lurk.org since
    they have some focus on art (and are used by accounts we follow), which is
    obviously one of our focuses too.
    Finally I added a few instances which I spot seemed to be used quite a bit when
    I looked at what our followers were on: mstdn.social, mamot.fr, mastodon.online,
    chaos.social, mastodon.uno, mastodon.xyz.
    It's far from being exhaustive (nor does it want to be), but hopefully it's
    enough to be helpful to some people while not highlighting too much specific
    instances over others.

 themes/newgimp/templates/article.html | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/themes/newgimp/templates/article.html b/themes/newgimp/templates/article.html
index 9dd79317..b3c96e98 100644
--- a/themes/newgimp/templates/article.html
+++ b/themes/newgimp/templates/article.html
@@ -125,7 +125,24 @@
                   <label for="mastodon-server-address">Your Mastodon instance:</label>
                   <input type="text" name="mastodon-instance"
                          id="mastodon-server-address"
-                         placeholder="https://framapiaf.org";>
+                         list="common-mastodon-instances"
+                         placeholder="https://mastodon.social";>
+                  <datalist id="common-mastodon-instances">
+                      <option value="bsd.network">
+                      <option value="chaos.social">
+                      <option value="floss.social">
+                      <option value="fosstodon.org">
+                      <option value="framapiaf.org">
+                      <option value="mamot.fr">
+                      <option value="mastodon.art">
+                      <option value="mastodon.online">
+                      <option value="mastodon.social">
+                      <option value="mastodon.uno">
+                      <option value="mastodon.xyz">
+                      <option value="mstdn.social">
+                      <option value="post.lurk.org">
+                      <option value="pouet.chapril.org">
+                  </datalist>
                   <input class="mastodon-share-submit" type="submit" form='mastodon-share-{{ 
article.url|urlencode }}'
                          value="Share on your instance"/>
                 </form>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]