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

Add custom Preview for "Fediverse"

Open pfefferle opened this issue 1 year ago • 4 comments

Screenshot 2024-10-18 at 10 52 23

  • [X] Add menu-item
  • [x] Add logic to open preview
  • [x] Implement preview

pfefferle avatar Oct 18 '24 08:10 pfefferle

@mattwiebe I was in the mood for JavaScript ☺️

pfefferle avatar Oct 18 '24 08:10 pfefferle

Preview

Screenshot 2024-10-21 at 10 33 52

pfefferle avatar Oct 21 '24 08:10 pfefferle

@pfefferle Wow! I love that! :heart_eyes:

So often I got confronted with "but where do I see my Fediverse post now, what does it look like" (e.g., see this article https://event-federation.eu/2024/01/17/using-the-wordpress-activitypub-plugin-what-can-go-wrong/).

I wonder if I can adopt this for events as well. Could it be possible to hook into this in a clean way, to also add what it would look like on a typical Gancio/Mobilizon like platform? Or I would love inserting tabs at the top, because for events it's also important, what they will look like for instance on Mastodon.

I was just working on improving the underlying problem, but starting from the admin page. I was also just thinking of adding something with a JavaScript and modals as well in our Event Bridge plugin (Screenshot).

Menrath avatar Oct 21 '24 14:10 Menrath

@Menrath nice idea! I will see how we can extend that a bit, to have a simple templating mechanism!?!

pfefferle avatar Oct 21 '24 15:10 pfefferle

Yes, this is still todo! I thought about a preview const!?!

pfefferle avatar Oct 28 '24 20:10 pfefferle

added ACTIVITYPUB_PREVIEW const!

pfefferle avatar Oct 29 '24 07:10 pfefferle