akirk / friends

A social network between WordPresses. Privacy focused, by itself a self-hosted RSS++ reader with notifications.
https://wpfriends.at/
GNU General Public License v2.0
78 stars 13 forks source link

Friends page containing ActivityPub boosted copies of my own posts, attempts to decorate them with sharing plugin? #175

Open alecmuffett opened 1 year ago

alecmuffett commented 1 year ago

I have/use the Jetpack Sharing plugin.

I made a post: https://alecmuffett.com/article/17221

It was boosted by a friend: https://mastodon.neilzone.co.uk/@alecm@alecmuffett.com/109655897059886346

The boost came back to me, and when rendered picks-up (in a very ugly manner) the Jetpack Sharing plugin:

https://alecmuffett.com/friends/mastodon.neilzone.co.uk-neil/17225/

(screenshot since not public)

Screenshot 2023-01-09 at 01 25 48
alecmuffett commented 1 year ago

The article as part of the JSON feed looks sane:

curl -H "Accept: application/activity+json" 'https://alecmuffett.com/wp-json/activitypub/1.0/users/2/outbox?page=1'

...so I presume that the issue is the /friends page rendering is picking up that alecm is the author and is instigating the plugin?

akirk commented 1 year ago

If you look at curl -LH "Accept: application/activity+json" https://mastodon.neilzone.co.uk/@alecm@alecmuffett.com/109655897059886346a | jq . you can see that the sharing HTML you can see in the screenshot is unfortunately part of the HTML sent by the ActivityPub plugin (see "content" below, scroll to the right):

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
      "PropertyValue": "schema:PropertyValue",
      "schema": "http://schema.org#",
      "pt": "https://joinpeertube.org/ns#",
      "toot": "http://joinmastodon.org/ns#",
      "value": "schema:value",
      "Hashtag": "as:Hashtag",
      "featured": {
        "@id": "toot:featured",
        "@type": "@id"
      },
      "featuredTags": {
        "@id": "toot:featuredTags",
        "@type": "@id"
      }
    }
  ],
  "id": "https://alecmuffett.com/article/17221",
  "type": "Note",
  "published": "2023-01-08T22:16:37Z",
  "attributedTo": "https://alecmuffett.com/article/author/alecm",
  "summary": null,
  "inReplyTo": null,
  "content": "<p><strong>Why Signal won’t compromise on encryption, with [@SignalApp] president Meredith Whittaker</strong></p><p>There are a lot of people out there who equate writing good, secure, privacy-enhancing software, with promotion of “self-evidently problematic” anti-statist libertarian agendas which they rail against — presumably because they’re worried that society (i.e. they) will lose something from reducing the potential for surveilling the populace*.</p><p>Therefore: we need more stuff like this:</p><p><a href=\"https://www.theverge.com/23409716/signal-encryption-messaging-sms-meredith-whittaker-imessage-whatsapp-china\">https://www.theverge.com/23409716/signal-encryption-messaging-sms-meredith-whittaker-imessage-whatsapp-china</a></p><p>[*] I would argue that the same also goes for all other dual-use technologies, including AI and sousveillance consumer-grade tracking devices.</p><p></p>\nShare this post:<ul><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-17221\" class=\"share-twitter sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" >Click to share on Twitter (Opens in new window)</a></li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-17221\" class=\"share-facebook sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" >Click to share on Facebook (Opens in new window)</a></li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-17221\" class=\"share-linkedin sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" >Click to share on LinkedIn (Opens in new window)</a></li><li class=\"share-reddit\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-reddit sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=reddit\" target=\"_blank\" title=\"Click to share on Reddit\" >Click to share on Reddit (Opens in new window)</a></li><li class=\"share-jetpack-whatsapp\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-jetpack-whatsapp sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=jetpack-whatsapp\" target=\"_blank\" title=\"Click to share on WhatsApp\" >Click to share on WhatsApp (Opens in new window)</a></li><li><a href=\"#\" class=\"sharing-anchor sd-button share-more\">More</a></li><li class=\"share-end\"></li></ul><ul><li class=\"share-telegram\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-telegram sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=telegram\" target=\"_blank\" title=\"Click to share on Telegram\" >Click to share on Telegram (Opens in new window)</a></li><li class=\"share-tumblr\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-tumblr sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=tumblr\" target=\"_blank\" title=\"Click to share on Tumblr\" >Click to share on Tumblr (Opens in new window)</a></li><li class=\"share-end\"></li><li class=\"share-pinterest\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-pinterest-17221\" class=\"share-pinterest sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=pinterest\" target=\"_blank\" title=\"Click to share on Pinterest\" >Click to share on Pinterest (Opens in new window)</a></li><li class=\"share-skype\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-skype-17221\" class=\"share-skype sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=skype\" target=\"_blank\" title=\"Click to share on Skype\" >Click to share on Skype (Opens in new window)</a></li><li class=\"share-end\"></li><li class=\"share-print\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-print sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221#print\" target=\"_blank\" title=\"Click to print\" >Click to print (Opens in new window)</a></li><li class=\"share-pocket\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-pocket sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=pocket\" target=\"_blank\" title=\"Click to share on Pocket\" >Click to share on Pocket (Opens in new window)</a></li><li class=\"share-end\"></li><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon no-text\" href=\"mailto:?subject=%5BShared%20Post%5D%20Why%20Signal%20won%E2%80%99t%20compromise%20on%20encryption%2C%20with%20%5B%40SignalApp%5D%20president%20Meredith%20Whittaker&body=https%3A%2F%2Falecmuffett.com%2Farticle%2F17221&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you're having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"0e59a33b29\" data-email-share-track-url=\"https://alecmuffett.com/article/17221?share=email\">Click to email a link to a friend (Opens in new window)</a></li><li class=\"share-end\"></li></ul><p><a rel=\"tag\" class=\"u-tag u-category\" href=\"https://alecmuffett.com/article/tag/encryption\">#encryption</a> <a rel=\"tag\" class=\"u-tag u-category\" href=\"https://alecmuffett.com/article/tag/end-to-end-encryption\">#end-to-end-encryption</a> <a rel=\"tag\" class=\"u-tag u-category\" href=\"https://alecmuffett.com/article/tag/signal\">#signal</a></p><p><a href=\"https://alecmuffett.com/article/17221\">https://alecmuffett.com/article/17221</a></p>",
  "contentMap": {
    "en": "<p><strong>Why Signal won’t compromise on encryption, with [@SignalApp] president Meredith Whittaker</strong></p><p>There are a lot of people out there who equate writing good, secure, privacy-enhancing software, with promotion of “self-evidently problematic” anti-statist libertarian agendas which they rail against — presumably because they’re worried that society (i.e. they) will lose something from reducing the potential for surveilling the populace*.</p><p>Therefore: we need more stuff like this:</p><p><a href=\"https://www.theverge.com/23409716/signal-encryption-messaging-sms-meredith-whittaker-imessage-whatsapp-china\">https://www.theverge.com/23409716/signal-encryption-messaging-sms-meredith-whittaker-imessage-whatsapp-china</a></p><p>[*] I would argue that the same also goes for all other dual-use technologies, including AI and sousveillance consumer-grade tracking devices.</p><p></p>\nShare this post:<ul><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-17221\" class=\"share-twitter sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" >Click to share on Twitter (Opens in new window)</a></li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-17221\" class=\"share-facebook sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" >Click to share on Facebook (Opens in new window)</a></li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-17221\" class=\"share-linkedin sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" >Click to share on LinkedIn (Opens in new window)</a></li><li class=\"share-reddit\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-reddit sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=reddit\" target=\"_blank\" title=\"Click to share on Reddit\" >Click to share on Reddit (Opens in new window)</a></li><li class=\"share-jetpack-whatsapp\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-jetpack-whatsapp sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=jetpack-whatsapp\" target=\"_blank\" title=\"Click to share on WhatsApp\" >Click to share on WhatsApp (Opens in new window)</a></li><li><a href=\"#\" class=\"sharing-anchor sd-button share-more\">More</a></li><li class=\"share-end\"></li></ul><ul><li class=\"share-telegram\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-telegram sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=telegram\" target=\"_blank\" title=\"Click to share on Telegram\" >Click to share on Telegram (Opens in new window)</a></li><li class=\"share-tumblr\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-tumblr sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=tumblr\" target=\"_blank\" title=\"Click to share on Tumblr\" >Click to share on Tumblr (Opens in new window)</a></li><li class=\"share-end\"></li><li class=\"share-pinterest\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-pinterest-17221\" class=\"share-pinterest sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=pinterest\" target=\"_blank\" title=\"Click to share on Pinterest\" >Click to share on Pinterest (Opens in new window)</a></li><li class=\"share-skype\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-skype-17221\" class=\"share-skype sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=skype\" target=\"_blank\" title=\"Click to share on Skype\" >Click to share on Skype (Opens in new window)</a></li><li class=\"share-end\"></li><li class=\"share-print\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-print sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221#print\" target=\"_blank\" title=\"Click to print\" >Click to print (Opens in new window)</a></li><li class=\"share-pocket\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-pocket sd-button share-icon no-text\" href=\"https://alecmuffett.com/article/17221?share=pocket\" target=\"_blank\" title=\"Click to share on Pocket\" >Click to share on Pocket (Opens in new window)</a></li><li class=\"share-end\"></li><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon no-text\" href=\"mailto:?subject=%5BShared%20Post%5D%20Why%20Signal%20won%E2%80%99t%20compromise%20on%20encryption%2C%20with%20%5B%40SignalApp%5D%20president%20Meredith%20Whittaker&body=https%3A%2F%2Falecmuffett.com%2Farticle%2F17221&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you're having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"0e59a33b29\" data-email-share-track-url=\"https://alecmuffett.com/article/17221?share=email\">Click to email a link to a friend (Opens in new window)</a></li><li class=\"share-end\"></li></ul><p><a rel=\"tag\" class=\"u-tag u-category\" href=\"https://alecmuffett.com/article/tag/encryption\">#encryption</a> <a rel=\"tag\" class=\"u-tag u-category\" href=\"https://alecmuffett.com/article/tag/end-to-end-encryption\">#end-to-end-encryption</a> <a rel=\"tag\" class=\"u-tag u-category\" href=\"https://alecmuffett.com/article/tag/signal\">#signal</a></p><p><a href=\"https://alecmuffett.com/article/17221\">https://alecmuffett.com/article/17221</a></p>"
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "cc": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "attachment": [],
  "tag": [
    {
      "type": "Hashtag",
      "href": "https://alecmuffett.com/article/tag/encryption",
      "name": "#encryption"
    },
    {
      "type": "Hashtag",
      "href": "https://alecmuffett.com/article/tag/end-to-end-encryption",
      "name": "#end-to-end-encryption"
    },
    {
      "type": "Hashtag",
      "href": "https://alecmuffett.com/article/tag/signal",
      "name": "#signal"
    }
  ]
}

Maybe @pfefferle has encountered this already and can help?