Oh! That's a good update and adds
One more suggestion, adding webhook to Guilded (direct discord concurrent)
Oh! That's a good update and adds
One more suggestion, adding webhook to Guilded (direct discord concurrent)
I had to create the tag_id
column manually as it was throwing an error when updating my existing webhook. I didn't clear the cache as instructed though so it may have been my fault, but I am not sure that would have any effect or not. Maybe this only affects those who upgrade and not new installs.
Everything with the new features seems to be working smoothly though The only other important ones might be sanitizing bbcode/markdown from posts (optional) and a more minor would be to truncate posts after X characters (optional) with a message for the user "Click here to read the full post" sort of like flarum email notifications.
ctml I had to create the tag_id column manually as it was throwing an error when updating my existing webhook
Did you run php flarum migrate
? If not, next time your forum tries to migrate it will have an error because it'll try to create the column that you've already created.
ctml The only other important ones might be sanitizing bbcode/markdown from posts (optional)
I attempted to do this, and code blocks had an ugly script tag that wasn't getting removed for some reason so I gave up for today
datitisev Did you run php flarum migrate? If not, next time your forum tries to migrate it will have an error because it'll try to create the column that you've already created.
Ah ok, no I did not do that! my fault I will make sure to remove the column and run so it doesn't cause issues later, thank you for the heads up.
datitisev I attempted to do this, and code blocks had an ugly script tag that wasn't getting removed for some reason so I gave up for today
The triple grave accent ``` for large code blocks are working for slack since the two using the same markdown but single and double won't as they are not a part of slack mrkdwn. I guess it would be more work than its worth to try and convert bbcode/markdown or html to slack specific mrkdwn unless someone already had a reliable library that did it. For now in my posts I am just going to avoid using any bbcode/markdown that I know will trigger webhooks so things look pretty Thanks for having a look into the idea!
Please add new line support for extra text! And something like ${link} so you can customize where the link is! Maybe even add custom embeds! Or add custom webhook support
What does the user dropdown under: "Here you modify what events the webhook is fired on" means?
I can chose between admins and everybody else
danielunited There should be some text explaining that right above it. Unless you aren't on the latest version.
Maybe a workaround for the markdown would be to add an option to not send the post content itself... only user, discussion title, etc.
Otherwise, I wonder how the flarum email notifications work. They get sent as HTML but without any formatting, maybe the same method could be leveraged for getting unformatted post content.
ignore
method signature has changedcomposer require fof/webhooks
php flarum cache:clear
This webhook is disabled because it doesn't have any events enabled, What does it mean and how can I solve it?
CosmicLivest Once you create a webhook, you need to click the edit button to enable the events you want to receive hooks for.
does this work for discord posting when someone posts threads etc
is that right as it does not post anything into the channel
not working for me, do you think i did something wrong?
Puggo Sorry, I hadn't seen this message. You'll want to recreate the webhook as anyone with that URL from the screenshot will be able to send messages in that channel.
Based on the screenshot, you didn't click the +
icon to actually add the URL & service. Once you do that, you'll want to click the button to edit it, and enable the events you want, e.g. "Discussion Started"