This commit is contained in:
parent
1d2347ab72
commit
e89137224b
1 changed files with 3 additions and 7 deletions
10
main.go
10
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" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue