Commit Graph

1081 Commits

Author SHA1 Message Date
Earle Martin
e5f26f8b2e Link author avatars to posts directly.
darcs-hash:20080716183052-68ac8-ad94d5e0195ea861cd65b9b3abf8b56824906794.gz
2008-07-16 14:30:52 -04:00
zach
d461e2ff23 Twitter-compatible API - updated rewrite rules to support /statuses/user_timeline
darcs-hash:20080718002324-ca946-6b30ea6e3941b0f1278712edc02d9eeef00a3cc2.gz
2008-07-17 20:23:24 -04:00
zach
cffe49eca3 Twitter-compatible API: /statuses/user_timeline/argument.format now works
darcs-hash:20080718002131-ca946-d34d4554dadbdfc1cff6648e989a73d4b3b24271.gz
2008-07-17 20:21:31 -04:00
zach
3a942bd8b9 Twitter-compatible API /statuses/replies.format -- changed subtitle to be more like Twitter's
darcs-hash:20080717223521-ca946-cd043e9430956dde56907181896a16133333d905.gz
2008-07-17 18:35:21 -04:00
zach
c1d109dbb5 Twitter-API: /statuses/replies.format now works (mostly)
darcs-hash:20080717222845-ca946-f2644317a144157aaba7a38d4effb216a9c5f650.gz
2008-07-17 18:28:45 -04:00
Evan Prodromou
8ad7dded2c sprintf error
darcs-hash:20080717213214-84dde-9e7226c5b33d704398e250ad37653b30effaa069.gz
2008-07-17 17:32:14 -04:00
Evan Prodromou
83040ee747 support id, user timeline
darcs-hash:20080717211942-84dde-3e8fcffc2c4def3088389ed5c1720919458d6f54.gz
2008-07-17 17:19:42 -04:00
Evan Prodromou
bbc1b747f8 add friend statuses, refactor output functions
darcs-hash:20080717210519-84dde-4a2e4caa23d793e74208dcf5c21221e4166366f2.gz
2008-07-17 17:05:19 -04:00
zach
b5659ed85a Twitter-compatible API - /statuses/show and /statuses/update now work
darcs-hash:20080717054411-ca946-e839882ebec3f6d6a12a3f5ecdc1cc403e8afe51.gz
2008-07-17 01:44:11 -04:00
zach
1f7e5ca8f3 Twitter-compatible API: statuses/show/id.format now works
darcs-hash:20080716230047-ca946-b9ff940ab05b29ed88b209f5ca9b446fbe25eab0.gz
2008-07-16 19:00:47 -04:00
zach
ac2d811a46 Twitter-compatible API - code cleanup
darcs-hash:20080716220223-ca946-e3eed117cded61eb9c2d2805fd07758f883fb85b.gz
2008-07-16 18:02:23 -04:00
zach
fba25b0d98 Twitter-compatible API: public_timeline.atom works
darcs-hash:20080716205218-ca946-98e53e29ed364ea4254ed90303c04b93511877f9.gz
2008-07-16 16:52:18 -04:00
zach
c998c7c601 Twitter-compatible API: public_timeline.rss really works now
darcs-hash:20080716191847-ca946-9a75dd3aa07974408b269b31d1de3e49c5ae2a72.gz
2008-07-16 15:18:47 -04:00
zach
7b2367164e Twitter-compatible API: public_timeline.rss mostly working
darcs-hash:20080716072124-ca946-6714d13d6801eddf84800b884721aac37852993d.gz
2008-07-16 03:21:24 -04:00
zach
8977032e11 Twitter-compatible API: public_timeline.json now works
darcs-hash:20080716060922-ca946-6e973c6fb40ab8c8c930b6dfd916e20f40545471.gz
2008-07-16 02:09:22 -04:00
zach
110ce8c811 Twitter-compatible API: refactor in prep for json, rss, and atom formats
darcs-hash:20080715234131-ca946-8c277e9f5980953b5037af40db38c0546222304d.gz
2008-07-15 19:41:31 -04:00
zach
846a1a4106 Twitter-compatible API: public_timeline.xml more complete
darcs-hash:20080715065850-ca946-6d0e490957830d2f837fd304f70599a636597f9c.gz
2008-07-15 02:58:50 -04:00
zach
3df358a9e9 Prepended 'Twit' to Twitter-compatible API actions (renamed action
files) to make it more clear what the action files are for.

darcs-hash:20080715043121-ca946-bb7acd42271117dbb77d5e16292673a4b8cfad53.gz
2008-07-15 00:31:21 -04:00
zach
efd14edf5c Twitter-compatible API: /statuses/public_timeline.xml sorta works
darcs-hash:20080715031812-ca946-10a94dd3cd96039ad76adc36f0f23d7402768fbe.gz
2008-07-14 23:18:12 -04:00
zach
b3ea8b9a01 First Twitter-compat API call works! /api/help/test.format
darcs-hash:20080714202728-ca946-fed9631e283e00019aad61a87d7c4f51530327d1.gz
2008-07-14 16:27:28 -04:00
zach
0bb522d5f4 All Twitter-compatible API calls answer now
darcs-hash:20080714190300-ca946-80e4dbdd0b5278d03cb00b0922cd69c695a166cb.gz
2008-07-14 15:03:00 -04:00
zach
fdc7bfcc51 Stubs for all Twitter-API methods
darcs-hash:20080714080949-ca946-7372d114c1db9f48aa79f7bd8a5f67042da37ac4.gz
2008-07-14 04:09:49 -04:00
zach
cc55a45f4b Second shot at figuring out action dispatch for Twitter-compatible API
darcs-hash:20080714080741-ca946-1b2f8c026f433e27a30abc104ca2dba11b9b662e.gz
2008-07-14 04:07:41 -04:00
zach
1eae7e0ae1 Comment changed to reflect reality
darcs-hash:20080713083853-ca946-f4454aa5da08c870a11398a6ed2d8d5e0762b043.gz
2008-07-13 04:38:53 -04:00
zach
0c90e94864 First volly at a Twitter-compatible API. Just working out the
detials of 1) Basic Auth and 2) dispatch to the right Action class
files to handle the requests.

You can hit it with...

	http://localhost/laconica/api/public_timeline.json

or to try Basic Auth you can try something like:

	http://nickname:password@localhost/laconica/api/statuses/friends_timeline.xml

Although that actual method isn't done yet, so it should authenticate
and then complain.

darcs-hash:20080712081247-ca946-acd3e0e2762c7d9ff0cb3cd7a53cfdfcc5b26660.gz
2008-07-12 04:12:47 -04:00
Evan Prodromou
c51d1521f0 uniquify the list of reply nicknames (DOH!)
darcs-hash:20080717164042-84dde-191bc47dc302911e4ceae0d3b1e74116bb95bcba.gz
2008-07-17 12:40:42 -04:00
Evan Prodromou
3ea1119e50 define syslog variables in common.php
darcs-hash:20080717163613-84dde-2684415a03d1a2754e148e4921ce39ad075bbc5b.gz
2008-07-17 12:36:13 -04:00
Evan Prodromou
ca134adeec add rel
darcs-hash:20080717163211-84dde-6fceee14b023a44bd44311528c8a74a9ca3917e8.gz
2008-07-17 12:32:11 -04:00
Evan Prodromou
e3f5462e1c avatar files never change
darcs-hash:20080717160531-84dde-1a44025c9cf5b2da1f62714cc82ccdb490a8bb63.gz
2008-07-17 12:05:31 -04:00
Evan Prodromou
3b2a2c1c6a restrict avatars to certain sizes in SQL
darcs-hash:20080717160257-84dde-8c4f78582ef0d590102c078a045826951ffcbb28.gz
2008-07-17 12:02:57 -04:00
Evan Prodromou
d57063abeb remove unused call to undefined function
darcs-hash:20080717155438-84dde-7fbe7230ab50e076216d4def65b87a38d7e4edb3.gz
2008-07-17 11:54:38 -04:00
Evan Prodromou
91d0250414 use common functions
I used the common function for the avatar URL, in case there's an
avatar server.

I used the common W3C DTF function.

darcs-hash:20080717155212-84dde-15d39c28e6b502767c1deaf838f6a65136baeda9.gz
2008-07-17 11:52:12 -04:00
Evan Prodromou
74b063f20b remove default priority from sitemaps
darcs-hash:20080717153657-84dde-bbd0179305b8080911be123ffec26cee03bc1153.gz
2008-07-17 11:36:57 -04:00
Evan Prodromou
753a03d895 public indexers in config file
darcs-hash:20080717134331-84dde-b63c9b7e318d74e2cfea14cc962ec2d519f20d43.gz
2008-07-17 09:43:31 -04:00
Evan Prodromou
fb62662650 better log message for incoming presence
darcs-hash:20080717132452-84dde-47017a07fa6a141062d50e7cd1b4473c20f4d25f.gz
2008-07-17 09:24:52 -04:00
Evan Prodromou
70d99a1289 add a description with the bio in it to HTML head
darcs-hash:20080717124719-84dde-192dd0799905c6fde3bf503c08951d4a308e1e12.gz
2008-07-17 08:47:19 -04:00
Evan Prodromou
3658b49f90 no such user in replies.
darcs-hash:20080717124215-84dde-83c2c5ec54a50bb5aa7a5adc23321dadc48083ad.gz
2008-07-17 08:42:15 -04:00
Evan Prodromou
d9b164b3bd default timezone
darcs-hash:20080716210949-84dde-b12d95acdf6f15887fe83fea8f968c972b862be5.gz
2008-07-16 17:09:49 -04:00
Evan Prodromou
4798cd3126 theme server support
darcs-hash:20080716205947-84dde-fa57c8fc140cc479e14b50479df13447abaef31b.gz
2008-07-16 16:59:47 -04:00
Evan Prodromou
0b1528382b default value for avatar server
darcs-hash:20080716205541-84dde-1c98befb2d53613fe1b161d479b8f91adbfb7f6c.gz
2008-07-16 16:55:41 -04:00
Evan Prodromou
265d267d81 remove tag URI stuff; unused and confusing
darcs-hash:20080716205359-84dde-590916f8812c7c03a2b81b3e7aeb021194ac0f25.gz
2008-07-16 16:53:59 -04:00
Evan Prodromou
e858ee49c6 creator_url
darcs-hash:20080716163339-84dde-b6d10e042e3168afa07eb6738dae9714b402dbe2.gz
2008-07-16 12:33:39 -04:00
Evan Prodromou
68cf99a53f use root url of site, not hard-coded identi.ca URL
darcs-hash:20080716152906-84dde-6b28a9c29901274ecef255f8b34839445d6e3d7b.gz
2008-07-16 11:29:06 -04:00
Evan Prodromou
eb9715992c utility function for getting a profile URI
I added a utility function for getting a profile URI. At some point we
need to push commonalities between Remote_profile and User into the
Profile class; single-table inheritance. We do a lot of switching
around for no good reason on users and profiles.

darcs-hash:20080716152511-84dde-6f73d947d11083e7235756fde635e145f02e2483.gz
2008-07-16 11:25:11 -04:00
Evan Prodromou
9b0ae9dd82 slight code hygiene for rssaction
I moved the $creators array from being a global variable to being an
instance variable.

I also changed the URL that was used for the user, based on whether
they're a remote or local user.

Finally, I changed instances of $config to calls to common_config().

darcs-hash:20080716152009-84dde-8d077ab92d1252c252ab722ba887a57b177c8f65.gz
2008-07-16 11:20:09 -04:00
Evan Prodromou
f72e5398bf better formatting on custom error
darcs-hash:20080716134408-84dde-17022943bba55b6108fb015b0166e10f2529d632.gz
2008-07-16 09:44:08 -04:00
Evan Prodromou
3d96d6f5f7 slightly better error handling
darcs-hash:20080716064736-5a68a-b57c978702037f380e31d2d8825109821a01cef5.gz
2008-07-16 02:47:36 -04:00
Evan Prodromou
c265587612 bad default for email on command-line systems
darcs-hash:20080716055326-5a68a-368860d9a9dfd071e7855c3d05a24b7004f59912.gz
2008-07-16 01:53:26 -04:00
Evan Prodromou
dd96edde77 add some warnings and stuff
darcs-hash:20080716061933-84dde-7bb5f28c9263782bc0535cd8303a9fcad3820134.gz
2008-07-16 02:19:33 -04:00
Evan Prodromou
e1711bb0cf error handler in xmppdaemon
darcs-hash:20080716054932-84dde-4c7c65cb1b5fb1d3b1b15409e092b40285d6cfd0.gz
2008-07-16 01:49:32 -04:00