aboutsummaryrefslogtreecommitdiffstats
path: root/include/socgraph.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-06-12 08:13:42 +0000
committerMario <mario@mariovavti.com>2023-06-12 08:13:42 +0000
commit59b217f7eaf4d5efd08ca8db82866b38ce1f5cf4 (patch)
tree7594c9dbe757d3f9b7cc33e4e7a19c5853b446a7 /include/socgraph.php
parentfb9a193c44ea55f3119fbbafe8b421c1a4087f18 (diff)
downloadvolse-hubzilla-59b217f7eaf4d5efd08ca8db82866b38ce1f5cf4.tar.gz
volse-hubzilla-59b217f7eaf4d5efd08ca8db82866b38ce1f5cf4.tar.bz2
volse-hubzilla-59b217f7eaf4d5efd08ca8db82866b38ce1f5cf4.zip
only remove the owner from delivery if its their post and minor cleanup
Diffstat (limited to 'include/socgraph.php')
-rw-r--r--include/socgraph.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/socgraph.php b/include/socgraph.php
index 49cc45d52..e5e8ddf74 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) {