diff options
author | Mario <mario@mariovavti.com> | 2020-10-02 15:12:42 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-10-02 15:12:42 +0000 |
commit | 93b90ab23a7ba4bf4867510a2a4798ef63f9098e (patch) | |
tree | 2242721d4f5e5d9ca2993673655e9ac5e7767f8a /Zotlabs/Module/Activity.php | |
parent | 72c6d3e7baafd259ac00bcd2ff2da31c17e062f6 (diff) | |
download | volse-hubzilla-93b90ab23a7ba4bf4867510a2a4798ef63f9098e.tar.gz volse-hubzilla-93b90ab23a7ba4bf4867510a2a4798ef63f9098e.tar.bz2 volse-hubzilla-93b90ab23a7ba4bf4867510a2a4798ef63f9098e.zip |
more work on delete/undo
Diffstat (limited to 'Zotlabs/Module/Activity.php')
-rw-r--r-- | Zotlabs/Module/Activity.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Activity.php b/Zotlabs/Module/Activity.php index 8f4593db3..b75f0b245 100644 --- a/Zotlabs/Module/Activity.php +++ b/Zotlabs/Module/Activity.php @@ -19,6 +19,7 @@ class Activity extends Controller { function init() { if (Libzot::is_zot_request()) { + $item_id = argv(1); if (! $item_id) http_status_exit(404, 'Not found'); @@ -200,7 +201,6 @@ class Activity extends Controller { and item.item_delayed = 0 and item.item_blocked = 0 "; $sigdata = HTTPSig::verify(EMPTY_STR); - if ($sigdata['portable_id'] && $sigdata['header_valid']) { $portable_id = $sigdata['portable_id']; if (! check_channelallowed($portable_id)) { @@ -221,6 +221,7 @@ class Activity extends Controller { else { $sql_extra = item_permissions_sql(0); } + $r = q("select * from item where uuid = '%s' $item_normal $sql_extra limit 1", dbesc($item_id) ); @@ -246,7 +247,6 @@ class Activity extends Controller { z_root() . ZOT_APSCHEMA_REV ]], ZlibActivity::encode_activity($items[0],true)); - $headers = []; $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = LDSignatures::sign($x,$channel); |