Evan Prodromou
05e3768e6a
Parse RSS items as activities
...
First steps to parsing RSS items as activities. RSS feeds don't seem
to have enough data to make good remote profiles, but this may work
with some "hints".
2010-03-19 09:48:39 -05:00
Sarven Capadisli
c320b29c10
Updated biz theme logo
2010-03-19 10:06:06 +01:00
Evan Prodromou
ac609e8040
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
...
Conflicts:
plugins/OStatus/extlib/hkit/hkit.class.php
plugins/OStatus/lib/discoveryhints.php
2010-03-18 20:57:38 -05:00
Evan Prodromou
17c50f338c
Remove hkit and do our own hcard parsing
...
Parsing hcards for the data we need wasn't hard enough to justify using
hkit. It was dependent on a number of external systems (something to
run tidy), and only could handle XHTML.
We now parse HTML with the PHP dom libraries used elsewhere, and
scrape out our own hcards. Seems to work nicer and faster and most of
all works with Google Buzz profile URLs.
2010-03-18 20:52:00 -05:00
Brion Vibber
4a6c9e4451
Work around weird bug with HTML normalization via PHP DOM module; if source had xmlns and xml:lang I ended up with double output, breaking the subsequent parsing. Will have to track this down later and report upstream if not already resolved.
2010-03-18 17:57:58 -07:00
Brion Vibber
08faff2278
Work around weird bug with HTML normalization via PHP DOM module; if source had xmlns and xml:lang I ended up with double output, breaking the subsequent parsing. Will have to track this down later and report upstream if not already resolved.
2010-03-18 17:55:21 -07:00
Zach Copley
1f160bb7bc
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
...
* 'testing' of gitorious.org:statusnet/mainline:
Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.
2010-03-18 17:20:09 -07:00
Brion Vibber
3e2e88b0df
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
2010-03-18 17:19:28 -07:00
Brion Vibber
01a1e882af
Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.
2010-03-18 17:18:01 -07:00
Zach Copley
a6c9445f0d
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
...
* 'testing' of gitorious.org:statusnet/mainline:
OStatus discover fixes:
Remove xpm support (no one really uses it, and IMAGETYPE_XPM is undefined, causing warnings)
Fix notice warning about unused var -- was renamed during refactoring.
2010-03-18 17:11:06 -07:00
Brion Vibber
1301877dfe
OStatus discover fixes:
...
* Subscription::start was sometimes passing users instead of profiles to hooks, which broke OStatus subscription notifications; now normalizing to profiles for processing.
* H-card parsing would trigger a lot of PHP warnings and notices in hKit. Now suppressing warnings and notices for the duration of the call to keep them out of output when display_errors is on.
* H-card parsing would trigger a PHP fatal error if the source page was not well-formed XML and Tidy was not present on the system. Switched normalization to use the PHP DOM module which is always present, as we have no need for Tidy's extra features here.
* Trying to fetch avatars from Google profiles failed and triggered a PHP warning due to the relative URL not being resolved during h-card parsing. Now passing profile page URL into hKit by sneaking a <base> tag in while we normalize the HTML source.
* Profile pages without a "Link" header could trigger PHP notices due to a bad NULL -> array(NULL) conversion in LinkHeader::getLink(). Now checking that there was a return value before converting single return value into array.
2010-03-18 17:08:19 -07:00
Zach Copley
051bee988c
Minor syntax err in TwitterBridge README example
2010-03-18 17:00:37 -07:00
Craig Andrews
26ba430ae8
Remove xpm support (no one really uses it, and IMAGETYPE_XPM is undefined, causing warnings)
...
Remove erroneous call to unlink in the constructor
2010-03-18 15:39:06 -07:00
Brion Vibber
b149b88953
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
2010-03-18 15:39:04 -07:00
Zach Copley
109aac3c49
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
...
* 'testing' of gitorious.org:statusnet/mainline:
Fix for xmpp/sms notification options appearing to be disabled on new subscriptions.
2010-03-18 15:28:21 -07:00
Zach Copley
e10d023d03
API - handle any exceptions thrown during notice save. The API was
...
occasionally spitting out HTML, which is hard for clients to deal
with.
2010-03-18 15:26:13 -07:00
Craig Andrews
9c5af9a38f
Remove xpm support (no one really uses it, and IMAGETYPE_XPM is undefined, causing warnings)
...
Remove erroneous call to unlink in the constructor
2010-03-18 18:13:54 -04:00
Brion Vibber
c8e3d08a8f
Fix notice warning about unused var -- was renamed during refactoring.
2010-03-18 15:11:25 -07:00
Sarven Capadisli
7dd701fbb3
Added processing indicator for more anchor
2010-03-18 23:00:38 +01:00
Brion Vibber
69b25ba1be
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
2010-03-18 14:33:45 -07:00
Brion Vibber
cac9d23498
Fix for xmpp/sms notification options appearing to be disabled on new subscriptions.
...
Base problem is that our caching-on-insert interferes with relying on column default values; the cached object is missing those fields, so they appear to be empty (null) when the object is retrieved from cache.
Now explicitly setting them when inserting subscriptions, and cleaned up some code that had alternate code paths.
May also have made auto-subscription work for remote OStatus subscribers, but can't test until magic sigs are working again.
2010-03-18 14:26:32 -07:00
Zach Copley
54c6dc090b
Remove deprecated call-by-reference. Was causing a warning on Dreamhost.
2010-03-18 13:49:28 -07:00
Zach Copley
c09db79b95
Remove deprecated call-by-reference. Was causing a warning on Dreamhost.
2010-03-18 13:46:11 -07:00
Evan Prodromou
dbd44e51a2
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
2010-03-18 15:21:43 -05:00
Evan Prodromou
2ccd5187cc
change profile URL ensure method for OStatus
2010-03-18 15:21:26 -05:00
Brion Vibber
f1b3d84b7d
Fix some remote subscription regressions from f21f78364a
...
Ostatus_profile::ensureProfile() has been renamed to Ostatus_profile::ensureProfileURL()
2010-03-18 13:13:57 -07:00
Brion Vibber
bbfb766885
Add readme notes about PHP <5.2.6 bug on 64-bit and PHP 5.3 issues.
2010-03-18 11:12:27 -07:00
Brion Vibber
0fe82bd0c9
Runtime check for known bad PHP versions with 64-bit stream_select() bug in xmppdaemon.php.
2010-03-18 11:08:27 -07:00
Brion Vibber
1de7badd78
Merge branch 'master' of git@gitorious.org:statusnet/mainline into testing
2010-03-18 10:55:20 -07:00
Brion Vibber
515cdf28a8
Ensure that DB connection is active at start of User::updateKeys() and Foreign_user::updateKeys(); calls to $this->_quote() require a live connection object and don't lazy-initialize themselves.
...
May fix WSOD when changing incoming email address.
2010-03-18 09:24:55 -07:00
Brion Vibber
85b93310dd
Ensure that DB connection is active at start of User::updateKeys() and Foreign_user::updateKeys(); calls to $this->_quote() require a live connection object and don't lazy-initialize themselves.
...
May fix WSOD when changing incoming email address.
2010-03-18 09:22:08 -07:00
Brion Vibber
d115932466
Sigh... somehow left a stray bit of test code and broke activity.php.
2010-03-18 09:10:44 -07:00
Evan Prodromou
425ddcaa26
add exception on inconsistent db to User::getProfile()
2010-03-18 08:35:10 -05:00
Evan Prodromou
0a1b10114b
new exception class for when a user has no profile
2010-03-18 08:32:17 -05:00
Sarven Capadisli
e2768b8635
Using an icon to represent the action for more text
2010-03-18 14:29:35 +01:00
Sarven Capadisli
052466ceab
Using … (hellip) instead of "more" for link text
2010-03-18 14:26:30 +01:00
Evan Prodromou
a764603e73
reverse order from delete, insert to insert, delete on ostatus conversion
2010-03-18 08:04:22 -05:00
Evan Prodromou
f1af583e3e
catch exceptions in OStatus updates, log, and continue
2010-03-18 07:55:14 -05:00
Brion Vibber
55a54d6f6a
Ticket #2244 : fix to interpretation of escaped HTML and plaintext Atom content on incoming OStatus messages.
...
We were double-unescaping for <content type="html">, turning <b> escaped chars into literal tags (which then may get removed entirely by the HTML scrubber).
2010-03-17 17:35:27 -07:00
Brion Vibber
5d1295f233
Merge branch 'ostatus-crop' into 0.9.x
2010-03-17 16:41:01 -07:00
Sarven Capadisli
d8a533274f
Updated 'more' anchor for attachments to do an XHR GET
2010-03-18 00:19:32 +01:00
Brion Vibber
dc71833ce6
Add doc comments on saveHTMLFile; drop the extra <div> wrapping the contents to make it easier to extract without getting extra markup.
2010-03-17 15:49:10 -07:00
Siebrand Mazeland
3255f9d9cf
Localisation updates for !StatusNet from !translatewiki.net !sntrans
...
Signed-off-by: Siebrand Mazeland <s.mazeland@xs4all.nl>
2010-03-17 22:44:38 +01:00
Brion Vibber
a9c731798e
Tweak to OStatus long message cropping: use original source notice URL for the link in the text version, don't shorten the link for the HTML so we can append params to it in JS.
2010-03-17 14:16:43 -07:00
Brion Vibber
f797a10256
Display scrubbed HTML attachments inline on attachment view page.
2010-03-17 13:58:25 -07:00
Brion Vibber
3a72c70b7e
When too-long messages come in via OStatus, mark the attachment link up as a "more" link in the HTML output, marked with class="attachment more" so JS code can fold it out smartly. Text output will still include the raw link.
2010-03-17 12:34:35 -07:00
Brion Vibber
67f2f01c5e
Merge branch 'testing' into 0.9.x
2010-03-17 12:15:40 -07:00
Brion Vibber
ca5612c451
Merge branch 'master' into testing
2010-03-17 12:15:12 -07:00
Brion Vibber
dacd0f3e6d
Fix to regression for auto-subscribe - was backwards.
2010-03-17 12:14:19 -07:00
Brion Vibber
22f827134c
Workaround for HTTP authentication in the API when running PHP as CGI/FastCGI. Example rewrite lines added as comments in htaccess.sample, API tweaked to accept alternate environment var form.
2010-03-17 11:04:41 -07:00