I hereby claim:
- I am craftyphotons on github.
- I am craftyphotons (https://keybase.io/craftyphotons) on keybase.
- I have a public key ASB0Bce596YUTZDtKZjihVgZnf8Ij_huRY65bbghyyKgoAo
To claim this, I am signing this object:
public interface IMod | |
{ | |
string ModName { get; } | |
void OnDisabled(); | |
void OnEnabled(); | |
} |
module Singulus | |
module Microformats | |
# Determines the post type of an h-entry according to https://indieweb.org/post-type-discovery#Algorithm. | |
class EntryType | |
def initialize(entry_props) | |
@entry = entry_props | |
end | |
def call | |
return 'rsvp' if valid_web_uri?(entry['rsvp']) |
def create | |
case request.media_type | |
when 'x-www-form-urlencoded', 'multipart/form-data' | |
if params.has_key?(:action) && params.has_key?(:url) | |
if '^(un)?delete$'.match?(params[:action]) | |
worker_params = params.permit(:action, :url) | |
MicropubWorker.perform_async(worker_params) | |
head :accepted, location: '???' | |
else | |
render json: { error: 'invalid_request', error_description: 'Action can only be delete or undelete. See https://micropub.spec.indieweb.org for details.' }, status: 400 |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: