Skip to content

Commit

Permalink
Short circuit ignoring comments from this app
Browse files Browse the repository at this point in the history
  • Loading branch information
fsvreddit committed Oct 15, 2024
1 parent 0996de7 commit e8f4150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devvit.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: social-links-bot
version: 0.0.3
version: 0.0.4
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Devvit.addTrigger({
Devvit.addTrigger({
event: "CommentCreate",
onEvent: async (event, context) => {
if (!event.comment || !event.author) {
if (!event.comment || !event.author || event.author.name === context.appName) {
return;
}

Expand Down

0 comments on commit e8f4150

Please sign in to comment.