mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 10:57:01 +00:00
Merge pull request #29 from aelaraji/web-mention-endpoint-fix
Fix warnings on webmention endpoint.
This commit is contained in:
commit
c9bd89af8c
1 changed files with 2 additions and 1 deletions
|
|
@ -5,12 +5,13 @@
|
|||
|
||||
// Set path to your mentions twtxt file:
|
||||
//$logfile = './mentions.txt'; /* Make sure file is writeable */
|
||||
$config = parse_ini_file('private/config.ini');
|
||||
$logfile = $config['webmentions_txt_path'];
|
||||
|
||||
|
||||
if (!isset($_POST['source']) || !isset($_POST['target'])) {
|
||||
print('Please send a propper webmention to this endpoint');
|
||||
header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
|
||||
print('Please send a propper webmention to this endpoint');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue