Add support for remote interact (#519)

Add support for remote interaction ([this thing](https://eldritch.cafe/users/Barmaid/remote_follow) in mastodon)

- [x] create the endpoint dispatching remote interactions to local pages
- [x] add this endpoint to web-finger
- [x] propose remote interaction when following and not connected
- [x] propose remote interaction when liking/sharing and not connected
- [x] propose remote interaction when commenting and not connected
- [x] fetch posts/comments we don't know but remote interaction was requested for ?
This commit is contained in:
fdb-hiroshima
2019-04-17 21:09:07 +01:00
committed by Baptiste Gelez
parent 12efe721cc
commit 0d708e1639
28 changed files with 1173 additions and 481 deletions
+46 -16
View File
@@ -81,6 +81,12 @@ msgstr "Nowy wpis"
msgid "Edit {0}"
msgstr "Edytuj {0}"
# src/routes/user.rs:222
msgid ""
"Couldn't obtain enough information about your account. Please make sure your "
"username is correct."
msgstr ""
# src/routes/reshares.rs:47
msgid "To reshare a post, you need to be logged in"
msgstr ""
@@ -242,6 +248,17 @@ msgstr "Administrowany przez"
msgid "Runs Plume {0}"
msgstr "Działa na Plume {0}"
#, fuzzy
msgid "Follow {}"
msgstr "Obserwuj"
#, fuzzy
msgid "Login to follow"
msgstr "Zaloguj się aby podbić"
msgid "Enter your full username to follow"
msgstr ""
msgid "Edit your account"
msgstr "Edytuj swoje konto"
@@ -547,6 +564,16 @@ msgstr "Zaloguj się"
msgid "Username, or email"
msgstr "Nazwa użytkownika lub adres e-mail"
msgid "Interact with {}"
msgstr ""
#, fuzzy
msgid "Log in to interact"
msgstr "Zaloguj się aby polubić"
msgid "Enter your full username to interact"
msgstr ""
msgid "Publish"
msgstr "Opublikuj"
@@ -635,7 +662,9 @@ msgid "Boost"
msgstr "Podbij"
#, fuzzy
msgid "Log in, or use your Fediverse account to interact with this article"
msgid ""
"{0}Log in{1}, or {2}use your Fediverse account{3} to interact with this "
"article"
msgstr ""
"Zaloguj się lub użyj konta w Fediwersum, aby wejść w interakcje z tym "
"artykułem"
@@ -757,6 +786,22 @@ msgstr "Artykuły oznaczone „{0}”"
msgid "There are currently no articles with such a tag"
msgstr "Obecnie nie istnieją artykuły z tym tagiem"
#, fuzzy
msgid "I'm from this instance"
msgstr "O tej instancji"
#, fuzzy
msgid "I'm from another instance"
msgstr "innych instancji"
# src/template_utils.rs:225
msgid "Example: user@plu.me"
msgstr ""
#, fuzzy
msgid "Continue to your instance"
msgstr "Skonfiguruj swoją instancję"
msgid "Upload"
msgstr "Wyślij"
@@ -868,9 +913,6 @@ msgstr "Użyj jako awataru"
#~ msgid "Unfollow"
#~ msgstr "Przestań obserwować"
#~ msgid "Follow"
#~ msgstr "Obserwuj"
#, fuzzy
#~ msgid "No articles to see here yet."
#~ msgstr "Brak wpisów do wyświetlenia."
@@ -947,9 +989,6 @@ msgstr "Użyj jako awataru"
#~ msgid "Comment \"{0}\""
#~ msgstr "Komentarz „{0}”"
#~ msgid "Configure your instance"
#~ msgstr "Skonfiguruj swoją instancję"
#~ msgid "Let's go!"
#~ msgstr "Przejdźmy dalej!"
@@ -1020,12 +1059,6 @@ msgstr "Użyj jako awataru"
#~ msgid "Instance settings"
#~ msgstr "Ustawienia instancji"
#~ msgid "Login to like"
#~ msgstr "Zaloguj się aby polubić"
#~ msgid "Login to boost"
#~ msgstr "Zaloguj się aby podbić"
#~ msgid "Create a post"
#~ msgstr "Utwórz wpis"
@@ -1049,6 +1082,3 @@ msgstr "Użyj jako awataru"
#~ msgid "And connected to"
#~ msgstr "Połączony z"
#~ msgid "other instances"
#~ msgstr "innych instancji"