Comments (2)
So, what I do is, I use post types rather than post kinds (or post formats), but the idea is very similar.
Of note: I also have sharing set to "opt-in," so I have to explicitly indicate for each post if I want to share to either Mastodon or Pixelfed or both. Or I could do nothing and check neither.
I'm not sure it's possible to, say, completely hide the "share" checkboxes for certain kinds/formats, as those are taxonomies that you'd normally set while creating a post, whereas a post type is something you decide on up front, if that makes sense. (In a way, all post kinds/formats are all ... just posts.)
But what we can do, and I'm relatively sure is already possible through a little bit of custom code, is either stop certain kinds/formats from being shared or force them to be shared.
I'll look into it.
from share-on-pixelfed.
Also, sharing to Pixelfed will simply be skipped (regardless of the checkbox value) for non-image posts. So, even if you had sharing to both Mastodon and Pixelfed enabled, text-only posts would only ever get shared to Mastodon.
But again, one could definitely halt "photo posts" from being shared on Mastodon. Or non-photo posts that happen to have a (featured) image from being shared on Pixelfed. Even if the checkboxes were (possibly automatically) enabled, or "sharing always" was enabled. But it'd require a tiny bit of extra code. I'll have a look and report back here.
from share-on-pixelfed.
Related Issues (20)
- Disable "Share on Pixelfed" per default HOT 5
- Pictures and posts are not getting through HOT 28
- Remove "revoke" button HOT 4
- Undefined array key "post_types" in share-on-pixelfed/includes/class-post-handler.php on line 489
- Add Micropub syndication target
- Support thumbnails, etc., when opting for "first image"
- Add Syndication Links link
- Update docs
- Bring custom message, alt text code in line with Share on Mastodon's
- Disable checkbox when link is broken
- Deprecate _file_path filter in favor of _media
- Excerpt seems to always get an ellipsis at the end HOT 1
- Disable "share" checkbox on "older" posts not already shared HOT 1
- Replace Post_Handler::options with a get_options helper function
- Remove jQuery dependency
- Query Monitor shows missing deps on CPT screens ... HOT 1
- Modify 'share_on_pixelfed_enabled'
- Update plugin link in readme.txt
- Rework Options_Handler to more closely match Share on Mastodon's
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from share-on-pixelfed.