Automattic / wordpress-activitypub

ActivityPub for WordPress
https://wordpress.org/plugins/activitypub/
MIT License
496 stars 76 forks source link

Show likes from fediverse #235

Open jaschaurbach opened 1 year ago

jaschaurbach commented 1 year ago

I have the webmention plugin installed and it shows the Likes to toots I made from my day-to-day account where I have a link to a blogpost inside.

Likes made to the post of the blog are shown nowhere (which is a pitty). It would be great if the plugin could store likes received on the post the same way as the webmentions plugin which would display them as well as the likes.

bekopharm commented 1 year ago

Same for shares :+1:

lapineige commented 1 year ago

I would say it's every more interesting to know how many times (and by who) a content was shared :)

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.

bekopharm commented 1 year ago

!keep

gaviscapes commented 10 months ago

Is there any progress on this? Very interested in this feature.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.

pfefferle commented 6 months ago

Keep

rghedin commented 5 months ago

What about build upon an existing plugin? Recently I implemented Just Likes and Dislikes in my blog. It's kinda ok (there's room for improvements), and it would be awesome if it were integrated with ActivityPub.

janboddez commented 4 months ago

On my own site, I just added like and "repost" ("Announce") support by means a couple custom activitypub_inbox_{$type}" callbacks.

Also added an undo callback, so that undoing the like/repost removes the "comment."

Since it's all implemented as action hooks, it would be very easy to add this to the ActivityPub plugin itself.

I do set some dummy content (in case I ever disable my site's "facepile" solution) and a couple comment meta fields allowing likes and reposts to be picked up by said "facepile" block. Maybe there's a better way (like "comment types," the way the Webmention plugin does it).

I think that's the main "challenge": deciding on a meta field "structure." It would be easy enough to update my block to extend compatibility to whichever solution ends up being implemented, so I don't really have a strong preference.

If there's any interest, I wouldn't mind opening a PR.

Also considering a (dynamic) Gutenberg block that would simply display a like and repost (filterable, preferably, so it can be made compatible with, e.g., webmentions) counter.

pfefferle commented 4 months ago

I would love to see a PR for that!!!

I also like the idea of having a Block to show the different Facepiles.

I experimented a lot with different meta-fields on comments and using different comment-types was the best decision so far (still hoping for core support!!!). It makes it relatively easy to filter and query comments based on the type and themes are handling unknown types quite well these days.

@janboddez btw. thanks for all your work/support so far!

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.

pfefferle commented 3 weeks ago

Keep