aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-05 10:44:00 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-05 10:44:00 +0200
commitdcacdd23c87061dc15bd12ed2e959bcbe020c5df (patch)
treee7dcd63bbfdaa6ae564c60d59ef60edf0e6ba7a7 /Zotlabs
parentbd0959b5a431ceaab694f0236a790116a5e8d556 (diff)
parentfe401203bd33fdb19880420556c8a6b6a371f94e (diff)
downloadvolse-hubzilla-dcacdd23c87061dc15bd12ed2e959bcbe020c5df.tar.gz
volse-hubzilla-dcacdd23c87061dc15bd12ed2e959bcbe020c5df.tar.bz2
volse-hubzilla-dcacdd23c87061dc15bd12ed2e959bcbe020c5df.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Item.php2
-rw-r--r--Zotlabs/Module/Like.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index fba2ef7a4..ad72d9ccd 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -542,7 +542,7 @@ class Item extends \Zotlabs\Web\Controller {
// Look for tags and linkify them
$results = linkify_tags($a, $body, ($uid) ? $uid : $profile_uid);
-
+
if($results) {
// Set permissions based on tag replacements
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index 6d9fde17c..12de86e72 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -296,10 +296,11 @@ class Like extends \Zotlabs\Web\Controller {
notice( t('Permission denied') . EOL);
killme();
}
-
+
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($item['owner_xchan'])
);
+
if($r)
$thread_owner = $r[0];
else