Because #BotsInSpace is shutting down () I'm looking for a new home for my bots.
-
@Marcus you should be able to search for the bot and see all its posts.
There's a very basic web ui at https://bot.viii.fi/ -
@Edent yes :]
I'm thinking of using it soon... I might write an nginx server block and make a PR to give people options, too :]
-
Gregreplied to Terence Eden last edited by [email protected]
@Edent @bot oh this is really cool! I did a PHP version as well but it's more files haha
GitHub - greg-kennedy/phpActivityPub: Simple, post-only ActivityPub implementation in PHP
Simple, post-only ActivityPub implementation in PHP - greg-kennedy/phpActivityPub
GitHub (github.com)
it's sort of the PHP version of dariusk's minimal node one https://github.com/dariusk/express-activitypub
supports multiple bots, you create one through its "admin" interface and it gives you an API key, which you then include in cURL calls to let the "bot" make posts
-
@Edent @bot (I have a testbed in action at https://greg-kennedy.com/phpAP but none of these are actually posting much of anything)
see also @TestAccount
-
@Edent Thank you!! I need to try this...
-
-
-
-
@Edent
If I use a "See more posts on bot.viii.fi" or "Open original page" link on its profile page on my instance, I get what looks like raw json. Could that redirect to the root page instead? -
@cwilcox808 please raise it as an issue on GitLab so I can keep track of it.
Thanks. -
-
@danbri yup! There's 1st class support for labeling accounts as bots, and excellent API support.
Some of the more vocal commentators have found some other shiny rock to complain about. -
Roufnichan LeGauf 🌈replied to Terence Eden last edited by
@Edent Some bizarre code in there.
in_array( $inbox_message["actor"], $followers_ids ) ? $from_follower = true: $from_follower = false;
Removing the duplicated code, this is just
$from_follower = in_array( $inbox_message["actor"], $followers_ids ) ? true : false;
And
... ? true : false
is redundant, leaving:$from_follower = in_array( $inbox_message["actor"], $followers_ids );
-
Terence Edenreplied to Roufnichan LeGauf 🌈 last edited by
@barubary your pull request is very welcome.
-
Roufnichan LeGauf 🌈replied to Terence Eden last edited by
@Edent But then I'd have to create a gitlab account and, worse, write PHP.
-
Terence Edenreplied to Roufnichan LeGauf 🌈 last edited by
@barubary I'm happy to hold your hand while you do so.
-
Cogito Ergo Disputoreplied to Terence Eden last edited by
-
Terence Edenreplied to Cogito Ergo Disputo last edited by
@Disputatore messages are stored in several places.
1) The user who sends the message usually retains a copy.
2) The recipient's server receives a copy (and can choose to save it or not).
3) Anyone following the sender will usually receive a copy of all their messages.I could save a copy of mentions. But that comes with increased disk space, having to handle deletions, and risk that someone will store abusive content on your server.
-
Cogito Ergo Disputoreplied to Terence Eden last edited by
@Edent thank you for taking the time to walk me through it. I have some suggestions that I will eventually post as issues in your gitlab repository. Hopefully that's adequate. I would fork it, but that would force me to recover my rusted-to-pieces programming skills, not to mention actually learning PHP and probably having to learn a whole bunch of stuff required for this particular domain.
-
@Edent neat, would be cool to have this on PikaPods so that folks could set it up without knowing how to run a server as well.
PikaPods - Instant Open Source App Hosting
Run the finest Open Source web apps from $1/month, fully managed, no tracking, no ads, full privacy. Self-hosting was never this convenient.
(www.pikapods.com)
Need to figure out an idea for a bot