LemmyNet / lemmy

๐Ÿ€ A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.13k stars 867 forks source link

Federation with writefreely #2385

Closed xundeenergie closed 6 months ago

xundeenergie commented 2 years ago

Found a bug? Please fill out the sections below. ๐Ÿ‘

For front end issues, use lemmy-ui

Issue Summary

When i search for a blog in writefreely, lemmy does not show a result (but friendica does, and i'm able to follow a blog)

Steps to Reproduce

  1. (for example) I clicked login, and an endless spinner show up.
  2. I tried to install lemmy via this guide, and I'm getting this error.
  3. ...

Technical details

The logs in writefreely say: nginx

10.0.0.0 - - [31/Jul/2022:06:23:25 +0200] "GET /.well-known/webfinger?resource=acct:test@write.schuerz.at HTTP/1.1" 200 357 "-" "Lemmy/0.16.6; +https://lemmy.schuerz.at"
10.0.0.0 - - [31/Jul/2022:06:23:25 +0200] "GET /api/collections/test HTTP/1.1" 200 1237 "-" "Lemmy/0.16.6; +https://lemmy.schuerz.at"

writefreely

Jul 31 06:23:25 sc-blog-01 writefreely[642]: 2022/07/31 06:23:25 "GET /.well-known/webfinger?resource=acct:test@write.schuerz.at" 200 11.843452ms "Lemmy/0.16.6; +https://lemmy.schuerz.at"
Jul 31 06:23:25 sc-blog-01 writefreely[642]: 2022/07/31 06:23:25 "GET /api/collections/test" 200 707.922ยตs "Lemmy/0.16.6; +https://lemmy.schuerz.at"

and lemmy

lemmy_1     | 2022-07-31T04:11:32.618013Z  INFO Websocket Request{trace_id=00000000000000000000000000000000}:perform{self=ResolveObject { q: "@test@write.schuerz.at", auth: Some(Sensitive) }}:search_by_apub_id:w
ebfinger_resolve_actor: lemmy_apub_lib::utils: Fetching remote object https://write.schuerz.at/api/collections/test                                                                                                
lemmy_1     | 2022-07-31T04:11:32.631259Z ERROR Websocket Request{trace_id=00000000000000000000000000000000}: lemmy_websocket::handlers: Error during message handling couldnt_find_object: Failed to resolve actor
 for test@write.schuerz.at                                                                                                                                                                                         
lemmy_1     |    0: lemmy_apub::fetcher::webfinger::webfinger_resolve_actor                                                                                                                                        
lemmy_1     |              at crates/apub/src/fetcher/webfinger.rs:30                                                                                                                                              
lemmy_1     |    1: lemmy_apub::fetcher::search::search_by_apub_id                                                                                                                                                 
lemmy_1     |              at crates/apub/src/fetcher/search.rs:20                                                                                                                                                 
lemmy_1     |    2: lemmy_api::site::resolve_object::perform                                                                                                                                                       
lemmy_1     |            with self=ResolveObject { q: "@test@write.schuerz.at", auth: Some(Sensitive) }                                                                                                            
lemmy_1     |              at crates/api/src/site/resolve_object.rs:19                                                                                                                                             
lemmy_1     |    3: lemmy_websocket::handlers::Websocket Request                                                                                                                                                   
lemmy_1     |            with trace_id=00000000000000000000000000000000                                                                                                                                            
lemmy_1     |              at crates/websocket/src/handlers.rs:68                                                                                                                                                  

so friendica asks additionally /api/collections/test/outbox not so lemmy...

Nutomic commented 2 years ago

The problem is Lemmy and only handle posts which belong to an Activitypub Group. This is not the case with writefreely, its articles only belong to a Person. I dont think its realistic to remove this restriction, because a lot of code relies on it.

xundeenergie commented 2 years ago

Are you sure? I organize my articles in different blogs on my instance...

https://write.schuerz.at/modellbahn/ https://write.schuerz.at/vereinsarbeit/

But my user there is https://write.schuerz.at/@jakob/

Nutomic commented 2 years ago

Unfortunately those also federate as type: Person. You can see this with curl -H 'Accept: application/activity+json' https://write.schuerz.at/vereinsarbeit/ | jq.

xundeenergie commented 2 years ago

So i should file an isse to writefreely, that blogs should bi federated as group? Or what is the correct type?

Nutomic commented 2 years ago

Yes an issue is probably the best way to talk directly with their devs. Make sure to tag me.

xundeenergie commented 2 years ago

Thank you. I will tag you!

EdoSecco commented 1 year ago

Are there any news?

Nutomic commented 6 months ago

No news, and theres no way to get this working without changing the way writefreely federates.