Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 047dbc0

Browse files
authored
Merge pull request #4806 from withspectrum/fix-sam-text
Remove sam sentence logic
2 parents bf90c19 + 7278278 commit 047dbc0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

api/mutations/thread/publishThread.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,10 @@ export default requireAuth(
350350
// Post a new message with a link to the new thread to the watercooler thread if one exists
351351
if (community.watercoolerId && !channel.isPrivate) {
352352
const identifier = user.username ? `@${user.username}` : user.name;
353-
const sentence =
354-
Array.isArray(usersPreviousPublishedThreads) &&
355-
usersPreviousPublishedThreads.length === 0
356-
? `their first thread 👋`
357-
: 'a new thread 📝';
358353
await addMessage(
359354
{
360355
content: {
361-
body: `${identifier} just posted ${sentence} https://spectrum.chat/${
356+
body: `${identifier} just posted a new thread 📝 https://spectrum.chat/${
362357
community.slug
363358
}/${channel.slug}/${slugg(dbThread.content.title)}~${dbThread.id}`,
364359
},

0 commit comments

Comments
 (0)