summaryrefslogtreecommitdiff
path: root/classes/File.php
AgeCommit message (Collapse)Author
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
2009-07-22missing AND in the SQLBrenda Wallace
2009-07-15Try oEmbed discovery before using oohembedCraig Andrews
2009-07-14HTML "File"/attachments should probably not be considered enclosures.Craig Andrews
2009-07-14Moved the decision logic as to whether an attachment should be an enclosure ↵Craig Andrews
to the File class
2009-07-07File classes does not use the $FILES array directly, as users of this class ↵Craig Andrews
aren't necessarily from the web
2009-06-25avoid getting duplicate errors on uploadEvan Prodromou
2009-06-23append uploads to content rather than showing them doubleEvan Prodromou
2009-06-22Attachment upload server and path now configurableZach Copley
2009-06-22change staticGet() from DB_DataObject to Memcached_DataObject for file classesEvan Prodromou
2009-06-22Database changes for file tablesEvan Prodromou
Some minor database changes for file tables. Namely: * Added a timestamp to all tables * Added a filename column for local files * Change some tables that had unnecessary auto-increment primary keys when they had another unique column that should act as the primary key * Change engine from MyISAM to InnoDB for a couple of files. Also, rebuilt the DB_DataObject files for all these tables.
2009-06-20Update copyright dates in files modified in 2009Evan Prodromou
2009-06-20change Controlez-Vous to Control YourselfEvan Prodromou
2009-06-17Fixed recent attachment bug that required URLs to be posted twice to be ↵Robin Millette
taken into account.
2009-05-31Refactored some attachment code and fixed upload bug in interface.Robin Millette
2009-05-15Attachments and their list now provide "ajax" view. Also added a few ↵Robin Millette
sidebars relating tags and attachments.
2009-05-13rewrote short url stuff to handle new file/url classes (redirections, ↵Robin Millette
oembed, mimetypes, etc.)