Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

How to setup a local #Mastodon instance for debugging my own AP development:

General Discussion
4 3 1

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    7 Views
    Hello FediverseIf everything works out according to plan, when I hit publish on this post it will show up in the #Fediverse. After a year of on-and-off attempts, to implement #ActivityPub on this website, with no success, I have hopefully cracked it! Well, when I say “I have hopefully cracked it,” what I mean is @pfefferle@mastodon.social and the #WordPress “open office hours” program, have cracked it. It turns out; if you have a problem with the WordPress ActivityPub plugin, the best thing to do is disable other plugins and, though a process of elimination, see if one of them is the issue. So big thanks to Mathias and WordPress for your help on this.Now this is working and I am broadcasting out into the Fediverse, I feel like I should modify my content a little to appeal to all of you woke, leftists, godless, communists 🙂 out there. For a while I was far too smitten with the every little #Sustainability initiative, every little carbon reduction program, and every other bit of  #GreenWashing that was put out there by brands. Full confession I actually believed that ElonMusk wanted to save the planet! Yeh I know, I was naive…While I do continue to applaud any actions that a corporation takes, that materially helps either people or planet, it’s clear that problems are systemic. We need corporations to shift from Shareholder Primacy to Stakeholder Capitalism, valuing environmental and social impact alongside profit. Or try someting completely different. Right now, if there is a more sustainable or ethical brand choice to be had, we should always take it, but we must understand, that we are not “saving the planet” with those choices, just minimising our impact. Nebula TV channel, Our Changing Climate,  has this excellent video on the subject of Ethical Consumerism.It turns out, that whoever first pointed out “Corporations are Psychopaths” was mostly correct – How a corporation is designed to function, putting shareholders before people and planet, is psychopathic behaviour. (Psychopathic behaviour includes a lack of empathy and remorse, superficial charm, manipulation, and a disregard for social norms and the rights of others.) The only solution is to rewrite corporate charters and incorporation acts and include specific legal provisions that mandate environmental and social responsibility, shifting the core purpose of business beyond mere profit maximisation. Ultimately Corporations and their leaders are never going to fully act in the best interests of people and planet, because that’s not what they were created to do.So the plan, for 2026, is to be posting more content here that challenges both brands and the whole system. To shine a light on the negative impacts to people and planet that brands are having. And to share more content about organisations and companies working on regeneration and decarbonisation.Please follow and share your thoughts and ideas below.#activitypub #branding #corporations #fediverse #sustaiability #sustainability #wordpress
  • 0 Votes
    1 Posts
    5 Views
    So, I got IndieAuth working on the site, as well as MicroPub. Feeds are being fed, but every note also has a separate node, not sure if that's normal. Also, I only tested one feed, still need to fully configure them all.Gotta test Webmention/Pingback, gotta learn what WebSub is, and gotta see if my slapdash #IndieWeb implementation plays nice with an #ActivityPub implementation in #Drupal.Productive day today. Good news tomorrow will mean even more to learn and do. For now, I sleep.
  • 0 Votes
    1 Posts
    12 Views
    Non tutti sanno che... E' semplicissimo fare un post (toot) sul proprio profilo #mastodon con un semplice comando, ad esempio utilizzando #curl. Vediamo come fare. Abilitazione e creazione token Accedere, con il vostro account, al l'istanza mastodon di riferimento. Andare su Preferenze (menù a destra) Andare su Sviluppo (menù a sinistra) Fare click su Nuova applòicazione Compilare tutti i campi e concedere almeno i permessi di scrittura post. Salvare in un luogo sicuro (password manager) quanto generato. Comando curl di esempio curl -s -X POST https://mastodon.uno/api/v1/statuses \ -H "Authorization: Bearer TOKEN_DI_ACCESSO" \ -d "status=Ciao mondo" \ -d "visibility=public" \ Semplice Script di invio A questo punto possiamo farci un semplice script che prende in input, come parametro, del testo e lo invia per noi. cat toot.sh #!/bin/bash # Verifica che sia stato passato almeno un argomento if [ -z "$1" ]; then echo "Errore: devi passare il testo del toot come parametro." echo "Uso: $0 \"Testo del toot\"" exit 1 fi # Salva il parametro in una variabile TOOT="$1" # Esegui la richiesta POST curl -s -X POST https://mastodon.uno/api/v1/statuses \ -H "Authorization: Bearer TOKEN_DI_ACCESSO" \ -d "status=$TOOT" \ -d "visibility=public" \ -H "Authorization: Bearer TOKEN_DI_ACCESSO" \ | jq '.uri' Ho inserito #jq in fondo con un filtro (che possiamo modificare a nostro piacimento), perché l'output in formato json è abbastanza prolisso Perché? A parte che è bello fare il nerd è usare #mastodon da command line, ma la cosa può essere molto utile se la usiamo in abbinata ad altre azioni/comandi. Pensiamo ad esempio ad un integraszione con #forgejo, ad esempio potremmo fare un post (tramite #webook) al termine del nostro workflow. Un altro esempio è il collegare l'account ad un servizio di monitoraggio come #uptimekuma in questo modo si avrà una pagina che indica ai follower lo stato dei nostri servizi. Oppure usarlo al termine di un nostro script che preleva i prossimi appuntamenti da un caledario ics. Insomma, potete integrare l'invio di un toot alla fine di un vostro script custom, il limite a questo punto è solo la fantasia! E voi come lo usate? Seguimi su mastodon: @magostinelli@mastodon.uno Articolo pubblicato con licenza CC BY-NC-SA
  • 0 Votes
    3 Posts
    36 Views
    @julian @box464 It is developed by @Tak