Skip to content

Commit

Permalink
Update to v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
moonfloof committed Sep 17, 2019
1 parent c3a9548 commit 9ec1beb
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 9 deletions.
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## v1.0.1 - 2019-09-17

### Added

* Dark mode for default theme (there's an option in `index.php`)
* Dark mode for default theme (hint: there's an option in `index.php`)
* Media endpoint URL in HTML head section (in addition to micropub query)

### Fixed

* Uses current time if `published` value is an empty string on micropub API
* Properly escape values for meta tags in HTML head
* Prevent errors from occurring when trying to determine non-existent Content
Type.
* Prevent errors from occurring when trying to determine non-existent
Content-Type
* Wrap long words and links in default theme
* Save user configuration propertly if note and links are empty

### Changed

* Resize profile to always be square

## v1.0.0 Initial Release - 2019-09-14

Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// This definition will prevent any files to be loaded outside of this file.
define('MICROLIGHT', 'v1.0.0');
define('MICROLIGHT', 'v1.0.1');

try {
// Load user details
Expand Down
2 changes: 1 addition & 1 deletion install.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// This definition will prevent any files to be loaded outside of this file.
define('MICROLIGHT', 'v1.0.0');
define('MICROLIGHT', 'v1.0.1');

session_start();
require_once('includes/config.php');
Expand Down
2 changes: 1 addition & 1 deletion media/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('MICROLIGHT', 'v1.0.0');
define('MICROLIGHT', 'v1.0.1');

chdir('..');
require_once('includes/config.php');
Expand Down
9 changes: 8 additions & 1 deletion micropub/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('MICROLIGHT', 'v1.0.0');
define('MICROLIGHT', 'v1.0.1');

chdir('..');
require_once('includes/config.php');
Expand Down Expand Up @@ -41,6 +41,13 @@
case 'source':
ml_http_response(HTTPStatus::OK, query_source());
return;

default:
ml_http_error(
HTTPStatus::INVALID_REQUEST,
'Invalid q parameter. Pick one of "config", "syndicate-to", or "source"'
);
return;
}

case 'POST':
Expand Down
2 changes: 1 addition & 1 deletion webmention/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('MICROLIGHT', 'v1.0.0');
define('MICROLIGHT', 'v1.0.1');

chdir('..');
require_once('includes/config.php');
Expand Down

0 comments on commit 9ec1beb

Please sign in to comment.