diff options
-rwxr-xr-x | clean-inbox | 2 | ||||
-rw-r--r-- | server.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/clean-inbox b/clean-inbox index b623890..9429962 100755 --- a/clean-inbox +++ b/clean-inbox @@ -1,3 +1,3 @@ #!/usr/bin/env nu -[create announce undo delete like update move] | each { |a| glob $'/srv/social/inbox/($a)/*.json' | each {|f| rm $f } } +[create announce undo delete like update move add] | each { |a| glob $'/srv/social/inbox/($a)/*.json' | each {|f| rm $f } } @@ -142,6 +142,7 @@ helpers do return unless @object and @object['type'] != 'Person' @object = fetch(@object) if @object.is_a? String and @object.match(/^http/) + return unless @object if @activity['type'] != 'Update' && (@object['id'] and File.readlines(VISITED, chomp: true).include? @object['id']) return end |