aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-18 16:59:31 -0800
committerfriendica <info@friendica.com>2014-02-18 16:59:31 -0800
commit5747e20e502cd4504aef4371b30631265579e81c (patch)
treeced1931f1dd3b4f9801e32b1900bb804b7a5a5fa /mod/item.php
parent7d4916ec714d834db3493c2fc12e76b0ffdb26b2 (diff)
downloadvolse-hubzilla-5747e20e502cd4504aef4371b30631265579e81c.tar.gz
volse-hubzilla-5747e20e502cd4504aef4371b30631265579e81c.tar.bz2
volse-hubzilla-5747e20e502cd4504aef4371b30631265579e81c.zip
some more snakebite and fix up include/account - forgot about that inline array stuff
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php
index fa7720791..dc005bb20 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -453,6 +453,16 @@ function item_post(&$a) {
* the post and we should keep it private. If it's encrypted we have no way of knowing
* so we'll set the permissions regardless and realise that the media may not be
* referenced in the post.
+ *
+ * What is preventing us from being able to upload photos into comments is dealing with
+ * the photo and attachment permissions, since we don't always know who was in the
+ * distribution for the top level post.
+ *
+ * We might be able to provide this functionality with a lot of fiddling:
+ * - if the top level post is public (make the photo public)
+ * - if the top level post was written by us or a wall post that belongs to us (match the top level post)
+ * - if the top level post has privacy mentions, add those to the permissions.
+ * - otherwise disallow the photo *or* make the photo public. This is the part that gets messy.
*/
if(! $preview) {