aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-06-12 08:13:42 +0000
committerMario <mario@mariovavti.com>2023-06-12 10:17:17 +0200
commit57796a2f962d045445cbf69237bb3d6786e4d0d4 (patch)
tree7a28f3bf1043a9be4bb5fd883976141c9d40f36c
parentec6cec8854141c9186c4437e3f20af871f698ae3 (diff)
downloadvolse-hubzilla-57796a2f962d045445cbf69237bb3d6786e4d0d4.tar.gz
volse-hubzilla-57796a2f962d045445cbf69237bb3d6786e4d0d4.tar.bz2
volse-hubzilla-57796a2f962d045445cbf69237bb3d6786e4d0d4.zip
only remove the owner from delivery if its their post and minor cleanup
(cherry picked from commit 59b217f7eaf4d5efd08ca8db82866b38ce1f5cf4)
-rw-r--r--Zotlabs/Daemon/Notifier.php2
-rw-r--r--include/socgraph.php8
2 files changed, 3 insertions, 7 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index d5fe7ee6d..592dd2c38 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -409,7 +409,7 @@ class Notifier {
self::$private = false;
self::$recipients = collect_recipients($parent_item, self::$private);
- if ($top_level_post) {
+ if ($top_level_post && intval($target_item['item_wall'])) {
// remove clones who will receive the post via sync
self::$recipients = array_values(array_diff(self::$recipients, [$target_item['owner_xchan']]));
}
diff --git a/include/socgraph.php b/include/socgraph.php
index f08913ee2..372928798 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -112,12 +112,8 @@ function poco_load($xchan = '', $url = null) {
$profile_url = '';
$profile_photo = '';
$address = '';
- $name = '';
- $hash = '';
- $rating = 0;
-
- $name = $entry['displayName'];
- $hash = $entry['hash'];
+ $name = $entry['displayName'] ?? '';
+ $hash = $entry['hash'] ?? '';
if(x($entry,'urls') && is_array($entry['urls'])) {
foreach($entry['urls'] as $url) {