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
+357 -328
View File
@@ -88,6 +88,10 @@ msgstr ""
msgid "Edit {0}"
msgstr ""
# src/routes/posts.rs:630
msgid "Couldn't obtain enough information about your account. Please make sure your username is correct."
msgstr ""
# src/routes/reshares.rs:51
msgid "To reshare a post, you need to be logged in"
msgstr ""
@@ -112,66 +116,54 @@ msgstr ""
msgid "To access your dashboard, you need to be logged in"
msgstr ""
# src/routes/user.rs:180
# src/routes/user.rs:244
msgid "To subscribe to someone, you need to be logged in"
msgstr ""
# src/routes/user.rs:280
# src/routes/user.rs:344
msgid "To edit your profile, you need to be logged in"
msgstr ""
msgid "Plume"
msgid "Reset your password"
msgstr ""
msgid "Menu"
# src/template_utils.rs:217
msgid "E-mail"
msgstr ""
msgid "Search"
# src/template_utils.rs:220
msgid "Optional"
msgstr ""
msgid "Dashboard"
msgid "Send password reset link"
msgstr ""
msgid "Notifications"
msgid "Check your inbox!"
msgstr ""
msgid "Log Out"
msgid "We sent a mail to the address you gave us, with a link to reset your password."
msgstr ""
msgid "My account"
msgid "Log in"
msgstr ""
msgid "Log In"
# src/template_utils.rs:217
msgid "Username, or email"
msgstr ""
msgid "Register"
# src/template_utils.rs:217
msgid "Password"
msgstr ""
msgid "About this instance"
# src/template_utils.rs:217
msgid "New password"
msgstr ""
msgid "Source code"
# src/template_utils.rs:217
msgid "Confirmation"
msgstr ""
msgid "Matrix room"
msgstr ""
msgid "Administration"
msgstr ""
msgid "Welcome to {}"
msgstr ""
msgid "Latest articles"
msgstr ""
msgid "Your feed"
msgstr ""
msgid "Federated feed"
msgstr ""
msgid "Local feed"
msgid "Update password"
msgstr ""
msgid "Administration of {0}"
@@ -192,24 +184,56 @@ msgstr ""
msgid "Block"
msgstr ""
msgid "Ban"
msgid "About {0}"
msgstr ""
msgid "Home to <em>{0}</em> people"
msgstr ""
msgid "Who wrote <em>{0}</em> articles"
msgstr ""
msgid "And are connected to <em>{0}</em> other instances"
msgstr ""
msgid "Administred by"
msgstr ""
msgid "Runs Plume {0}"
msgstr ""
msgid "All the articles of the Fediverse"
msgstr ""
msgid "Latest articles"
msgstr ""
msgid "Your feed"
msgstr ""
msgid "Federated feed"
msgstr ""
msgid "Local feed"
msgstr ""
msgid "Welcome to {}"
msgstr ""
msgid "Articles from {}"
msgstr ""
msgid "Ban"
msgstr ""
msgid "Nothing to see here yet. Try subscribing to more people."
msgstr ""
# src/template_utils.rs:217
msgid "Name"
msgid "Administration"
msgstr ""
# src/template_utils.rs:220
msgid "Optional"
# src/template_utils.rs:217
msgid "Name"
msgstr ""
msgid "Allow anyone to register here"
@@ -231,180 +255,7 @@ msgstr ""
msgid "Save these settings"
msgstr ""
msgid "About {0}"
msgstr ""
msgid "Home to <em>{0}</em> people"
msgstr ""
msgid "Who wrote <em>{0}</em> articles"
msgstr ""
msgid "And are connected to <em>{0}</em> other instances"
msgstr ""
msgid "Administred by"
msgstr ""
msgid "Runs Plume {0}"
msgstr ""
msgid "Edit your account"
msgstr ""
msgid "Your Profile"
msgstr ""
msgid "To change your avatar, upload it to your gallery and then select from there."
msgstr ""
msgid "Upload an avatar"
msgstr ""
# src/template_utils.rs:217
msgid "Display name"
msgstr ""
# src/template_utils.rs:217
msgid "Email"
msgstr ""
msgid "Summary"
msgstr ""
msgid "Update account"
msgstr ""
msgid "Danger zone"
msgstr ""
msgid "Be very careful, any action taken here can't be cancelled."
msgstr ""
msgid "Delete your account"
msgstr ""
msgid "Sorry, but as an admin, you can't leave your own instance."
msgstr ""
msgid "Your Dashboard"
msgstr ""
msgid "Your Blogs"
msgstr ""
msgid "You don't have any blog yet. Create your own, or ask to join one."
msgstr ""
msgid "Start a new blog"
msgstr ""
msgid "Your Drafts"
msgstr ""
msgid "Your media"
msgstr ""
msgid "Go to your gallery"
msgstr ""
msgid "Create your account"
msgstr ""
msgid "Create an account"
msgstr ""
# src/template_utils.rs:217
msgid "Username"
msgstr ""
# src/template_utils.rs:217
msgid "Password"
msgstr ""
# src/template_utils.rs:217
msgid "Password confirmation"
msgstr ""
msgid "Apologies, but registrations are closed on this particular instance. You can, however, find a different one."
msgstr ""
msgid "Articles"
msgstr ""
msgid "Subscribers"
msgstr ""
msgid "Subscriptions"
msgstr ""
msgid "Atom feed"
msgstr ""
msgid "Recently boosted"
msgstr ""
msgid "Admin"
msgstr ""
msgid "It is you"
msgstr ""
msgid "Edit your profile"
msgstr ""
msgid "Open on {0}"
msgstr ""
msgid "Unsubscribe"
msgstr ""
msgid "Subscribe"
msgstr ""
msgid "{0}'s subscriptions"
msgstr ""
msgid "{0}'s subscribers"
msgstr ""
msgid "Respond"
msgstr ""
msgid "Are you sure?"
msgstr ""
msgid "Delete this comment"
msgstr ""
msgid "What is Plume?"
msgstr ""
msgid "Plume is a decentralized blogging engine."
msgstr ""
msgid "Authors can manage multiple blogs, each as its own website."
msgstr ""
msgid "Articles are also visible on other Plume instances, and you can interact with them directly from other platforms like Mastodon."
msgstr ""
msgid "Read the detailed rules"
msgstr ""
msgid "None"
msgstr ""
msgid "No description"
msgstr ""
msgid "View all"
msgstr ""
msgid "By {0}"
msgstr ""
msgid "Draft"
msgid "Search"
msgstr ""
msgid "Your query"
@@ -496,38 +347,137 @@ msgstr ""
msgid "No more results for your query"
msgstr ""
msgid "Reset your password"
msgid "Edit \"{}\""
msgstr ""
msgid "Description"
msgstr ""
msgid "You can upload images to your gallery, to use them as blog icons, or banners."
msgstr ""
msgid "Upload images"
msgstr ""
msgid "Blog icon"
msgstr ""
msgid "Blog banner"
msgstr ""
msgid "Update blog"
msgstr ""
msgid "Danger zone"
msgstr ""
msgid "Be very careful, any action taken here can't be reversed."
msgstr ""
msgid "Permanently delete this blog"
msgstr ""
msgid "{}'s icon"
msgstr ""
msgid "New article"
msgstr ""
msgid "Edit"
msgstr ""
msgid "There's one author on this blog: "
msgid_plural "There are {0} authors on this blog: "
msgstr[0] ""
msgid "No posts to see here yet."
msgstr ""
msgid "New Blog"
msgstr ""
msgid "Create a blog"
msgstr ""
msgid "Create blog"
msgstr ""
msgid "Articles tagged \"{0}\""
msgstr ""
msgid "There are currently no articles with such a tag"
msgstr ""
msgid "Written by {0}"
msgstr ""
msgid "Are you sure?"
msgstr ""
msgid "Delete this article"
msgstr ""
msgid "Draft"
msgstr ""
msgid "All rights reserved."
msgstr ""
msgid "This article is under the {0} license."
msgstr ""
msgid "Unsubscribe"
msgstr ""
msgid "Subscribe"
msgstr ""
msgid "One like"
msgid_plural "{0} likes"
msgstr[0] ""
msgid "I don't like this anymore"
msgstr ""
msgid "Add yours"
msgstr ""
msgid "One boost"
msgid_plural "{0} boosts"
msgstr[0] ""
msgid "I don't want to boost this anymore"
msgstr ""
msgid "Boost"
msgstr ""
msgid "{0}Log in{1}, or {2}use your Fediverse account{3} to interact with this article"
msgstr ""
msgid "Comments"
msgstr ""
# src/template_utils.rs:217
msgid "New password"
msgid "Content warning"
msgstr ""
# src/template_utils.rs:217
msgid "Confirmation"
msgid "Your comment"
msgstr ""
msgid "Update password"
msgid "Submit comment"
msgstr ""
msgid "Check your inbox!"
msgid "No comments yet. Be the first to react!"
msgstr ""
msgid "We sent a mail to the address you gave us, with a link to reset your password."
msgid "Interact with {}"
msgstr ""
# src/template_utils.rs:217
msgid "E-mail"
msgid "Log in to interact"
msgstr ""
msgid "Send password reset link"
msgstr ""
msgid "Log in"
msgstr ""
# src/template_utils.rs:217
msgid "Username, or email"
msgid "Enter your full username to interact"
msgstr ""
msgid "Publish"
@@ -576,146 +526,93 @@ msgstr ""
msgid "Publish your post"
msgstr ""
msgid "Written by {0}"
msgid "I'm from this instance"
msgstr ""
msgid "Edit"
msgstr ""
msgid "Delete this article"
msgstr ""
msgid "All rights reserved."
msgstr ""
msgid "This article is under the {0} license."
msgstr ""
msgid "One like"
msgid_plural "{0} likes"
msgstr[0] ""
msgid "I don't like this anymore"
msgstr ""
msgid "Add yours"
msgstr ""
msgid "One boost"
msgid_plural "{0} boosts"
msgstr[0] ""
msgid "I don't want to boost this anymore"
msgstr ""
msgid "Boost"
msgstr ""
msgid "Log in, or use your Fediverse account to interact with this article"
msgstr ""
msgid "Comments"
msgid "I'm from another instance"
msgstr ""
# src/template_utils.rs:217
msgid "Content warning"
msgid "Username"
msgstr ""
msgid "Your comment"
# src/template_utils.rs:225
msgid "Example: user@plu.me"
msgstr ""
msgid "Submit comment"
msgid "Continue to your instance"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgid "View all"
msgstr ""
msgid "Invalid CSRF token"
msgid "By {0}"
msgstr ""
msgid "Something is wrong with your CSRF token. Make sure cookies are enabled in you browser, and try reloading this page. If you continue to see this error message, please report it."
msgid "What is Plume?"
msgstr ""
msgid "Page not found"
msgid "Plume is a decentralized blogging engine."
msgstr ""
msgid "We couldn't find this page."
msgid "Authors can manage multiple blogs, each as its own website."
msgstr ""
msgid "The link that led you here may be broken."
msgid "Articles are also visible on other Plume instances, and you can interact with them directly from other platforms like Mastodon."
msgstr ""
msgid "The content you sent can't be processed."
msgid "Create your account"
msgstr ""
msgid "Maybe it was too long."
msgid "Read the detailed rules"
msgstr ""
msgid "You are not authorized."
msgid "Respond"
msgstr ""
msgid "Internal server error"
msgid "Delete this comment"
msgstr ""
msgid "Something broke on our side."
msgid "None"
msgstr ""
msgid "Sorry about that. If you think this is a bug, please report it."
msgid "No description"
msgstr ""
msgid "Edit \"{}\""
msgid "Notifications"
msgstr ""
msgid "Description"
msgid "Plume"
msgstr ""
msgid "You can upload images to your gallery, to use them as blog icons, or banners."
msgid "Menu"
msgstr ""
msgid "Upload images"
msgid "Dashboard"
msgstr ""
msgid "Blog icon"
msgid "Log Out"
msgstr ""
msgid "Blog banner"
msgid "My account"
msgstr ""
msgid "Update blog"
msgid "Log In"
msgstr ""
msgid "Be very careful, any action taken here can't be reversed."
msgid "Register"
msgstr ""
msgid "Permanently delete this blog"
msgid "About this instance"
msgstr ""
msgid "New Blog"
msgid "Source code"
msgstr ""
msgid "Create a blog"
msgid "Matrix room"
msgstr ""
msgid "Create blog"
msgstr ""
msgid "{}'s icon"
msgstr ""
msgid "New article"
msgstr ""
msgid "There's one author on this blog: "
msgid_plural "There are {0} authors on this blog: "
msgstr[0] ""
msgid "No posts to see here yet."
msgstr ""
msgid "Articles tagged \"{0}\""
msgstr ""
msgid "There are currently no articles with such a tag"
msgid "Your media"
msgstr ""
msgid "Upload"
@@ -733,21 +630,6 @@ msgstr ""
msgid "Details"
msgstr ""
msgid "Media upload"
msgstr ""
msgid "Useful for visually impaired people, as well as licensing information"
msgstr ""
msgid "Leave it empty, if none is needed"
msgstr ""
msgid "File"
msgstr ""
msgid "Send"
msgstr ""
msgid "Media details"
msgstr ""
@@ -763,8 +645,155 @@ msgstr ""
msgid "Use as an avatar"
msgstr ""
msgid "Log in to boost"
msgid "Media upload"
msgstr ""
msgid "Log in to like"
msgid "Useful for visually impaired people, as well as licensing information"
msgstr ""
msgid "Leave it empty, if none is needed"
msgstr ""
msgid "File"
msgstr ""
msgid "Send"
msgstr ""
msgid "{0}'s subscriptions"
msgstr ""
msgid "Articles"
msgstr ""
msgid "Subscribers"
msgstr ""
msgid "Subscriptions"
msgstr ""
msgid "Your Dashboard"
msgstr ""
msgid "Your Blogs"
msgstr ""
msgid "You don't have any blog yet. Create your own, or ask to join one."
msgstr ""
msgid "Start a new blog"
msgstr ""
msgid "Your Drafts"
msgstr ""
msgid "Go to your gallery"
msgstr ""
msgid "Admin"
msgstr ""
msgid "It is you"
msgstr ""
msgid "Edit your profile"
msgstr ""
msgid "Open on {0}"
msgstr ""
msgid "{0}'s subscribers"
msgstr ""
msgid "Edit your account"
msgstr ""
msgid "Your Profile"
msgstr ""
msgid "To change your avatar, upload it to your gallery and then select from there."
msgstr ""
msgid "Upload an avatar"
msgstr ""
# src/template_utils.rs:217
msgid "Display name"
msgstr ""
# src/template_utils.rs:217
msgid "Email"
msgstr ""
msgid "Summary"
msgstr ""
msgid "Update account"
msgstr ""
msgid "Be very careful, any action taken here can't be cancelled."
msgstr ""
msgid "Delete your account"
msgstr ""
msgid "Sorry, but as an admin, you can't leave your own instance."
msgstr ""
msgid "Atom feed"
msgstr ""
msgid "Recently boosted"
msgstr ""
msgid "Create an account"
msgstr ""
# src/template_utils.rs:217
msgid "Password confirmation"
msgstr ""
msgid "Apologies, but registrations are closed on this particular instance. You can, however, find a different one."
msgstr ""
msgid "Follow {}"
msgstr ""
msgid "Login to follow"
msgstr ""
msgid "Enter your full username to follow"
msgstr ""
msgid "Internal server error"
msgstr ""
msgid "Something broke on our side."
msgstr ""
msgid "Sorry about that. If you think this is a bug, please report it."
msgstr ""
msgid "Page not found"
msgstr ""
msgid "We couldn't find this page."
msgstr ""
msgid "The link that led you here may be broken."
msgstr ""
msgid "Invalid CSRF token"
msgstr ""
msgid "Something is wrong with your CSRF token. Make sure cookies are enabled in you browser, and try reloading this page. If you continue to see this error message, please report it."
msgstr ""
msgid "You are not authorized."
msgstr ""
msgid "The content you sent can't be processed."
msgstr ""
msgid "Maybe it was too long."
msgstr ""