From 44967ae9f605ca37b6d88e4e8b11a9cf1fdc2b57 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Thu, 14 Sep 2023 20:20:26 +0200 Subject: note objects fixed, verify reactivated --- create.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'create.rb') diff --git a/create.rb b/create.rb index 8e221c8..40e1357 100644 --- a/create.rb +++ b/create.rb @@ -4,6 +4,7 @@ ATTACH_REGEXP = /^attach:\s+/i URL_REGEXP = %r{\Ahttps?://\S+\Z} MENTION_REGEXP = /\A@\w+@\S+\Z/ HASHTAG_REGEXP = /\A#\w+\Z/ +# COMMENT_REGEXP = /^$/ + next when TO_REGEXP line.sub(TO_REGEXP, '').split(/\s+/).each do |word| case word @@ -71,9 +76,10 @@ post '/create' do object['inReplyTo'] = inReplyTo unless inReplyTo.empty? object['attachment'] = attachment unless attachment.empty? object['tag'] = tag unless tag.empty? - jj object + # p to + # jj object - # create_activity 'Create', object, to + create_activity 'Create', object, to 200 end -- cgit v1.2.3