Add support for remote interact #519

Yhdistetty
Plume_migration_agent yhdistetty 15 committia lähteestä remote-interact kohteeseen master 5 vuotta sitten
Omistaja

Add support for remote interaction (this thing in mastodon)

  • create the endpoint dispatching remote interactions to local pages
  • add this endpoint to web-finger
  • propose remote interaction when following and not connected
  • propose remote interaction when liking/sharing and not connected
  • propose remote interaction when commenting and not connected
  • fetch posts/comments we don't know but remote interaction was requested for ?
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 ?
codecov[bot] kommentoi 5 vuotta sitten (Migrated from github.com)

Codecov Report

Merging #519 into master will decrease coverage by 1.56%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #519      +/-   ##
==========================================
- Coverage   42.48%   40.92%   -1.57%     
==========================================
  Files          68       68              
  Lines        9314     9823     +509     
==========================================
+ Hits         3957     4020      +63     
- Misses       5357     5803     +446
# [Codecov](https://codecov.io/gh/Plume-org/Plume/pull/519?src=pr&el=h1) Report > Merging [#519](https://codecov.io/gh/Plume-org/Plume/pull/519?src=pr&el=desc) into [master](https://codecov.io/gh/Plume-org/Plume/commit/12efe721cc4616b6ece512de16c8c396a62f8614?src=pr&el=desc) will **decrease** coverage by `1.56%`. > The diff coverage is `0%`. ```diff @@ Coverage Diff @@ ## master #519 +/- ## ========================================== - Coverage 42.48% 40.92% -1.57% ========================================== Files 68 68 Lines 9314 9823 +509 ========================================== + Hits 3957 4020 +63 - Misses 5357 5803 +446 ```
trinity-1686a reviewed 5 vuotta sitten
@ -34,3 +34,3 @@
@if ctx.2.clone().map(|u| u.id != user.id).unwrap_or(false) {
@if ctx.2.clone().map(|u| u.id != user.id).unwrap_or(true) {
<form class="inline" method="post" action="@uri!(user::follow: name = &user.fqn)">
Tekijä
Omistaja

(rational behind this : show the button when not connected)

(rational behind this : show the button when not connected)
igalic (Migrated from github.com) reviewed 5 vuotta sitten
igalic (Migrated from github.com) jätti kommentin

@ -24,3 +24,4 @@
rocket_i18n = "0.4.0"
rpassword = "2.0"
runtime-fmt = "0.3.0"
scheduled-thread-pool = "0.2.0"
igalic (Migrated from github.com) kommentoi 5 vuotta sitten

what's this do?

what's this do?
trinity-1686a reviewed 5 vuotta sitten
@ -24,3 +24,4 @@
rocket_i18n = "0.4.0"
rpassword = "2.0"
runtime-fmt = "0.3.0"
scheduled-thread-pool = "0.2.0"
Tekijä
Omistaja

like format!() or println!(), but with the base string unknown at compile time (when we fetch the url, we get something like https://<instance>/authorize_interaction?uri={uri}, which we obviously can't now at compile time)

like format!() or println!(), but with the base string unknown at compile time (when we fetch the url, we get something like `https://<instance>/authorize_interaction?uri={uri}`, which we obviously can't now at compile time)
Tekijä
Omistaja

blocked by #443

blocked by #443
elegaanz (Migrated from github.com) hyväksyi nämä muutokset 5 vuotta sitten
elegaanz (Migrated from github.com) jätti kommentin

👍

:+1:

Reviewers

The pull request has been merged as 0d708e1639.
You can also view command line instructions.

Vaihe 1:

From your project repository, check out a new branch and test the changes.
git checkout -b remote-interact master
git pull origin remote-interact

Vaihe 2:

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff remote-interact
git push origin master
Sign in to join this conversation.
No reviewers
Ei merkkipaalua
Ei käsittelijää
2 osallistujaa
Ilmoitukset
Määräpäivä
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

Määräpäivää ei asetettu.

Riippuvuudet

Riippuvuuksia ei asetettu.

Reference: Plume/Plume#519
Ladataan…
Sisältöä ei vielä ole.