polls
polls copied to clipboard
Integrate poll as custom widget in riot.im
What is going wrong?
When trying to include a custom widget where i have to input the URL of the homepage i get the following error:
This content can not be embedded: X-Frame-Options: SAMEORIGIN
Expected behavior
Allow me to add the poll so users of a channel can vote for something directly instead of having to send the link all the times in case someone new joins the channel, for example.
Information about your polls installation
Polls version 0.10.2 How did you install this version? Appstore
Information about your Instance of Nextcloud/ownCloud
Nextcloud Which Version? 16.0.0
I don't think there is much to add, if more info is needed, just ask.
I am not sure, if we can manage this, because security handling is part of the nextcloud server.
So, this should would be better located in https://github.com/nextcloud/server ?
I believe, yes.
Redirected from server. Yuo can manage security policies from your app. https://github.com/nextcloud/files_pdfviewer/blob/146145daca390e2199a41aa3857af99150a5fe15/lib/Controller/DisplayController.php#L66-L71
Of course if it's not on the roadmap, please close again ;)
It would be a really nice feature to have
Wouldn't it be better to use the API via a standalone app?
What do you mean? Just share a link?
The only thing i'm suggesting is - make it possible to integrate with a widget in element. Or should this work already?
My question was, if it is not better to build an app (i.e. a riot plugin) for integration, which uses polls public API.
See here: https://github.com/nextcloud/polls/blob/master/docs/API_v1.0.md
If someone is willing to do duplicate work, why not. And a "element plugin" (its not riot anymore) would be a widget anyway. And there is a way to add custom widgets already, for Nextcloud Polls its blocked from the polls side, thats the only problem. Someone from the server-team mentioned this above already.
It would be nice to get a way it autofills the answers with the accountname of the current user but i guess thats a new issue after it is possible to add polls as custom widget.