Commit Graph

56 Commits

Author SHA1 Message Date
Max Kostikov 6731564c2d Update Photos.php 2019-05-08 08:30:25 +02:00
Max Kostikov bdcbe61273 Respect thumbnail storage location on image editing 2019-05-08 01:52:10 +02:00
Mario Vavti 2ec3e4a912 use urlencode 2019-03-18 13:29:08 +01:00
Mario Vavti a086745ec0 ENT_COMPAT will only take care of double-quotes. Use double-quotes here to prevent XSS 2019-03-18 13:19:24 +01:00
zotlabs 8ff9a9ff08 fix linkify_tags() so it works with xchans across multiple protocols, also some fixes to activity parsing from upstream. 2019-02-03 16:53:49 -08:00
Mario Vavti e34853e19e do not add timestamp to the photo src. caching is handled in mod photo now. 2018-12-21 12:51:19 +01:00
Max Kostikov 72dc6ea77c Revert Photos.php code 2018-12-17 01:16:08 +01:00
Max Kostikov 363ad01bce SSLify cached URL on redirect if needed 2018-12-17 00:30:36 +01:00
Mario Vavti 7894fed741 add photo_view_filter hook and fix minor issue with unset auto_save_draft variable which resultet in a javascript error 2018-12-10 10:37:29 +01:00
Mario Vavti 783cca1e13 recalculate photo filesize when rotating an image
(cherry picked from commit f15e32d063)
2018-11-17 09:51:28 +01:00
Max Kostikov b57d296adc Preserve photo modification date 2018-11-10 20:35:14 +01:00
Mike Macgirvin 7e1f431eca yet another blueimp vulnerability. Move to composer. 2018-10-31 15:56:08 +11:00
Mario Vavti a1d5ce3716 remove profile_tabs() which has been deprecated and replaced by channel_apps() 2018-09-13 10:59:37 +02:00
Mario Vavti b3928f3d2a escape query string 2018-06-07 22:45:07 +02:00
zotlabs 9713436f49 backend work to allow admin to delete photos. Still requires frontend work to give admin access to either the photos and/or the delete link. 2018-05-02 18:23:42 -07:00
Mario Vavti 2ea87b65ca fix php warnings 2018-04-24 15:41:35 +02:00
Mario Vavti 969a91c432 use Title instead of Caption - issue #1037 2018-04-07 13:36:34 +02:00
Mario Vavti 4d08fcf1a7 Use Add Files/Photos instead of Upload to open the upload dialog 2018-04-07 13:29:36 +02:00
zotlabs ffaab27e77 synchronise an attach_move operation to clones 2017-12-06 14:20:17 -08:00
Mario Vavti 0305983360 fix another PHP 7.2 warning 2017-12-04 20:46:06 +01:00
zotlabs 1c32c5fd2a rename button 2017-12-03 17:25:00 -08:00
zotlabs ba547c2257 chunked uploads for photos page 2017-12-03 17:22:18 -08:00
Mario Vavti cc1ffff7cd feed untranslated appnames to nav_set_selected() and query for the active app directly to get app details 2017-10-09 21:22:57 +02:00
Mario Vavti 7d386c2777 make justifiedGallery even more happy 2017-09-27 16:04:21 +02:00
Mario Vavti 9914e171b1 anonymous comments are not implemented for photos. 2017-09-18 16:15:42 +02:00
zotlabs 66b032823b oembed provider cleanup, add oembed to cards 2017-08-23 20:47:08 -07:00
git-marijus 27678a523c more nav_set_selected apps 2017-07-21 22:36:47 +02:00
git-marijus 08c0d78296 issue #827 provide backward compatibility for album links generated in earlier times before the ambiguity of photo album names was solved. This may provide incorrect results if two or more photo albums with the same basename exist in different directories of the file tree; but there is no easy way to solve that ambiguity - which is why the link format changed. 2017-07-18 13:56:09 +02:00
zotlabs e5e0a6b31f Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge 2017-03-25 14:40:31 -07:00
zotlabs 0fb0241901 some more photo issues 2017-03-22 16:11:38 -07:00
zotlabs 24b55bbc9b fix photo prvnxt after all the changes yesterday 2017-03-22 12:41:16 -07:00
zotlabs 65ecc5ae15 more work on the photo album mess 2017-03-21 22:05:36 -07:00
zotlabs 83a78a949d photos_album_exists() requires an observer to work correctly; provide it. 2017-03-21 21:13:14 -07:00
zotlabs bedc393425 begin the process of using the relevant attach directory/path for photo albums instead of an album basename which may not be unique. Created an 'ellipsify()' function to shorten long names and keep the beginning and end intact 2017-03-21 20:11:48 -07:00
Mario Vavti ca14ab3d55 move profile tabs to app-tray 2017-03-20 17:24:48 +01:00
zotlabs b20cce1408 attach_delete() - remove photo resources even if the attach table row wasn't found. 2017-01-15 15:24:51 -08:00
Mario Vavti 8ef84e2aa7 possibly improve the album list query and save the result in App::$data 2017-01-13 11:22:50 +01:00
Mario Vavti 88ac326caf we should actually check for existance of a given album at this place. this query can probably be more simple though 2017-01-12 12:32:31 +01:00
Mario Vavti 76daa03df0 comment out redundant querys 2017-01-11 22:16:02 +01:00
Florian Steinel c1c96e01fa sql: limit 1 for UPDATE and DELETE is not supported by the SQL standard and postgresql
(see: https://www.postgresql.org/message-id/flat/1291109101.26137.35.camel%40pcd12478 )
2016-10-27 02:41:32 +02:00
zotlabs 5c891bcfb5 need to perform dbunescbin on stored filenames as well as binary data - this is a no-op under mysql but could provide unpredictable data under postgres 2016-10-23 17:46:29 -07:00
redmatrix ce6e81c682 more backticks 2016-10-03 21:48:53 -07:00
redmatrix de03f7f9ce photo move to another album - resurrected from a temporary branch where the work had gotten lost 2016-09-06 23:13:55 -07:00
Mario Vavti 4ede3fd771 multi acl: port photos 2016-08-04 09:10:21 +02:00
redmatrix ed0e2b52d7 move permissiondescription class to zotlabs/lib 2016-07-11 21:46:16 -07:00
redmatrix 3035c792dc remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
redmatrix a50e555515 'recent photos' query was buggered, also fix issue #163 by adding configurable sort order to the album widget - default is album name ascending 2016-06-07 16:23:14 -07:00
redmatrix a9d7acda27 the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
redmatrix b1259876bf more db column renames 2016-05-31 21:45:33 -07:00
redmatrix 5e0698ba87 turn the oft-repeated block_public ... check into a function observer_prohibited() 2016-05-22 17:52:30 -07:00