gourami

[UNMAINTAINED] Activitypub server in Rust
Log | Files | Refs | README | LICENSE

commit 7d249b9a91f02ed08fc66c60b61f8595fc6f5746
parent dcdb036154b9420d3399fc91545a6b711ff71720
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Fri,  5 Jun 2020 16:10:25 -0500

Change language among public posts

Diffstat:
Msample_env | 2--
Mtemplates/createnote.html | 2+-
Mtemplates/server_info.html | 2+-
Mtemplates/single_note.html | 3+--
Mtemplates/user_header.html | 4++--
5 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/sample_env b/sample_env @@ -2,8 +2,6 @@ export DATABASE_URL=sample.db export RUST_LOG=debug,hyper=info,html5ever=info export GOURAMI_DOMAIN="localhost:3030" export SSL_ENABLED="0" -# Public instances will make all posts visible to anyone -export PUBLIC="0" # Used for http signature verification. Not necessary if you aren't federating your server. # If you are using federation, you'll have to generate these keys. diff --git a/templates/createnote.html b/templates/createnote.html @@ -9,7 +9,7 @@ checked> {% else %} unchecked> {% endif %} -<label for="neighborhood">Share with neighborhood (public)?</label> +<label for="neighborhood">Make public?</label> <input type="hidden" name="redirect_url" value="{{global.page}}"> </form> </div> diff --git a/templates/server_info.html b/templates/server_info.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block content %} <div class="text-block padded"> - Welcome to Gourami, an intentionally small, minimalist, invite-only <a href="https://activitypub.rocks/">ActivityPub</a>-based social network. See the <a href="https://github.com/alexwennerberg/gourami">project page</a> for more info! This server can connect with other Gourami servers or other services that implement ActivityPub through the neighborhood. Be aware that any post that you share with the neibhorhood is potentially public, and won't be deleted from servers it's shared with if you delete it, so be careful! Right now, we are linked with the following actors: + Welcome to Gourami, an intentionally small, minimalist, invite-only <a href="https://activitypub.rocks/">ActivityPub</a>-based social network. See the <a href="https://github.com/alexwennerberg/gourami">project page</a> for more info! This server can connect with other Gourami servers or other services that implement ActivityPub through the neighborhood. Right now, we are linked with the following actors: <br> <table> {% for server in server_mutuals %} diff --git a/templates/single_note.html b/templates/single_note.html @@ -5,8 +5,7 @@ <article class="note"> {% endif %} <div class="note-meta"> - {% if note.note.neighborhood %}<span title="A neighborhood post shared with other servers">🏠</span>{%endif%} - {% if note.note.is_remote %}<span title="A remote post coming from another server">🌎<span>{%endif%} + {% if note.note.neighborhood %}<span title="A public post">🌎</span>{%endif%} <a href="/?note_id={{note.note.id}}">📝{{note.note.id}}</a> <a class="bold" diff --git a/templates/user_header.html b/templates/user_header.html @@ -3,10 +3,10 @@ <b>user:</b> {{ user.username }} (#{{user.id}}) <br> <b>bio:</b> {{user.bio}} + <br> {% match user.email %} {%when Some with (e) %} - {%if user.show_email%} - <br> + {%if user.show_email && global.logged_in %} <b>email:</b> <a href="mailto:{{e}}">{{e}}</a><br> {%endif %} {% when None %}