Can Ghost authors receive notifications when a comment is created on a post?
I have integrated TalkYard in my Ghost blog. So far, it's working great. I recently allowed other authors to create posts by creating them accounts under "Staff". When a comment comes on a post of theirs, I still receive an email notification. Is it possible to email the author as well?
- 19 replies
There are 19 replies. Estimated reading time: 19 minutes
- KajMagnus @KajMagnus2019-08-14 02:37:27.568Z
Different authors publish blog posts at your Ghost blog, and they don't automatically get notified about replies to their respective blog posts? The problem is that Talkyard doesn't know who wrote the blog post; Talkyard doesn't know that it's a Ghost blog, or anyting about the authors and users in the Ghost database. — You, however, get notified, because you're admin and by default get notified about all replies evreywhere.
I recently allowed other authors to create posts by creating them accounts under "Staff".
Is that the Staff group in Talkyard? Or in Ghost?
Possible solution alternatives, 1, 2, 3, (4):
Alternative 1) They can login to your Talkyard Blog Comments site, click their username in the upper right corner, click View Profile, then click Preferences and Notifications, then set Default notifications, site wide to Every Post. Then they'll get notified about all comments (a.k.a. "posts", in Talkyard terminology). — That's the default setting for admins, and, that's why you, being an admin, get notfied about all comments.
Alt. 2) They can log in to your Talkyard site, go to their Ghost blog post, and click Notifications: ... below the blog pots, at the top of the comment section. And then choose Every post (meaning, every comment on that blog post page).
Alt. 1 problem: They get notfied also about replies to other people's blog posts.
Alt. 2 problem: They need to remember to change the notification setting for their own blog posts (namely, enabling notifications).
What are your thougts about 1 and 2?
Can I ask, how many people are you, writing blog posts? Roghly how many posts per week? Feel free to type a link to your blog; would be interesting to have a look. I haven't heard about someone else doing this before (combined with Talkyard comments).
Alt 3: It seems to me it'd be good if there was a way for the Ghost blog to automatically tell Talkyard who wrote the blog post. Does Ghost give each author a unique author id? (edit: yes, see below) — Maybe I could make it possible to send such author id from Ghost to Talkyard, so that Talkyard would know, who the author is, and can auto-configure Every Post ( = every comment) notifications to the author.
This wouldn't have any of the problems with alt 1 and alt 2 above. Instead, you'd need to do a little bit manual work, namely to map Ghost author ids to Talkyard user ids.
Here I see that Ghost templates does indeed have access to Ghost blog author data, incl an id field:
id - the incremental ID of the author
What do you think about this "auto author" approach?
But the author data, apparently does not include an email address. If there had been an email address, then:
Alt 4: Automatically upsert the Ghost author into Talkyard, by listening to Ghost webhooks? and sending the author id, name, and email address from Ghost to Talkyard. Then, the Ghost blog authors wouldn't need to sign up at your Talkyard blog comments site at all — instead, Ghost + Talkyard would cooperate and do this automatically. ... But without an email address, this doesn't seem meaningful. I wonder why Ghost doesn't include an email address in their author data: https://ghost.org/docs/api/v2/content/#authors (click "Resources" then "Authors". No email addr mentioned).
- AAdam Bertram @adbertram2019-08-14 11:37:46.462Z
I don't want to have to manage two systems; I'd prefer to keep all authors in the Ghost database. I have them there now.
I have about 20 authors approved to write. We publish one post/week.
My blog is adamtheautomator.com.
Yes. each author does have a unique ID. They also have an associated email address.
I'm game to implement any way for authors to get email notifications automatically.
- KajMagnus @KajMagnus2019-08-14 19:49:05.633Z
Thanks for the info, interestnig to hear. I see some articles got fairly many comments.
Maybe webhooks? If, whenever a comment gets posted, Talkyard makes a HTTP POST request to an url of your choice, with data about the reply, e.g. an url to the blog post and comment. Then maybe Ghost can listen to webhooks, and notify the author somehow? ... Or so I thought, but apparently Ghost doesn't have any enpoint for doing that: https://forum.ghost.org/t/is-there-an-api-endpoint-to-send-email/4066
I don't want to have to manage two systems; I'd prefer to keep all authors in the Ghost database.
To reply to comments, the authors still need accounts in the Talkyard database. So there'll be a Talkyard account in any case?
(Plus, with the Talkyard accounts, the authors can subscribe to replies to each other's articles too ... If one author likes another author's blog post for example, and want to get notified of replies. And I would think some time later, there'll be "power user options" for ... maybe how often one gets reply notifications, or something like that. )
... Still, yes it seems a bit annoying to have two accounts (one in Ghost, one in Talkyard), per author.
What if we ask for best practices and ideas, over at the Ghost forum?: https://forum.ghost.org — Do you want to do that? Otherwise I can ask.
If you can have TalkYard send a webhook when a comment is created to a user-configurable URL, that might work. At a bare minimum, if you can send the post slug in the webhook, that would be enough for me. From the email I receive now as an admin, I get those.
- KajMagnus @KajMagnus2019-08-15 03:44:58.295Z
You would then setup a tiny HTTP server that listens for webhooks, and then looks up the URL in Ghost's database to find data about the blog post and author? And then emails the author?
I'd like to know if there's any way to avoid having-to-write-code and setting up a new server :- ) ... so I posted over at the Ghsot forum, see below.
- KajMagnus @KajMagnus2019-08-15 11:18:32.978Z
Ok, interesting. Over at the Ghost forum, they suggested Zapier actually. Talkyard has an RSS feed (well, Atom) and if I review it so it includes everything needed by you, then you can connect this feed with a Zapier-something.
But how does your Zap endpoint know which URL belongs to each blog post, and author email? Doesn't your Zap-thing need access to the Ghost database to find out?
- KajMagnus @KajMagnus2019-08-15 12:28:57.281Z
First you need to go here: https://comments-for-adamtheautomator-com.talkyard.net/-/admin/settings/features and enable the API. Thereafter, you'll find the feed here: https://comments-for-adamtheautomator-com.talkyard.net/-/v0/feed.
However, the feed doesn't currently link to adamtheautomator.com; instead, it links to comments-for-adamtheautomator-com.talkyard.net, that is, the Talkyard site.
That's something I sholud probably change, in the next version of Talkyard (probably later this week).
Would that be all you need? An Atom feed to connect with Zapier, updated whenever a comment gets posted, and with links similar to: https://adamtheautomator.com/powershell-tutorial-mini-course/#comment-3
- KajMagnus @KajMagnus2019-08-16 03:30:13.772Z
@someburneraccount, I have in mind to change the comment links in the recent comments Atom feed, to point to the embedding "real" site, rather than the Talkyard .net site with the comments. So, if someone visits
yourdata.comand clicks a comment in the "Recent Post" list, they will stay at your site, rather than being redirected to
I'm thinking you'd consider this an improvement / bug fix? Since this means people will stay at your website, and will navigte to and see the comment there, rather than going to Talkyard.net. And when they stay at your site, there're more chances they'll find & read more articles, maybe see more ads. — Still I'd be interesting in hearing what you think about this?
(Background: This is about making the Atom feed work, together with Zapier, for notifying the authors of a multi author blog, about new comments.)
- KajMagnus @KajMagnus2019-08-19 10:56:11.210Z
Update: Never mind this. I'm instead adding links to the blog posts, in
<link rel="alternate" href="....">links. And the
<id>http:// ...</id>links will continue to point to the Talkyard site. — Later there'll be a separate feed specifically for blog comments, sth like
- KajMagnus @KajMagnus2019-08-15 03:34:54.687Z2019-08-15 11:18:59.711Z
@adbertram I asked over at the Ghost forum: https://forum.ghost.org/t/ghost-blog-comments-reply-notifications-to-authors-in-multi-author-blogs/8671 (I hope it's ok that I linked to your blog?).
Edit: Now they've replied — and they mentioned Zapier, seems like a good approach: https://forum.ghost.org/t/ghost-blog-comments-reply-notifications-to-authors-in-multi-author-blogs/8671/2
- KajMagnus @KajMagnus2019-08-16 04:09:01.159Z
No posts found, or they are private [TyE0FEEDPOSTS](at this url: https://comments-for-adamtheautomator-com.talkyard.net/-/v0/feed ) — that is something I need to fix. It's because by default listing all topics and replies, isn't allowed, even if they're publicly visible, like blog comments. But in the case of blog comments, a better default, is probably to allow listing them, so the feeds willl work. So I'll change this (for blog comments).
Not sure if Zapier supports only RSS, or both RSS and Atom. I asked their support people. Currently Talkyard is Atom only.
(Note to self: Here's Zapier's docs for RSS:
Ok so there're a bit more things to do than what I thought. Likely I'll have the feed working at the end of next week, not this week.
Hi Adam, now I've added links in the feed to the blog article so you'll know which blog post got a comment. They're in
<link rel="alternate" href="....">links in the Atom feed. (The
<id>http://....</id>links still point to the Talkyard site.)
The Zapier tech support people tested their "zaps" with Atom instead of RSS, and say it seems to work. (Although the docs mention RSS only).
To see the feed, currently you need to enable discussion forum features — here:
https://comments-for-adamtheautomator-com.talkyard.net/-/admin/settings/features (don't forget to click Save afterwards),
and then make the blog comments category "listed" instead of "un-listed", by going here:
clicking the Blog Comments category,
clicking "Edit Category"
and then, in the edit dialog,
change this setting: "Unlist topics or category?" to "No, show them".
Thereafter the feed will appear here: https://comments-for-adamtheautomator-com.talkyard.net/-/v0/feed.
(If you want to, I can do all this for you — please let me know?)
Some time later, there'll be another feed:
/-/v0/embedded-comments-feedthat doesn't require any of the changes above, and whose
<id>https://....</id>link to the blog (instead of to the Talkyard site).
Enabling the discussion forum, changes a bit how the topic list page looks at the Talkyard site: the category name, "Blog Comments", will be shown. Otherwise, forum features, like categories, aren't shown, for simplicity.
Anyway I can try to find time to add the
/-/v0/embedded-comments-feedfeed now soon, that's the "real" solution that will also work better for other people.