utterances icon indicating copy to clipboard operation
utterances copied to clipboard

[feature request] Add an option to not show comment form, only link to issue with comments

Open selivan opened this issue 5 years ago • 5 comments

I don't want to force my users to authorize some application on their account. Just providing the link to the issue with comments would be enough.

Could you please add an option to hide the comment form? And may be show "Add comment" link to the issue instead.

selivan avatar Jul 13 '20 20:07 selivan

I could be wrong, but I think the problem is with opening new issues if no-one has commented before. In order to do so, a token (requested by utterances-oauth from GitHub) is required for authentication by design, and such token is only set when you login and authorise the GitHub App.

WeixuanZ avatar Aug 01 '20 12:08 WeixuanZ

@WeixuanZ in that case the button should be replaced with message: issue for comments named "name" doe not exist, please create. For some users, me for example, this is preferrable: I don't mind creating an issue, but I am concerned that some of my visitors will not leave the comment, because it requires to allow access to your github account for some third-party application.

selivan avatar Aug 01 '20 15:08 selivan

I also didn't want to force my reader to authorize an app to post everywhere using their own account. As a workaround, on my blog I added text below the comment form Don't want to use the Utterance bot? Comments can be also placed [directly on GitHub](link).. It's not perfect, as I need to remember about creating an issue on GitHub manually and to commentIssueId as a parameter on every blog post in Hugo. In addition people might miss that text and authorize anyway, but some reader liked it (as a workaround).

szpak avatar Aug 01 '20 19:08 szpak

Is it possible to get the link to the issue in Javascript, so I can put some boilerplate text like @szpak's version on my page automatically?

Another idea would be to leave a default first comment on every post with a message like this. This would also have the advantage of creating the comments page, which otherwise wouldn't be done until the first person comments. Any idea how hard it would be to do that automatically?

asmeurer avatar Sep 14 '20 23:09 asmeurer

I would also love to put a link to the issue (if it exists).

kleuter avatar Jun 25 '21 09:06 kleuter