aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-18 19:02:28 -0800
committerfriendica <info@friendica.com>2014-11-18 19:02:28 -0800
commit3224848bad07fefec7ab830e70634740329ccae6 (patch)
tree63f9cd16df32e728c509f7154e6a8c103650e6bf /mod/photos.php
parent11f0b45a9015a717e6e0da1bfd5a1c61381d64ed (diff)
downloadvolse-hubzilla-3224848bad07fefec7ab830e70634740329ccae6.tar.gz
volse-hubzilla-3224848bad07fefec7ab830e70634740329ccae6.tar.bz2
volse-hubzilla-3224848bad07fefec7ab830e70634740329ccae6.zip
turn the "adult photo flagging" (which prevents a particularly flagged photo from showing up in your top level albums) into a feature so it doesn't clutter the normal photo edit form. This feature was a quick hack and needs more work; but it could be important to somebody.
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index ab848c709..ce24762b1 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -952,6 +952,7 @@ function photos_content(&$a) {
'lockstate' => $lockstate[0],
'help_tags' => t('Example: @bob, @Barbara_Jensen, @jim@example.com'),
'item_id' => ((count($linked_items)) ? $link_item['id'] : 0),
+ 'adult_enabled' => feature_enabled($owner_uid,'adult_photo_flagging'),
'adult' => array('adult',t('Flag as adult in album view'), (($ph[0]['photo_flags'] & PHOTO_ADULT) ? 1 : 0),''),
'submit' => t('Submit'),
'delete' => t('Delete Photo')