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

Category Hashtags break "Add hashtags as native tags" functionality.

Open heathenstorm opened this issue 7 months ago • 1 comments

Quick summary

When adding [ap_hashcats] shortcode to Note Post Content, both Categories and regular Tags are no longer federated as native tags.

They are still available as regular #-tags in the note itself.

This has been an ongoing issue, and not new to 6.0.0.

Steps to reproduce

Initial Bug

  1. Configure ActivityPub plugin to include [ap_hashcats] and [ap_hashtags] shortcodes in Note Post Content
  2. Ensure "Add hashtags in the content as native tags and replace the #tag with the tag link." setting is enables
  3. Create a new test post with filler text and title
  4. Add any number of WP Categories and Tags to this post
  5. Save Draft
  6. Select "Fediverse preview ⁂" from View menu
  7. Both Categories and Tags are shown in #-tag format, but only the Tags are shown as Native Tags
  8. Publish
  9. Check Federated post on external site (I used mastodon.social)
  10. Categories and Tags are shown in #-tag format, with no Native Tags.

Returning to expected behaviour

  1. Change ActivityPub plugin settings to remove [ap_hashcats] shortcode, leaving [ap_hashtags] untouched.
  2. Edit the test post
  3. Save Draft
  4. Select "Fediverse preview ⁂" from View menu
  5. Only the Tags are shown, both in #-tag format, and as Native Tags
  6. Re-Publish
  7. Check updated Federated post on external site
  8. Tags are shown as Native Tags

Site owner impact

Between 20% and 60% of the total website/platform users

Severity

Moderate

What other impact(s) does this issue have?

No response

If a workaround is available, please outline it here.

Remove [ap_hashcats] shortcode from Note Post Content.

  • This is not ideal if site requires Category Tags to prevent taxonomy duplication

heathenstorm avatar Jun 08 '25 14:06 heathenstorm

Thanks for the report! I think the best way is to remove the hashcat feature completely, because it is hard to impossible to have them as "Native Tags". The possibility to have a collition between cats and tags is too big.

pfefferle avatar Jun 09 '25 10:06 pfefferle

I have to jump in here, because removing the ap_hashcats is not an option. I want to use both my WP-tags and WP-categories to get translated as fediverse tags.

I don't get the point of "collision detection"? When I as a user have a tag and a category with the same name/label, then it is my fault if the fediverse hashtag gets added two times. I think, this is nothing the plugin has to deal with.

I use tags and categories for different thungs, but I still want BOTH to get federated to the fediverse. What can I do now @pfefferle?

eigenstil avatar Sep 30 '25 08:09 eigenstil