aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-12 07:05:01 +0000
committerMario <mario@mariovavti.com>2020-04-12 07:05:01 +0000
commit52e698cae6794ce92c249fd365f6035f88382688 (patch)
tree92ac5bd2c43702dfd2d711486079fb4e517ae2a0
parent328685d2fbe505fd5b1bf9892a0cce993210ac52 (diff)
downloadvolse-hubzilla-52e698cae6794ce92c249fd365f6035f88382688.tar.gz
volse-hubzilla-52e698cae6794ce92c249fd365f6035f88382688.tar.bz2
volse-hubzilla-52e698cae6794ce92c249fd365f6035f88382688.zip
function is_edit_activity() is obsolete
-rw-r--r--include/conversation.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 49dd411fb..a78ee1704 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -423,35 +423,9 @@ function visible_activity($item) {
}
}
-
-
- if(is_edit_activity($item))
- return false;
-
return true;
}
-/**
- * @brief Check if a given activity is an edit activity
- *
- *
- * @param array $item
- * @return boolean
- */
-
-function is_edit_activity($item) {
-
- $post_types = [ ACTIVITY_OBJ_NOTE, ACTIVITY_OBJ_COMMENT, basename(ACTIVITY_OBJ_NOTE), basename(ACTIVITY_OBJ_COMMENT)];
-
- // In order to share edits with networks which have no concept of editing, we'll create
- // separate activities to indicate the edit. Our network will not require them, since our
- // edits are automatically applied and the activity indicated.
-
- if(($item['verb'] === ACTIVITY_UPDATE) && (in_array($item['obj_type'],$post_types)))
- return true;
-
- return false;
-}
/**
* @brief "Render" a conversation or list of items for HTML display.