Commit Graph

2045 Commits

Author SHA1 Message Date
Craig Andrews e386a75d1b Check theme first for CSS files, then use the non-theme path.
Fixes CSS links in plugins
2009-08-06 13:07:14 -04:00
Jeffery To ad1c91a1cf Fixed missing/null values from JSON search results 2009-08-07 00:03:50 +08:00
Craig Andrews c8c2d9d7c9 Make 2nd and 3rd cssLink() arguments optional 2009-08-06 11:18:57 -04:00
Zach Copley 421e33f145 - Rewrote SyncTwitterFriends as a daemon
- Made it use OAuth
- Code clean up
2009-08-06 07:03:05 +00:00
Zach Copley 6d29592ec7 Abstract out the parallelizing daemon stuff 2009-08-06 01:15:08 +00:00
Craig Andrews 2eaf738bf7 Handle relative and absolute url parameters to script() and cssLink() 2009-08-05 20:28:46 -04:00
Craig Andrews 304db1d30b Use script() and cssLink() methods everywhere instead of manually writing out javascript and css each time 2009-08-05 19:45:12 -04:00
Craig Andrews 6a76addbe8 Added cssLink() and script() functions to htmloutputter 2009-08-05 19:35:42 -04:00
Craig Andrews feac024348 Accidentally caused the DOCTYPE to never be rendered - fix that. 2009-08-05 19:24:34 -04:00
Craig Andrews b975a6a0e5 Don't start HTML responses with <?xml if the document is served as text/html.
Starting a text/html mime type document with <?xml causes some browsers (previous version of Opera and IE) to switch to Quirks Mode.
2009-08-05 18:55:47 -04:00
Craig Andrews 95ba22c5d7 Switch DOCTYPE's to the XHTML 5 DOCTYPE 2009-08-05 18:27:27 -04:00
Zach Copley 3ebbc1c388 Merge branch '0.8.x' into twitter-oauth 2009-08-05 19:01:15 +00:00
Zach Copley 43eb19910f Post to Facebook user's stream if notice has an attachment, otherwise post notice as a status update 2009-08-04 20:49:18 +00:00
Zach Copley 0685b85d8d Use ssl for fetching frinds_timeline from Twitter since it requires auth and is a protected resource 2009-08-04 17:19:05 +00:00
Jeffery To 0155d02cec Fixed PHP Notice "Undefined property: Profile::$value" 2009-08-04 18:45:11 +08:00
Zach Copley fe9fc15286 Make TwitterStatusFetcher daemon work with OAuth 2009-08-04 02:21:18 +00:00
Zach Copley f94ee5597d Moved some stuff to a base class 2009-08-04 00:46:18 +00:00
Zach Copley dccd4aa68d Merge branch '0.8.x' into twitter-oauth 2009-08-03 22:47:57 +00:00
Zach Copley 981fa1b33a Make the TwitterQueuehandler post to Twitter using OAuth 2009-08-03 22:46:01 +00:00
Jeffery To e670e4306b Fixed PHP Notices:
Undefined index:  HTTP_X_FORWARDED_FOR
    Undefined index:  HTTP_CLIENT_IP
    Undefined variable: proxy

Also fixed the return value order to match calls to common_client_ip() in actions/api.php and lib/rssaction.php
2009-08-02 20:10:31 +08:00
Jeffery To 6c1bd67591 Fixed PHP Notice "Undefined index: enclosures" (and a possible one for 'tags') 2009-08-02 19:38:03 +08:00
Jeffery To b2d2b19d3a Fixed PHP Notice "Use of undefined constant session_name - assumed 'session_name'" 2009-08-02 19:36:09 +08:00
Zach Copley 6f4b2f0ac2 Twitter OAuth server dance working 2009-08-01 08:20:44 +00:00
Craig Andrews 45ad4cfe72 Added a url field to hold the permalink. I believe this field is very useful for api consumers. 2009-07-30 22:43:07 -04:00
Craig Andrews ec103b90e3 Implemented the "show" method of the laconica groups api 2009-07-30 22:15:24 -04:00
Sarven Capadisli 77c5f9481c Removed default values from <input>s. JavaScript will now get the
colours from the theme. This approach removes data that was
previously available in HTML. It was only necessary if the user wanted
to know the site's default values.
2009-07-30 17:06:17 -04:00
Evan Prodromou 854d24b05a Site-wide design configuration
I added some code so that the site-wide design can be set, using the
configuration interface.

I also moved the configuration option from
$config['site']['design']['background'] to just
$config['design']['background'], but the old syntax will still work.

Conflicts:

	config.php.sample
2009-07-30 17:05:35 -04:00
Sarven Capadisli 80ad02610a Removed default values from <input>s. JavaScript will now get the
colours from the theme. This approach removes data that was
previously available in HTML. It was only necessary if the user wanted
to know the site's default values.
2009-07-30 20:44:51 +00:00
Evan Prodromou 7292c1aa78 Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x 2009-07-30 16:25:38 -04:00
Evan Prodromou ae81d36137 Site-wide design configuration
I added some code so that the site-wide design can be set, using the
configuration interface.

I also moved the configuration option from
$config['site']['design']['background'] to just
$config['design']['background'], but the old syntax will still work.
2009-07-30 16:24:04 -04:00
Craig Andrews 15848a815e Fix the router entries for the oEmbed endpoint so they don't accidentally catch too much 2009-07-30 15:37:35 -04:00
Craig Andrews 6b48fd8f86 move oEmbed router connection after plugins, so other endpoints (such as main/facebooklogin) from plugins don't get accidentally intercepted 2009-07-29 15:33:09 -04:00
Craig Andrews 421ee4297e Fix RDFS namespace declaration.
Thanks tobyink
2009-07-28 10:43:40 -04:00
Craig Andrews ac75772150 Sanitize html returned by oEmbed providers to protect laconica from XSS attacks 2009-07-27 13:42:03 -04:00
Zach Copley b9cf19a2ee Better error handling when updating Facebook 2009-07-27 02:54:51 +00:00
Craig Andrews 3077876b17 Merge commit 'br3nda/0.8.x-lowercaseutf8' into 0.8.x 2009-07-26 00:59:41 -04:00
Brenda Wallace d3a72431be lowercase tags using mb_convert_case(), which understands many more alphabets than I do. 2009-07-26 16:34:27 +12:00
Sarven Capadisli 0b47e71e7a Removed <dl> structure from NoticeListItem::showContext. Same as
committ e0b877b26c.
2009-07-25 18:26:00 +00:00
Sarven Capadisli e378341910 Removed <dl> structure from NoticeListItem::showNoticeSource. Same as
commit e0b877b26c.
2009-07-25 18:22:05 +00:00
Sarven Capadisli 9c09bfe4d7 Removed <dl> structure from NoticeListItem::showNoticeLink. Reason:
Arguably, the earlier structure was unnecessarily verbose. Same as commit
e0b877b26c.
2009-07-25 18:04:45 +00:00
Sarven Capadisli 66a959a776 Removed <dl> structure from NoticeListItem::showReplyLink. Reason:
Same as commit e0b877b26c.
2009-07-25 17:44:19 +00:00
Sarven Capadisli e0b877b26c Removed <dl> structure from NoticeListItem::showDeleteLink. Reason:
To speed up DOM load by cutting down 3 nodes in each notice list item.
Generally each notice option should be a list item in a <ul>, however,
there is no tangible benefit for the user using this approach. In this
case, minimalism is favoured. Similarly, the new approach will make 5
fewer function calls on the server side.
2009-07-25 17:37:37 +00:00
Evan Prodromou a3a5d23c54 dbqueuemanager a little more sane about sleeping 2009-07-23 14:56:21 -07:00
Evan Prodromou f227006789 whitespace in dbqueuemanager 2009-07-23 14:50:47 -07:00
Craig Andrews 7fff454ff9 Revert "0.9.0 dev version"
This reverts commit 7cfb2f569d.

This should have never been committed to the 0.8.x branch.
2009-07-23 13:00:34 -04:00
Craig Andrews 67e674773e Merge commit 'br3nda/0.8.x-tagrssfix' into 0.8.x 2009-07-23 11:16:50 -04:00
Brenda Wallace a33ffe1357 Call $this->getNotices() always, becuase $this will be the right class.
e.g.
TagrssAction
 or
PublicrssAction
2009-07-23 21:46:20 +12:00
Craig Andrews a54b809778 Merge commit 'jeff-themovie/private-rss' into 0.8.x 2009-07-22 10:25:22 -04:00
Craig Andrews e70a79d6ab Merge commit 'br3nda/0.8.x-hashtags' into 0.8.x 2009-07-22 10:23:17 -04:00
CiaranG be5f9ca0e1 Stop daemons using 100% CPU and hammering the DB server when the queue is empty (DBQueueManager-based only) 2009-07-22 09:25:27 +01:00
Craig Andrews 38d70f1386 Add <category> to RSS 2.0, use the same tag finding method for RSS 1.0 as for Atom and RSS 2.0.
http://laconi.ca/trac/ticket/864
2009-07-21 18:01:22 -04:00
Evan Prodromou 6467351e32 update dbqueuemanager to respect handler timeout values 2009-07-21 12:52:55 -07:00
Evan Prodromou 0a602725b1 Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x 2009-07-21 12:50:45 -07:00
Evan Prodromou de987a9e63 update dbqueuemanager to respect handler timeout values 2009-07-21 12:50:32 -07:00
Craig Andrews 52d51fad3c Fixed: Browser language preference's not used when using Google Chrome
Thanks bambeeq

http://laconi.ca/trac/ticket/620
2009-07-21 15:10:00 -04:00
Craig Andrews 10a6751ddb Fixed: If the site name contains "." or "@" (and perhaps others), then notification emails (such as the email confirmation email) fail with the error "LOG_ERR: PEAR error: Validation failed for:
SITE_NAME <noreply@HOSTNAME> :"

Thanks jk3us

http://laconi.ca/trac/ticket/1356
2009-07-21 14:03:08 -04:00
Craig Andrews a9613e999f Detect xmpp uri's and make them into hyperlinks
http://laconi.ca/trac/ticket/1592
2009-07-21 13:52:59 -04:00
Brenda Wallace 76dd061a34 allow full unicode into links for tags 2009-07-20 14:02:52 +12:00
Brenda Wallace 5909826122 show full utf8 in tags 2009-07-20 14:02:26 +12:00
CiaranG 1139f7cad5 Merge commit 'br3nda/0.8.x-pgfixes' into 0.8.x 2009-07-19 08:05:53 +01:00
Craig Andrews 8e7a8450d3 Make RSS 1.0 more efficient when the same hashtag is used in multiple notices.
Thanks tobyink
2009-07-17 23:08:19 -04:00
Craig Andrews 441c276859 Add link to conversation pages when possible.
Thanks tobyink
2009-07-17 23:06:14 -04:00
Craig Andrews 7237d59aab Fix RDFS namespace declaration.
Thanks tobyink
2009-07-17 22:59:58 -04:00
Zach Copley 64853769b3 Moved $_id from queuehandler to daemon, as other daemons need it too. 2009-07-17 18:07:53 -07:00
Zach Copley 3474a0f04e Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
* '0.8.x' of git@gitorious.org:laconica/mainline:
  Moved oembed endpointer so openid no longer incorrectly prompts for authentication
2009-07-17 14:26:34 -07:00
Zach Copley 44f3f2bd2a Only create attachment elements if attachment is an enclosure 2009-07-17 14:25:36 -07:00
Craig Andrews f0d17afc7b Moved oembed endpointer so openid no longer incorrectly prompts for authentication 2009-07-17 17:11:26 -04:00
Zach Copley 9c670ba695 Only populate attachments array element if there are attachments 2009-07-17 12:42:16 -07:00
Zach Copley baec1320ab Also show XML representation of attachments in the API 2009-07-17 12:42:05 -07:00
Craig Andrews 3dbbefd5ad Merge branch 'oembed-provider' into 0.8.x 2009-07-17 12:33:56 -04:00
Craig Andrews 9ed117dc3a Move the oembed endpoint to /main/oembed 2009-07-17 12:33:12 -04:00
Jeffery To 1aea598977 Merge branch '0.9.x' into private-rss 2009-07-17 16:54:46 +08:00
Jeffery To 5015505f16 Added failed auth logging (like in actions/api.php) 2009-07-17 16:44:14 +08:00
Sarven Capadisli 9b372f5bb7 Added form_note for notice character count.
http://laconi.ca/trac/ticket/1712
2009-07-16 19:58:43 +00:00
Evan Prodromou 7cfb2f569d 0.9.0 dev version 2009-07-16 00:16:30 -04:00
Evan Prodromou c07c4b2050 change version to 0.8.1dev 2009-07-15 23:36:08 -04:00
Craig Andrews 75545cdc07 Added attachment information to the json responses 2009-07-15 10:37:50 -04:00
Craig Andrews 0aeea42724 Added stub oembed api endpoint 2009-07-15 10:29:54 -04:00
Brenda Wallace 3722b90a27 use single quotes in sql 2009-07-15 20:19:01 +12:00
Brenda Wallace 15042ed50b added user_group.design_id into the group by clause 2009-07-15 20:17:17 +12:00
Brenda Wallace 1a151ff6f6 used SQL standard LIMIT/OFFSET, because every database can understand that 2009-07-15 20:17:01 +12:00
Craig Andrews 593af9feb6 Moved the decision logic as to whether an attachment should be an enclosure to the File class 2009-07-14 13:33:40 -04:00
Jeffery To ae6a3e258d Adds HTTP basic authentication for private RSS 1.0 feeds 2009-07-14 03:45:12 +08:00
Craig Andrews e047ba52c7 Merge branch 'tags-timeline-api' into 0.8.x 2009-07-13 14:58:39 -04:00
Toby Inkster 38784141d1 Copy isset($attachment->filename) fix from RSS 1.0 to RSS 2.0 and Atom 1.0 feeds. 2009-07-13 16:56:52 +01:00
Toby Inkster ae2bc6a850 Add notice tags to RSS 1.0 output. 2009-07-13 15:37:15 +01:00
Toby Inkster a68773df63 Improve output for files/attachments. 2009-07-13 15:16:10 +01:00
Craig Andrews 91324890ae Add timeline tags API (RSS 2.0 and Atom feeds) 2009-07-12 15:07:54 -04:00
Zach Copley 0ac08c1fb3 Make get_group() behave more like get_user() 2009-07-10 18:22:19 -07:00
Zach Copley 544a14d290 Move groups timeline API method into groups API action 2009-07-10 17:56:01 -07:00
Zach Copley 5b3d4f7121 Merge branch 'candrews-review' into 0.8.x
* candrews-review:
  added group status api, located at /api/statuses/group_timeline/ID.rss
2009-07-10 16:11:31 -07:00
Zach Copley 4a1d7ad082 Merge branch 'candrews-review' into 0.8.x 2009-07-10 21:03:44 +00:00
Craig Andrews 08d50655f3 added group status api, located at /api/statuses/group_timeline/ID.rss
http://laconi.ca/trac/ticket/1702
2009-07-10 17:00:27 -04:00
Evan Prodromou 6a0f0e32d5 Merge branch '0.8.x' into 0.9.x 2009-07-10 10:06:20 -07:00
Evan Prodromou 15f6309dea add a little syntactical sugar for adding plugins 2009-07-09 23:12:53 -07:00
Evan Prodromou f527b8a8d7 wrong order for span and a in profilesection 2009-07-09 17:40:11 -07:00
Evan Prodromou 8b65883f9d cache frequently-used subscriber, subscription, notice and fave count values 2009-07-09 17:28:38 -07:00
Craig Andrews 8250006fbf When a notice is posted with an attachment, the facebook stream update has media displayed inline, or as links.
http://laconi.ca/trac/ticket/1685
2009-07-09 18:42:19 -04:00
Evan Prodromou 03ccb74052 0.9.0 dev version 2009-07-09 18:22:46 -04:00
Evan Prodromou efd94b4e54 change version number to 0.8.0 2009-07-09 18:22:10 -04:00