summaryrefslogtreecommitdiff
path: root/classes/File.php
AgeCommit message (Collapse)Author
2010-11-15doc comments on File::processNewBrion Vibber
2010-11-09Allow YouTube-style media links to be counted as enclosures for purposes of ↵Brion Vibber
listing attachments/thumbs
2010-11-08Pass file attachment thumbnails along with oEmbed data.Brion Vibber
2010-11-08Testing... using photo info for temp thumbnailsBrion Vibber
2010-11-08Avoid marking files as attachments that are not locally uploaded, unless ↵Brion Vibber
they're really oembedable. HTML-y things now excluded properly.
2010-11-04i18n/L10n updates.Siebrand Mazeland
2010-11-03Fix for ticket #2853: fix for some unknown MIME type error cases by ↵Brion Vibber
adjusting the PEAR error handling temporarily around MIME_Type_Extension usage.
2010-10-14Make HTTPS urls in File::url() if necessaryEvan Prodromou
2010-09-28* i18n/L10n and translator documentation updates.Siebrand Mazeland
* whitespace and indentation updates
2010-07-30Fixes for messages after review by Brion.Siebrand Mazeland
2010-07-29* add translator documentationSiebrand Mazeland
* mark strings for translation * add FIXME for unclear/confusing message
2010-07-28Number parametersSiebrand Mazeland
2010-06-28Fix regression in 92ded7c6cb56056a89bc8b3caabd08049104898e: spewed PHP ↵Brion Vibber
notices when checking for enclosures due to uninitialized variables.
2010-05-27Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
Conflicts: lib/language.php plugins/OpenID/finishaddopenid.php
2010-05-25Hotpatch for infinite redirection-following loop seen processing URLs to ↵Brion Vibber
http://clojure.org/ -- if we end up with an unstable redirect target (final item in a redirect chain ends up redirecting us somewhere else when we visit it again), just save the last version we saw instead of trying to start over. Pretty much everything in File and File_redirection initial processing needs to be rewritten to be non-awful; this code is very hard to follow and very easy to make huge bugs. A fair amount of the complication is probably obsoleted by the redirection following being built into HTTPClient now.
2010-03-26Fixes problem with IRC URLs showing as attachmentsNick Holliday
2010-03-11A null mimetype is not an enclosure (more likely than not means there was an ↵Craig Andrews
error)
2010-03-10Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
2010-03-10Fixup script for files w/ bogus data saved into file record ('h bug')Brion Vibber
2010-03-10Fix for attachment "h bug": posting a shortened link to an oembed-able ↵Brion Vibber
resource that has been previously used in the system would incorrectly save "h" as the item's type and title.
2010-03-04Merge commit 'origin/testing' into 0.9.xBrion Vibber
Conflicts: lib/action.php lib/adminpanelaction.php
2010-03-02OStatus: save file records for enclosuresBrion Vibber
Also stripping id from foreign HTML messages (could interfere with UI) and disabled failing attachment popup for a.attachment links that don't have a proper id, so you can click through instead of getting an error. Issues: * any other links aren't marked and saved * inconsistent behavior between local and remote attachments (local displays in lightbox, remote doesn't) * if the enclosure'd object isn't referenced in the content, you won't be offered a link to it in our UI
2010-03-02Updated some references to the long gnone "isEnclosure" function to the new ↵Craig Andrews
"getEnclosure"
2010-03-01Correctly handle the case when MIME/Type doesn't know what file extension a ↵Craig Andrews
mime type maps to
2010-02-16Merge branch 'testing' into 0.9.xBrion Vibber
Conflicts: lib/iomaster.php
2010-02-11let files go to SSL dir tooEvan Prodromou
2010-02-02Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
2010-02-02Fix regression breaking file attachments. This is what I get for rushing ↵Brion Vibber
fixes and not properly testing them. :P
2010-02-02Fix regression breaking file attachments. This is what I get for rushing ↵Brion Vibber
fixes and not properly testing them. :P
2010-02-01Improve name validation checks on local File referencesBrion Vibber
2010-02-01Improve name validation checks on local File referencesBrion Vibber
2010-01-22Updated some references to the long gnone "isEnclosure" function to the new ↵Craig Andrews
"getEnclosure"
2010-01-10Merge branch 'master' into 0.9.xEvan Prodromou
Conflicts: classes/Memcached_DataObject.php
2010-01-10check before inserting File_oembed and File_thumbnailEvan Prodromou
2010-01-05Require users to login to view attachments on private sitesCraig Andrews
Thank you jeff-themovie for this implementation!
2009-09-27Fix some bugs in the URL linkification, and fixed the unit test.Craig Andrews
2009-09-02Merge remote branch 'laconica/0.8.x' into 0.9.xCraig Andrews
Conflicts: lib/common.php lib/twitter.php
2009-09-01Check "Files" of type 'application/xhtml+xml' for oEmbed in addition to just ↵Craig Andrews
text/html
2009-08-27make URL analyzer save new info on URLs0.8.1rc2Evan Prodromou
2009-08-27Merge branch '0.9.x' of git@gitorious.org:laconica/mainline into 0.9.xEvan Prodromou
Conflicts: classes/laconica.ini
2009-08-26Fix some stupid bugs, such as a mispelling of oembedCraig Andrews
2009-08-26Display linked oembed resources as enclosures if they are of non-html mime typesCraig Andrews
2009-08-26define LACONICA and accept LACONICA for backwards compatibilityEvan Prodromou
2009-08-25change LACONICA to STATUSNETEvan Prodromou
2009-08-25a distributed -> the distributedEvan Prodromou
2009-08-25change Laconica and Control Yourself to StatusNet in PHP filesEvan Prodromou
2009-08-12Prevents redirect URLs that have canonical URLs longer than 255 chars from ↵Brett Taylor
being written to the database as their canonical. Redirecting URLs will instead be saved to the database as given. The reason for this is that table 'file' column 'url' is a VARCHAR(255) in MySQL and it silently truncates URLs longer than 255 characters, breaking the url. The proper fix for this is to improve this column, making its type TEXT, but there are no database changes for 0.8.x, so this is the next best thing for data integrity. A migration script for 0.9.x could be written to audit the database checking for redirects and updating these urls to their proper canonical url.
2009-07-30throw an exception rather than die()Evan Prodromou
2009-07-30remove debugging code about processing a new URLEvan Prodromou
2009-07-22fixed SQL in checking for monthly quota - works in postgres and mysqlBrenda Wallace