Create post with poll programmatically?
Does anyone know if it is possible to create a post with a poll/survey programmatically using PHP without writing directly to the database? I see the example code for creating a post but there is no mention of adding a poll. Thanks!
Will add that support in the next version.
Shahjahan JewelΒ Thanks. I'm able to do it using the fluent_community/feed/new_feed_data filter but not when calling createFeed which is what I need. Fortunately, I don't need it immediately, so thanks for adding to next version.
I suspect createFeed fails at least partially due to these lines in createFeed that filter out the meta field or any others not listed.
$acceptedKeys = ['message', 'title', 'user_id', 'space_id', 'type'];
$feedData = Arr::only($allData, $acceptedKeys);
Thanks!
Shahjahan JewelΒ Did this make it into today's release? I tried using createFeed and wasn't successful. Thanks!
Shahjahan JewelΒ Hi, was this ever added to the code? Also, would it be possible to add an action for when poll votes are made? I need to be able to trigger emails if a certain number of people have voted in a poll. Thanks!!!!