swentel / indieweb

IndieWeb integration for Drupal
https://drupal.org/project/indieweb
GNU General Public License v2.0
37 stars 5 forks source link

Auto reply not working for non twitter urls? #522

Closed swentel closed 4 years ago

swentel commented 4 years ago

see https://realize.be/comment/indieweb/5024

sparxsys commented 4 years ago

I was playing with it today and thought of sharing few more details.

When I reply to a comment that I received on my site from twitter, I get the following error in the Drupal log.

Error sending webmention for https://www.ravisagar.in/comment/indieweb/13633 to https://brid.gy/publish/twitter: Client error: POST https://brid.gy/publish/webmention resulted in a 400 Bad Request response: { "error": "Couldn't find link to brid.gy/publish/twitter" }

Then I added a comment_target_link field in my comment and also selected it in the configuration. Made sure the formatting is correct in the manage display (admin/config/services/indieweb/send), and when replying to the comment I manually populated the twitter link (from where I received the comment) and ran the cron. I received the same error.

Thanks

swentel commented 4 years ago

That's because the 'Syndication' field isn't in the manage display (exists both for comment and nodes).

swentel commented 4 years ago

Sorry, there should be a 'Twitter' field (which prints the brid.gy link), that one needs to be in manage display.

sparxsys commented 4 years ago

I added the syndication field in the comment and it added a reply on twitter when I manually entered the twitter link in the comment target link.

This is how my comment form looks like. Screenshot 2020-09-02 at 14 35 22

Is there a way the comment target link get automatically populated with the previous comment's twitter link? In the comment's webmention info I can see that twitter url. Without comment target link the tweet is sent by not added as a reply to existing thread.

sparxsys commented 4 years ago

I think I got it now. I was doing this from the Drupal UI. When I used Indigenous app and replied to the comment (with twitter (bridgy) checked) then it indeed populated the comment target link. Thanks for the clarification. I am getting there. I am now trying to setup Fediverse. Also faced some issues but I posted in their project.

swentel commented 4 years ago

Tried it myself again and my queue was filled, so that conversion of those admin/content/webmention url's does work.