Hello! 👋🏻
I am Maurice, I am developing ideas & tools for digital storytelling and an open web.
A Kirby Webmention Plugin
License: MIT License
Hello! 👋🏻
I am Maurice, I am developing ideas & tools for digital storytelling and an open web.
I tested this plugin with the validator at webmention.rocks and most tests passed!
But these tests failed:
(Originally published at: https://srijan.ch/notes/2023-11-03-002)
Hello Maurice,
I'm playing with your plugin on my first ever Kirby site (so bear with me, I'm not a PHP pro either 😅).
I've installed Komments (already working) and now trying to add the indieConnector.
config.php
https://<domain.tld>/indieconnector/send-test-mention/<secret>
I do see the "Sent! You should be able to configure your webmention.io hook now." message/panel/webmentions
, I get this error: this.$store is undefined
(not sure if it's related or normal at this point of installation?)Any ideas what might be the issue?
I'll happily send all the requested logs and whatnot :)
Versions below:
After installing the plugin (1.2.1) I get an error "The $view could not be loaded" when trying to accessing the panel page:
Error: The $view could not be loaded
at Object.request (index.js:1)
at async Object.go (index.js:1)
error @ index.js:1
(anonymous) @ vendor.js:6
_s.dispatch @ vendor.js:12
dispatch @ vendor.js:6
window.onunhandledrejection @ index.js:1
index.js:1 GET https://dev.domain.tld/panel/webmentions?language=de 500
request @ index.js:1
go @ index.js:1
t.$go.window.panel.$go @ index.js:1
onClick @ index.js:1
Vt @ vendor.js:6
n @ vendor.js:6
i._wrapper @ vendor.js:6
index.js:1 Error: The $view could not be loaded
at Object.request (index.js:1)
at async Object.go (index.js:1)
error @ index.js:1
(anonymous) @ vendor.js:6
_s.dispatch @ vendor.js:12
dispatch @ vendor.js:6
window.onunhandledrejection @ index.js:1
Hi,
I'm having trouble getting the send test mention endpoint to work. I've installed the indieConnector plugin to my site. I've included a secret key in my site's config file, set up my account on webmention.io and added the necessary tags to my site's <head>
. Yet, when I try to access the built-in function to send myself a test webmention, using the secret in my config file, the message I receive is "Could not sent webmention." I've tried changing my secret, thinking there may be an issue with the value I'm using. I'm just not sure what I'm doing wrong. Do you have any suggestions on what I can try?
Thanks,
Jason
This looks really good and I'm thinking about implementing it on my site for publishing to Masto, but I wouldn't want all pages I publish to be pushed.
For example, if I create a new terms & conditions page (ewww) I wouldn't want that posted on Masto. I imagine most folk would just want certain types of page posting, like blog posts or notes for example.
I can't see anything in the documentation that talks about this. Does such a feature exist, or is it on the roadmap?
Thanks,
Kev
Hi. I set this up, and looks like webmentions from mastodon via fed.brid.gy are not working.
I got this error:
AH01071: Got error 'PHP message: Whoops\Exception\ErrorException: Attempt to read property "properties" on null in /var/www/html/site/plugins/indieconnector/utils/receiver.php:94
Stack trace:
#0 /var/www/html/site/plugins/indieconnector/utils/receiver.php(94): Whoops\Run->handleError()
#1 /var/www/html/site/plugins/indieconnector/index.php(56): mauricerenck\IndieConnector\WebmentionReceiver->getTransformedSourceUrl()
#2 [internal function]: Kirby\Http\Route->mauricerenck\IndieConnector\{closure}()
#3 /var/www/html/vendor/getkirby/cms/src/Http/Router.php(120): Closure->call()
#4 /var/www/html/vendor/getkirby/cms/src/Cms/App.php(340): Kirby\Http\Router->call()
#5 /var/www/html/vendor/getkirby/cms/src/Cms/App.php(1239): Kirby\Cms\App->call()
#6 /var/www/html/public/index.php(18): Kirby\Cms\App->render()
#7 {main}'
Looking into receiver.php
's getTransformedSourceUrl
function, the custom handling for bridgy might not be required.
If I remove the if block if (strpos($url, 'brid.gy') !== false)
, then it works fine.
Do you remember the original reason for this if condition? Should I raise a PR to remove it?
After changing the config for komments (as discussed here) I receive a big error message when I want to access webmentions stats in the panel:
Could not connect to Database: Attempt to read property "data" on bool Could not connect to Database: Attempt to read property "data" on bool Could not connect to Database: Attempt to read property "data" on bool {"$direction":null,"$language":{"code":"de","default":true,"direction":"ltr","name":"Deutsch","rules":{"\u00c4":"AE","\u00d6":"OE","\u00dc":"UE","\u00df":"ss","\u00e4":"ae","\u00f6":"oe","\u00fc":"ue"}},"$languages":[{"code":"de","default":true,"direction":"ltr","name":"Deutsch","rules":{"\u00c4":"AE","\u00d6":"OE","\u00dc":"UE","\u00df":"ss","\u00e4":"ae","\u00f6":"oe","\u00fc":"ue"}},{"code":"en","default":false,"direction":"ltr","name":"English","rules":[]}],"$menu":[{"current":false,"disabled":false,"icon":"home","id":"site","link":"site","text":"Site"},{"current":false,"disabled":false,"icon":"globe","id":"languages","link":"languages","text":"Sprachen"},{"current":false,"disabled":false,"icon":"users","id":"users","link":"users","text":"Accounts"},{"current":false,"disabled":false,"icon":"settings","id":"system","link":"system","text":"System"},{"current":true,"disabled":false,"icon":"live","id":"webmentions","link":"webmentions","text":"Webmentions"},{"current":false,"disabled":false,"icon":"chat","id":"komments","link":"komments","text":"Komments"},{"current":false,"disabled":false,"icon":"chart","id":"simplestats","link":"simplestats","text":"Simple Stats"},"-",{"current":false,"icon":"account","id":"account","link":"account","disabled":false,"text":"Dein Account"},"-",{"icon":"logout","id":"logout","link":"logout","text":"Abmelden"}],"$permissions":{"access":{"account":true,"languages":true,"panel":true,"site":true,"system":true,"users":true},"files":{"changeName":true,"create":true,"delete":true,"read":true,"replace":true,"update":true},"languages":{"create":true,"delete":true},"pages":{"changeSlug":true,"changeStatus":true,"changeTemplate":true,"changeTitle":true,"create":true,"delete":true,"duplicate":true,"preview":true,"read":true,"sort":true,"update":true},"site":{"changeTitle":true,"update":true},"users":{"changeEmail":true,"changeLanguage":true,"changeName":true,"changePassword":true,"changeRole":true,"create":true,"delete":true,"update":true},"user":{"changeEmail":true,"changeLanguage":true,"changeName":true,"changePassword":true,"changeRole":true,"delete":true,"update":true}},"$license":true,"$multilang":true,"$searches":{"pages":{"icon":"page","label":"Seiten","id":"pages"},"files":{"icon":"image","label":"Dateien","id":"files"},"users":{"icon":"users","label":"Accounts","id":"users"}},"$url":"https://www.domain.tld/panel/webmentions?language=de","$user":{"email":"[email protected]","id":"kOBKf1QA","language":"de","role":"admin","username":"Frederik"},"$view":{"breadcrumb":[],"code":200,"path":"webmentions","timestamp":1640013463442,"props":{"summary":false,"targets":false,"sources":false,"version":{"local":"1.2.2","latest":"1.2.2","updateAvailable":false,"error":false}},"search":null,"label":"Webmentions","icon":"live","menu":true,"link":"webmentions","id":"webmentions","breadcrumbLabel":"Webmentions","title":"Webmentions","component":"k-webmentions-view"}}
This is the config line for the sqlite path which worked before changing the komments config:
'mauricerenck.indieConnector.sqlitePath' => 'site/logs/',
If I remove the komments config the error is gone. What could be the issue here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.