Mark W
Forum Replies Created
-
Forum: Plugins
In reply to: [ActivityPub] How to add OpenGraph fediverse:creator tag to wordpress postsHere is an example of a post generated by the ActivityPub plugin:
https://imagebin.co/uploads/dd5270357f83e8098c99c6151e10c9ea.png
And here is the default behavior on mastodon when you link to a wordpress blog post (with the opengraph plugin installed):
https://imagebin.co/uploads/dc24e038c9e077d44693d8b13ef78ffd.png
You’ll see that the second example has a “More from ….” at the bottom of the post.
Forum: Plugins
In reply to: [ActivityPub] How to add OpenGraph fediverse:creator tag to wordpress postsThanks, the OpenGraph plugin works for me. When using OpenGraph, you just need to make sure NOT to enable the option “Automatically add
<meta name="fediverse:creator" />tags for Authors and the Blog-User” in the ActivityPub plugin settings (this overwrites the meta tag).Nevertheless, I note that even though my mastodon account is correctly attributed when posting a link of the blog on mastodon, the same doesn’t occur for posts that are generated by ActivityPub plugin. Here is an example:
https://solarsystem.social/deck/@[email protected]/115960436753912660I suspect that this is “by design”, but it would be really useful if these posts could add the “More from …” byline as well!
Forum: Plugins
In reply to: [ActivityPub] How to add OpenGraph fediverse:creator tag to wordpress postsThanks for the response. I think I understand what it does now, but I also think that it would be useful to add a meta tag linking a mastodon account as the post creator. If I understand properly, you already add a meta tag with the “fediverse:creator” field and all you would need to do is add the users mastodon account in the “content” field.
My use case is the following: A freelance author posts on several wordpress sites, and they would like all the posts to link to a single mastodon account.
Forum: Plugins
In reply to: [ActivityPub] How to add OpenGraph fediverse:creator tag to wordpress postsI think that you are talking about something slightly different. Here is what it says on my mastodon server:
Author attribution
Are you writing news or blog articles outside of Mastodon? Control how you get credited when they are shared on Mastodon.
Here’s how
Make sure this code is in your article’s HTML:
<meta name="fediverse:creator" content="@[email protected]">Then, add the domain name of the publication in the field below. Websites allowed to credit you
One per line. Protects from false attributions.
Is it possible to do this using the activitypub plugin?
Forum: Plugins
In reply to: [ActivityPub] WordPress post not found on mastodonThanks! It turns out that
WP_DISABLE_CRONwas set to true. Some digging says that when this is the case, you need to runwp-cron.phpmanually, such as from cron. I added this to crontab and it seems to work15 * * * * php /var/www/wordpress/wp-cron.php > /dev/null 2>&1Forum: Plugins
In reply to: [ActivityPub] WordPress post not found on mastodonAfter a 48h wait, both recent posts magically appeared on Mastodon. I have no idea why there was a delay. I checked the crons and nothing seemed to be out of the ordinary. One cron job (apt-cron) was complaining about not being able to update a package, but that was it.
I suspect that the problem probably is cron related, but I don’t know how to debug this. Is there a specific cron job used by activity pub? And does it save any logs?
Forum: Plugins
In reply to: [ActivityPub] WordPress post not found on mastodonCan you confirm that you can see the post from Jan 5? My account is following the blog, and I can see the account in the WP activity pub follow list. However, in the WP activitypub followers list, it says that almost all of the followers were “last updated” on January 4, which is a day before the last post.
Also, how is it that you are seeing that the post is accessible? If there is some way to do this from the command line, I’d like to know!
(I will look into the cron later, but nothing has changed, the instance is rather simple).
Forum: Plugins
In reply to: [ActivityPub] Author url is not accessibleFor info, here is the post from the Wordfence forum with the solution:
https://ww.wp.xz.cn/support/topic/wordfence-blocks-activitypub/
Thanks!
Forum: Plugins
In reply to: [ActivityPub] Author url is not accessibleI thought I turned it off for testing, but you are right: I have the wordfence plugin running. If I completely disable it, I can reach the author page.
However, I would like to keep wordfence enabled, but I can’t find a way to make a security exception for ActivityPub.
Simply setting “Web application Firewall Status” to “Disabled” doesn’t work, and I don’t see any obvious settings. If anyone has any suggestions, I would appreciate it!
Forum: Networking WordPress
In reply to: How to remove “My sites” from admin bar [multisite]I found a solution that works
function remove_my_sites_menu( $wp_admin_bar ) {
if ( ! is_super_admin() ) {
$wp_admin_bar->remove_node('my-sites');
}
}
add_action( 'admin_bar_menu', 'remove_my_sites_menu', 999 );Forum: Networking WordPress
In reply to: How to remove “My sites” from admin bar [multisite]Thanks, I hadn’t see that post. It doesn’t give the answer to my problem, but it is a little more detailed than the other posts I’ve seen on this topic.