Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Posts' Alternate "Activity Pub Content" for ~250-char microblogging #824

Open
maltfield opened this issue Jul 30, 2024 · 5 comments

Comments

@maltfield
Copy link

maltfield commented Jul 30, 2024

What

This is a request to implement a new Post ActivityPub Contents field for the user to enter a short (~250 char) summary of the Wordpress Post, which replaces the contents of the Post that's syndicated via Activity Pub.

Why

I write very, very long articles on Wordpress. Those articles sometimes contain thousands of words and dozens of pictures.

Currently I use Mastodon to publish a short ~250-char toot about my WordPress articles. Many of my readers subscribe to my Mastodon account via ActivityPub, but it would be cool if I could cut-out the middle-instance and just host ActivityPub myself with Wordpress.

But most of my ActivityPub subscribers would still only want the contents of the ActivityPub messages to be micro-blogging-sized toots (~250 chars).

Therefore, I want to be able to define a totally distinct field from the Post's very long content. This shorter version is what wordpress would publish via ActivityPub.

How

I envision a UX similar to Yoast's module that allows you to define Meta description snippets for each Post in a plugin-specific module

Screenshot of the Yoast module on the Post edit page, prompting the user to type a short "Meta description" that summarizes the article
The popular Yoast SEO plugin for Wordpress has a special input field allowing the user to enter a brief summary for the article

Like Yoast's Meta description input field, I don't think this ActivityPub Post ActivityPub Contents input field should enforce a strict character limitation, but it should probably have some "green/yellow/red" indicator that turns yellow when you break ~250 characters and red when you break ~500 characters.

This would be an optional field. When it's empty, this plugin would publish the full article in Activity Pub (as is currently the case?). But when this field is not empty, that field's contents would replace the Post's content filed with the ActivityPub content field.

@maltfield maltfield changed the title Feature Request: Posts' "Alternate Activity Pub" content for ~250-char microblogging Feature Request: Posts' Alternate "Activity Pub Content" for ~250-char microblogging Jul 30, 2024
@pfefferle
Copy link
Member

The plugin supports excerpts, is that what you requested?

@maltfield
Copy link
Author

maltfield commented Sep 23, 2024

I'm not sure. Can you link me to the documentation that describes what is this "excerpts" feature you refer-to and how it works?

I'm also curious if this plugin's "Excerpt" feature's contents is what gets put into the summary field of the article post, or if it overrides the content field.

This would be an optional field. When it's empty, this plugin would publish the full article in Activity Pub (as is currently the case?). But when this field is not empty, that field's contents would replace the Post's content filed with the ActivityPub content field.

Does it work like this?

I'm still learning about ActivityPub, but I feel like we should have control over both the length and contents of both the summary and content fields.

@pfefferle
Copy link
Member

So, there is no extra field, the plugin re-uses all existing WordPress features. So if you write an excerpt, using the WordPress excerpt field for that or if you use the read-more block, than this will be used to send to the fediverse.

@pfefferle
Copy link
Member

Ah, this only works if you configure your post to send the excerpt with the excerpt shortcode or if you use the WordPress-Post-Format setting instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants