aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-24 01:46:54 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-24 01:46:54 -0700
commitd256e8e9f28aa3efcd0a5ac7f7326ba24367ea31 (patch)
treef20a824f3acfdb9ccab3b572ab5feebef905713b /mod
parenteac9c8a7e66ea3ee40297f057164268cbf2f7158 (diff)
downloadvolse-hubzilla-d256e8e9f28aa3efcd0a5ac7f7326ba24367ea31.tar.gz
volse-hubzilla-d256e8e9f28aa3efcd0a5ac7f7326ba24367ea31.tar.bz2
volse-hubzilla-d256e8e9f28aa3efcd0a5ac7f7326ba24367ea31.zip
edited event showing bad signature and null_date for edit timestamp
Diffstat (limited to 'mod')
-rwxr-xr-xmod/events.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/events.php b/mod/events.php
index 15fed9df2..edb61a6cd 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -132,6 +132,10 @@ function events_post(&$a) {
}
return;
}
+
+ $created = $x[0]['created'];
+ $edited = datetime_convert();
+
if($x[0]['allow_cid'] === '<' . $channel['channel_hash'] . '>'
&& $x[0]['allow_gid'] === '' && $x[0]['deny_cid'] === '' && $x[0]['deny_gid'] === '') {
$share = false;
@@ -150,6 +154,7 @@ function events_post(&$a) {
}
}
else {
+ $created = $edited = datetime_convert();
if($share) {
$str_group_allow = perms2str($_POST['group_allow']);
$str_contact_allow = perms2str($_POST['contact_allow']);