TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

My cheapskate commenting system

125 点作者 bradley_taunt超过 3 年前

25 条评论

southerntofu超过 3 年前
Congratulations on your system!<p>&gt; Must be manually curated and posted<p>Well sure but you can make that semi-automated using a TUI&#x2F;WebUI to filter out obvious spam then review comments individually before pushing a batch to your publishing pipeline. For example, by importing the maildir entries into your SSG directory, or by forwarding the selected comments to a localhost address not reachable from the outside where the maildir will be automatically picked up by a script.<p>&gt; No notifications<p>for me i don&#x27;t have notifications of email but that&#x27;s a feature not a bug. i could set up some easily on my smartphone. and you could do the same, or you could use something like sendxmpp to keep you updated on a chat account.<p>&gt; No “built-in” reply functionality<p>Why not? Just assign every article a uniqueID, and every approved message a uniqueID based on a hash of publishing date and commenter email and use a mailto URI for the reply link where subject = &quot;articleID-commentID&quot; and body = explanation to not change the message title and about privacy policy. That&#x27;s how email-based bugtracking systems like debbugs work to keep track of relations between messages. You could even make opt-in for receiving (approved) replies via email maybe by adding &quot;Can&#x27;t wait to hear from you!&quot; at the end of the body...<p>I can&#x27;t find the source right now but if you ask cmccabe from rawtext.club (can also be found on other tildeverse IRC chans) he&#x27;s got a nice&#x2F;flexible email treatment pipeline using simple scripts that could be very well adapted to this usecase. Demo? Send &quot;pepperoni&quot; subject to frisbee+pizza@rawtext.club ;-) ;-)
SkeuomorphicBee超过 3 年前
The problem with this approach is that most people don&#x27;t have a mail app set up on their computers (I&#x27;m guessing on phones it works flawlessly). Pretty much everyone uses a webmail now a days, so &quot;mailto:&quot; links simply don&#x27;t work for most people, they just open a default mail client which the user doesn&#x27;t use and never setup. So you end up with a confused user unable to comment.
评论 #30232426 未加载
评论 #30236457 未加载
评论 #30232719 未加载
评论 #30237417 未加载
chrismorgan超过 3 年前
On the markup: don’t nest buttons and links, they don’t play well together—the combination messes up various tooling, including screen readers (or so I’m told), and definitely messes up keyboard navigation with Tab and expected interactivity. Use one or the other. A link, most likely, so people can easily copy it:<p><pre><code> &lt;a href=&quot;mailto:hello@tdarb.org?subject=RE:%20My%20Cheapskate%20Commenting%20System&quot;&gt;Comment via email&lt;&#x2F;a&gt; </code></pre> You might hope that you could make it a full form, with a body field and all:<p><pre><code> &lt;form action=&quot;mailto:hello@tdarb.org&quot; target=&quot;_blank&quot;&gt; &lt;input type=&quot;hidden&quot; name=&quot;subject&quot; value=&quot;RE: My Cheapskate Commenting System&quot;&gt; &lt;textarea name=&quot;body&quot;&gt;&lt;&#x2F;textarea&gt; &lt;input type=&quot;submit&quot; value=&quot;Comment via email&quot;&gt; &lt;&#x2F;form&gt; </code></pre> … but in practice, application&#x2F;x-www-form-urlencoded turns spaces into +, but + is ambiguous in mailto: URIs &lt;<a href="https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;html&#x2F;rfc6068#section-5" rel="nofollow">https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;html&#x2F;rfc6068#section-5</a>&gt; and generally interpreted as + rather than space. I don’t believe there’s any way to instruct browsers to emit %20 instead. As <a href="https:&#x2F;&#x2F;url.spec.whatwg.org&#x2F;#concept-urlencoded" rel="nofollow">https:&#x2F;&#x2F;url.spec.whatwg.org&#x2F;#concept-urlencoded</a> says, “the application&#x2F;x-www-form-urlencoded format is in many ways an aberrant monstrosity”. I love it when language like that gets into specs, even if it’s only in non-normative notes. (The body field is probably not universally supported either, but with spaces being turned into plus signs, the absence of the body don’t signify so much.)<p>(If inspecting RFC 6068 carefully, you’ll note that line breaks also have to be encoded %0D%0A (␍␊); that one isn’t a problem, as HTML form data serialisation normalises that way already &lt;<a href="https:&#x2F;&#x2F;html.spec.whatwg.org&#x2F;multipage&#x2F;form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs" rel="nofollow">https:&#x2F;&#x2F;html.spec.whatwg.org&#x2F;multipage&#x2F;form-control-infrastr...</a>&gt;—which I’ve seen trip up more than one char-count-limit implementation, with the server seeing two-char line breaks and the client seeing one-.)
rambambram超过 3 年前
I&#x27;m building a comment system along the same concept right now. The best part for me is - well, I hope so - that it filters quick and angry comments. Like OP suggests: visitors going through this small hoop probably leave interesting comments. Didn&#x27;t know about lowtechmagazine having this kind of comments system, but that&#x27;s definitely an endorsement for the concept, if you ask me. To filter spam, I base my system on the spam-filtering contactform I already have.<p>Besides: OP, I &#x27;follow&#x27; your website by RSS now. Or should I send you an email to tell this!? ;)
superkuh超过 3 年前
My favorite way to implement and simply&#x2F;safely self host a web comment system is to log all POSTs that include a string like, &#x2F;@say&#x2F; in the URL to a unique log file on disk. This txt file is then the comments and included via server side includes for minimal attack surface with just enough features to do what&#x27;s needed. This means you have to actually control the webserver but in this context I think that&#x27;s reasonable.
评论 #30233971 未加载
评论 #30235029 未加载
rheide超过 3 年前
I reached the same conclusion for my own static blog. One step beyond just having an email link is to run an AWS lambda that takes a web form post and sends you an email with the contents. That way you can add a captcha (hCaptcha seems like a good alternative to Google), and your email address doesn&#x27;t float around on the public internet. It&#x27;s fairly low maintenance and easy to replace if you ever did want to step away from AWS.
评论 #30231539 未加载
jb1991超过 3 年前
If I had a blog, I would skip any kind of commenting system altogether and just post a link to every article I write to HN, and include a link to the discussion on HN in the article, and let HN be my commenting system. It would probably get more visibility, have better discussions, and even if the link was never seen by anyone on HN, it would still offer a place for discussion for a while. You would have the benefit of letting the HN community be a filter of who gets to respond, which I think is a pretty good filter.
评论 #30234805 未加载
评论 #30234929 未加载
评论 #30236440 未加载
评论 #30234804 未加载
scary-size超过 3 年前
I’m just running a single contact form on my blog. Messages aren’t displayed on articles. Users don’t even have to include their email if they don’t want to. The comment is stored in a file on disk by a very simple fastCGI script. The rest of the blog is static [1]<p>[1] <a href="https:&#x2F;&#x2F;franz.hamburg&#x2F;writing&#x2F;boring-website.html" rel="nofollow">https:&#x2F;&#x2F;franz.hamburg&#x2F;writing&#x2F;boring-website.html</a>
blondin超过 3 年前
&gt; E-mail. It’s just plain e-mail.<p>came to the same realization. it dawned on me that we have done it before in the past with &quot;contact me&quot; and &quot;guestbook&quot; forms.<p>email providers could repurpose their service around this. it would be awesome to manage comments natively and easily from your inbox. plus you can take your email messages and contacts with you.<p>it is full of potential.
karaterobot超过 3 年前
&gt; Those willing to write me a personal e-mail in order to share their thoughts on my stupid little blog probably have something interesting to say.<p>Neat. I expect it would also reduce low-quality content, because (optimistically) commenters are making a more human connection by directly emailing the author and asking him to do a little work, and (pessimistically) they know they can&#x27;t get past the content filter, and nobody will ever read their screed if it&#x27;s too nasty.<p>I&#x27;ve run a blog for over 17 years, and haven&#x27;t turned comments on for over 16 of them. I don&#x27;t consider the pluses worth the minuses. But, this method never occurred to me.
derekzhouzhen超过 3 年前
You can use mine:<p><a href="https:&#x2F;&#x2F;roastidio.us&#x2F;claim" rel="nofollow">https:&#x2F;&#x2F;roastidio.us&#x2F;claim</a><p>It will send emails to you and let you choose which one to show the world. All email addresses are hidden so everyone stay anonymous.
TomGullen超过 3 年前
Interesting solution however I would however be worried about potential confusion around implicit expectation of privacy when users send an email - this is the first time I’ve seen this barrier being broken down in this way.
k3vinw超过 3 年前
I’m surprised nobody mentioned procmail.<p>Could help automate some tasks for you. Maybe even some kind of review&#x2F;publish mechanism depending on how far you wanted to automate things.
评论 #30233645 未加载
rognjen超过 3 年前
I did _exactly_ the same thing. My blog runs on Jekyll too. I had Disqus but it was spammy.<p>I&#x27;ve found that I get most comments on hacker news though ;)
mro_name超过 3 年前
so do I [1] and I render them in an iframe straight from the comment feed. Wouldn&#x27;t have to be email, could be a web form or be aggregated from HN or alike as well.<p>[1] <a href="https:&#x2F;&#x2F;blog.mro.name&#x2F;2019&#x2F;05&#x2F;wp-to-hugo-making-of&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.mro.name&#x2F;2019&#x2F;05&#x2F;wp-to-hugo-making-of&#x2F;</a>
defanor超过 3 年前
The cons of the email option can be mitigated by setting a mail archiver (as used for mailing lists). Since it&#x27;s about avoiding setting any software on a remote system, one can run its update&#x2F;maintenance bits locally, along with other website generation&#x2F;upload software.
bin_bash超过 3 年前
Storing website comments in Github issues is probably against the ToS anyways isn&#x27;t it?
prisout64超过 3 年前
I Love this. Will try it out on my personal blog soon, as well as utterances. I get that some people don&#x27;t want to have a github account and email seems like a great alternative.
woodruffw超过 3 年前
Very cool. I&#x27;ve thought about doing exactly this, with a Google Group and a cronjob that checks for new postings every few minutes.
WalterBright超过 3 年前
I use something similar, but instead use a bit of javascript to obfuscate it so the email harvesters won&#x27;t send me spam.
peanut_worm超过 3 年前
Does windows still try to configure outlook if you click mailto links? i feel like webmail has ruined mailto
swyx超过 3 年前
if you want a quick and easy way to put comments into a small free postgresql instance including auth you can try <a href="https:&#x2F;&#x2F;github.com&#x2F;malerba118&#x2F;supabase-comments-extension" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;malerba118&#x2F;supabase-comments-extension</a>
评论 #30234439 未加载
winrid超过 3 年前
FYIW we currently offer a $1 tier on fastcomments... but yes this is cheaper :p
iqanq超过 3 年前
What a GDPR nightmare.
评论 #30234526 未加载
评论 #30233665 未加载
评论 #30232661 未加载
评论 #30233267 未加载
评论 #30233000 未加载
baxtr超过 3 年前
Can someone come-up with an open-source HN like commenting system? It&#x27;s really the best I know.
评论 #30236499 未加载
评论 #30233253 未加载