From e89137224bceb96b810e6904aa98cc0febd4b8a6 Mon Sep 17 00:00:00 2001 From: Astra Date: Mon, 3 Nov 2025 10:17:18 +0000 Subject: [PATCH] Don't post if starting with @ --- main.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 34d95bb..3fcd1a2 100644 --- a/main.go +++ b/main.go @@ -195,8 +195,9 @@ func (h *handler) ProcessPost(event *models.Event) error { now := time.Now() createdAt := ps.CreatedAt duration := now.Sub(createdAt) - if duration.Hours() > *oldPosts { - // don't post old posts + if duration.Hours() > *oldPosts || + strings.HasPrefix(ps.Text, "@") || + ps.IsReply() { return nil } @@ -205,11 +206,6 @@ func (h *handler) ProcessPost(event *models.Event) error { isEditedPost = true } - if ps.IsReply() { //|| ps.IsQuotePost() { - // don't want to post replies to channel - return nil - } - var captionText string if ps.IsQuotePost() { if ps.Embed.Record.Type == "app.bsky.embed.record" {