polls icon indicating copy to clipboard operation
polls copied to clipboard

Integrate poll as custom widget in riot.im

Open natrius opened this issue 5 years ago • 9 comments

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.

natrius avatar May 21 '19 20:05 natrius

I am not sure, if we can manage this, because security handling is part of the nextcloud server.

dartcafe avatar May 26 '19 20:05 dartcafe

So, this should would be better located in https://github.com/nextcloud/server ?

natrius avatar May 27 '19 07:05 natrius

I believe, yes.

dartcafe avatar Jun 02 '19 09:06 dartcafe

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 ;)

skjnldsv avatar Aug 25 '20 09:08 skjnldsv

It would be a really nice feature to have

Thatoo avatar Sep 21 '21 14:09 Thatoo

Wouldn't it be better to use the API via a standalone app?

dartcafe avatar Sep 21 '21 21:09 dartcafe

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?

natrius avatar Sep 21 '21 22:09 natrius

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

dartcafe avatar Sep 22 '21 06:09 dartcafe

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.

natrius avatar Sep 22 '21 09:09 natrius