Fix micro.blog auth

This commit is contained in:
2023-12-02 10:38:04 +11:00
parent 45cafa2b04
commit 1edad91c2f

View File

@@ -87,7 +87,11 @@ module Micropub
halt 401 unless indie_auth_verified || micro_blog_verified
decoded_response[:scope].gsub("post", "create").split.map(&:to_sym)
if indie_auth_verified
decoded_response[:scope].gsub("post", "create").split.map(&:to_sym)
elsif micro_blog_verified
[:create, :update]
end
end
end
end