Will this come to beta 15?
FriendsOfFlarum Webhooks
datitisev EvilExecutor Yes. I can't provide a timeframe for it, however. Sorry
ctml maybe, but not in priority
- Edited
0.3.0
This extension does not support beta 14. Your ReFlar webhooks will be migrated.
- Moved to FriendsOfFlarum
- Updated for beta 15
- Fix issue with all events in Webhook settings modal showing disabled animation every time you enable/disable one
- Fix default group showing as member
- Improve settings UI
- NEW: Add extra text to your webhook messages (predefined, cannot change per event, set per webhook)
- NEW: Microsoft Teams integration
- DISCORD: Do not replace avatar with forum icon
- DISCORD: Support discordapp.com and discord.com domains
- A migration on extension enable will automatically replace
discord.com
withdiscordapp.com
from all your Discord webhook urls
- A migration on extension enable will automatically replace
Updating
composer remove reflar/webhooks
composer require fof/webhooks
- Edited
datitisev Awesome! Is the extra text
required? Because without you get the error using the Discord webhook. Otherwise I'll open an issue in GitHub
Return value of FoF\Webhooks\Response::getExtraText() must be of the type string, null returned
Also, when trying to add the extra text you'll get an error (that's a bug for sure)
JasperVriends What error do you get when trying to add the extra text?
I will fix the no extra text error today (null one( but i didn't encounter an error when updating the extra text.
datitisev Ah! I see the issue, the column extra_text
does not exists after migrating from 'Webhooks by ReFlar' to 'FriendsOfFlarum webhooks'. There is no migration that adds the extra_text
culumn as the 'create table' migration hasn't run due to the table already exists
JasperVriends Oh right, i forgot that i never actually released a version with that column. I made changes back in June but never published them . Will fix soon.
0.3.1
- Fix issue if
extra_text
is null - Actually create
extra_text
column
Updating
composer require fof/webhooks
php flarum migrate
Is it possible to post an excerpt and not the entier discussion ?
Can you please add filter by tags, we're making a qotd system, and need it to automatically post them, but we don't want it to post all discussions!
- Edited
ItsMrReals
+1 for this, would love to filter events by tag so posts, etc. in private discussions can be filtered out. I guess you can still sort of do that with the group permission filter, but the tag just allows for a bit more granularity. Tag filters would let you create webhooks for the same events, and have them go to different locations depending on tag. For example you could have a webhook for a support tag and have it go to your slack channel for support, and announcements to a separate location.
0.4.0
- NEW: Allow restricting webhook to a single specific tag (only affects Discussion & Post events)
- NEW: Allow creating multiple webhooks with same URL
- Use User display names everywhere (except User Renamed event)
- Add loading indicator for service, url items when being saved
- Make sure post contents being sent with webhook aren't an array & post exists
- Sightly improve styling of admin page
Updating
composer require fof/webhooks
php flarum cache:clear
- Edited
datitisev NEW: Allow restricting webhook to a single specific tag
NEW: Allow creating multiple webhooks with same URL
Use User display names everywhere (except User Renamed event)
You're a rock star, thank you @datitisev!
Oh! That's a good update and adds
One more suggestion, adding webhook to Guilded (direct discord concurrent)