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
+45 -15
View File
@@ -86,6 +86,12 @@ msgstr "Новый пост"
msgid "Edit {0}"
msgstr "Редактировать"
# 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 ""
@@ -260,6 +266,17 @@ msgstr "Администрируется"
msgid "Runs Plume {0}"
msgstr "Работает на Plume {0}"
#, fuzzy
msgid "Follow {}"
msgstr "Подписаться"
#, fuzzy
msgid "Login to follow"
msgstr "Войдите, чтобы продвигать посты"
msgid "Enter your full username to follow"
msgstr ""
msgid "Edit your account"
msgstr "Редактировать ваш аккаунт"
@@ -571,6 +588,16 @@ msgstr "Войти"
msgid "Username, or email"
msgstr "Имя пользователя или адрес электронной почты"
msgid "Interact with {}"
msgstr ""
#, fuzzy
msgid "Log in to interact"
msgstr "Войдите, чтобы отмечать понравившиеся посты"
msgid "Enter your full username to interact"
msgstr ""
msgid "Publish"
msgstr "Опубликовать"
@@ -665,7 +692,9 @@ msgid "Boost"
msgstr "Продвинуть"
#, 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 ""
"Войдите или используйте свой Fediverse-аккаунт, чтобы взаимодействовать с "
"этой статьёй"
@@ -800,6 +829,21 @@ msgstr "Статьи, отмеченные тегом «{0}»"
msgid "There are currently no articles with such a tag"
msgstr "Сейчас нет статей с таким тегом"
#, fuzzy
msgid "I'm from this instance"
msgstr "Об этом узле"
msgid "I'm from another instance"
msgstr ""
# src/template_utils.rs:225
msgid "Example: user@plu.me"
msgstr ""
#, fuzzy
msgid "Continue to your instance"
msgstr "Настроить ваш узел"
msgid "Upload"
msgstr "Загрузить"
@@ -914,9 +958,6 @@ msgstr "Использовать как аватар"
#~ msgid "Unfollow"
#~ msgstr "Подписаться"
#~ msgid "Follow"
#~ msgstr "Подписаться"
#, fuzzy
#~ msgid "No articles to see here yet."
#~ msgstr "Здесь пока нет постов."
@@ -998,9 +1039,6 @@ msgstr "Использовать как аватар"
#~ msgid "Comment \"{0}\""
#~ msgstr "Комментарий \"{0}\""
#~ msgid "Configure your instance"
#~ msgstr "Настроить ваш узел"
#~ msgid "Let's go!"
#~ msgstr "Поехали!"
@@ -1059,14 +1097,6 @@ msgstr "Использовать как аватар"
#~ msgid "Invalid email"
#~ msgstr "Неправильный адрес электронной почты"
#, fuzzy
#~ msgid "Login to like"
#~ msgstr "Войдите, чтобы отмечать понравившиеся посты"
#, fuzzy
#~ msgid "Login to boost"
#~ msgstr "Войдите, чтобы продвигать посты"
#, fuzzy
#~ msgid "Personal feed"
#~ msgstr "Локальная лента"