]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter-compatible API - updated rewrite rules to support /statuses/user_timeline
authorzach <zach@copley.name>
Fri, 18 Jul 2008 00:23:24 +0000 (20:23 -0400)
committerzach <zach@copley.name>
Fri, 18 Jul 2008 00:23:24 +0000 (20:23 -0400)
darcs-hash:20080718002324-ca946-6b30ea6e3941b0f1278712edc02d9eeef00a3cc2.gz

htaccess.sample

index 3954128e22d1617e937f821c804388e1a46de4d8..317ddef485c44ebc247711fec65d00b9f20a6e20 100644 (file)
@@ -60,6 +60,7 @@ RewriteRule ^(\w+)$ index.php?action=showstream&nickname=$1 [L,QSA]
 # XXX: Surely these can be refactored a little -- Zach
 RewriteRule ^api/statuses/public_timeline(.*)$ index.php?action=api&apiaction=statuses&method=public_timeline$1 [L,QSA]
 RewriteRule ^api/statuses/friends_timeline(.*)$ index.php?action=api&apiaction=statuses&method=friends_timeline$1 [L,QSA]
+RewriteRule ^api/statuses/user_timeline/(.*)$ index.php?action=api&apiaction=statuses&method=user_timeline&argument=$1 [L,QSA]
 RewriteRule ^api/statuses/user_timeline(.*)$ index.php?action=api&apiaction=statuses&method=user_timeline$1 [L,QSA]
 RewriteRule ^api/statuses/show/(.*)$ index.php?action=api&apiaction=statuses&method=show&argument=$1 [L,QSA]
 RewriteRule ^api/statuses/update(.*)$ index.php?action=api&apiaction=statuses&method=update$1 [L,QSA]