We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a218bec9 authored by Evan Prodromou's avatar Evan Prodromou

add basic auth for user_timeline

parent 54a931a3
......@@ -309,6 +309,14 @@ class TwitapistatusesAction extends TwitterapiAction {
// Set the user to be the auth user if asked-for can't be found
// honestly! This is what Twitter does, I swear --Zach
$user = $apidata['user'];
if (!$user) {
# This header makes basic auth go
header('WWW-Authenticate: Basic realm="Laconica API"');
# if the user hits cancel -- bam!
$profile = $user->getProfile();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment