wordpress-activitypub icon indicating copy to clipboard operation
wordpress-activitypub copied to clipboard

Missing comment in thread

Open MatzeKitt opened this issue 8 months ago • 8 comments

Quick summary

I created a post (https://epiph.yt/en/blog/2025/optimize-surge-configuration-for-activitypub/) where @obenland mentioned me afterwards. I answered via my blog. Another user answered the post of @obenland, too, and @obenland answered again – both answers were also published on my blog.

When @pfefferle answered on my first answer (https://mastodon.social/@pfefferle/114474115709842979?kjy=spring), my blog got no notification (this is also true for the next answer after that).

While I can see a POST request to my inbox 2 seconds later, I unfortunately cannot be sure that it’s really the data that should be responsible for creating a new comment afterwards:

[08/May/2025:20:33:06 +0000] "POST /en/wp-json/activitypub/1.0/actors/0/inbox HTTP/1.1" 202 12 "-" "Mastodon/4.4.0-nightly.2025-05-07-security (http.rb/5.2.0; +https://mastodon.social/)"

Steps to reproduce

See above.

  1. Post published ✅
  2. First mention from the Fediverse incoming as comment ✅
  3. First answer to first mention from within WordPress federated. ✅
  4. Second answer to the first mention from Fediverse incoming as comment. ✅
  5. First mention from the Fediverse to the first answer to the first mention not incoming. ❌
  6. First asnwer to the first mention from the Fediverse to the first answer to the first mention not incoming. ❌

Site owner impact

Fewer than 20% of the total website/platform users

Severity

Minor

What other impact(s) does this issue have?

No revenue impact

If a workaround is available, please outline it here.

No response

MatzeKitt avatar May 09 '25 19:05 MatzeKitt

Yea, that is a tricky one :)

We currently provide comment threads and comment contexts, but do not parse them for incoming reactions yet :(

pfefferle avatar May 09 '25 19:05 pfefferle

💔

MatzeKitt avatar May 09 '25 19:05 MatzeKitt

But it is on the list, thanks for the detailed report!

pfefferle avatar May 09 '25 19:05 pfefferle

Oh, but maybe this is a bit different in your case!?! Maybe the multilang/query param comes into play here.

I will run some tests on monday!

pfefferle avatar May 09 '25 19:05 pfefferle

@MatzeKitt can you maybe provide me the IDs of all the replies you mentioned above?

pfefferle avatar May 09 '25 21:05 pfefferle

  • First mention: 6801
  • My first answer: 6802
  • Second answer: 6803

MatzeKitt avatar May 10 '25 17:05 MatzeKitt

I meant the fediverse IDs (URLs) 😏😅

pfefferle avatar May 10 '25 22:05 pfefferle

Whoopsy 😬

Is it the source_id field in the commentmeta table or something different? My own comment doesn’t have that.

  • First mention: https://mastodon.social/users/obenland/statuses/114473049916207240
  • Second answer to this mention: https://mastodon.social/@NickBohle/114473260458061909

MatzeKitt avatar May 11 '25 08:05 MatzeKitt

The context endpoint doesn't contain @pfefferle's response either.

So it looks like the activity came in and for one reason or another it didn't end up creating the comment out of it. It's a bit unfortunate that we keep receiving issues like that (#1960) and it's just really hard to debug after the fact.

I don't know if a debug "plugin" would helpful to keep logs on future comment POSTs to see what happens, but this is something we could try: https://gist.github.com/obenland/58f04709da1b60dfe56bfa192b929f50

obenland avatar Jul 24 '25 21:07 obenland

@MatzeKitt can you tell me what home_url is returning?

pfefferle avatar Jul 25 '25 07:07 pfefferle

@MatzeKitt and maybe what url_to_postid( 'https://epiph.yt/en/?p=1161' ) returns.

pfefferle avatar Jul 25 '25 07:07 pfefferle

string(19) "https://epiph.yt/en"
int(1161)

MatzeKitt avatar Jul 25 '25 07:07 MatzeKitt

Maybe it’s related to my setup with a subfolder multisite and nginx?

MatzeKitt avatar Jul 25 '25 07:07 MatzeKitt

We have some more reports about missing comments, so that is what I'm try to figure out :)

But I assume it is not (only) your setup!

pfefferle avatar Jul 25 '25 07:07 pfefferle

I now also added @obenland’s plugin as MU plugin. So if you want to test it on my site, feel free to comment again. 🙂

MatzeKitt avatar Jul 25 '25 07:07 MatzeKitt

I would assume that you also use Antispam Bee?

Do you auto-delete honeypot comments?

pfefferle avatar Jul 25 '25 08:07 pfefferle

Yes, I use the v3 alpha. I auto-delete them after 15 days. 😞

MatzeKitt avatar Jul 25 '25 08:07 MatzeKitt

@MatzeKitt any new insights on this? Not sure there's something actionable for us to sink our teeth in here.

obenland avatar Sep 30 '25 20:09 obenland

It didn’t occur again. But to be fair, I didn’t have a threaded comment since then.

MatzeKitt avatar Sep 30 '25 20:09 MatzeKitt

Let's close this for now, if you don't mind. Please feel free to reopen when there are steps to reproduce or more pointers to investigate.

obenland avatar Sep 30 '25 20:09 obenland