mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:55:15 +00:00
cleanup
This commit is contained in:
parent
3773aad428
commit
44bdd38403
3 changed files with 14 additions and 12 deletions
|
@ -10,7 +10,7 @@ Direct Messages (DM) are differentiated from other private messaging using the z
|
|||
|
||||
Events
|
||||
|
||||
Events and RSVP are supported per AS-vocabulary with the exception that a Create/Event is not transmitted. Invite/Event is the primary method of sharing events. For compatibiliity with some legacy applications, RSVP responses of Accept/Event, Reject/Event, TentativeAccept/Event and TentativeReject/Event are accepted as valid RSVP activities. By default we send Accept/{Invite/Event} (and other RSVP responses) per AS-vocabulary (WIP 2020/1/9, until completed the Create/Event and Accept/Event form will be generated). Events with no timezone (e.g. "all day events" or holidays) are sent with no 'Z' on the event times per RFC3339 Section 4.3. All event times are in UTC and timezone adjusted events are transmitted using Zulu time 'yyyy-mm-ddThh:mm:ssZ'. Event descriptions are sent using 'summary' and accepted using summary, title, and content in order of existence. These are converted internally to plaintext if they contain HTML. If 'location' contains coordinates, a map will typically be generated when rendered.
|
||||
Events and RSVP are supported per AS-vocabulary with the exception that a Create/Event is not transmitted. Invite/Event is the primary method of sharing events. For compatibiliity with some legacy applications, RSVP responses of Accept/Event, Reject/Event, TentativeAccept/Event and TentativeReject/Event are accepted as valid RSVP activities. By default we send Accept/{Invite/Event} (and other RSVP responses) per AS-vocabulary. Events with no timezone (e.g. "all day events" or holidays) are sent with no 'Z' on the event times per RFC3339 Section 4.3. All event times are in UTC and timezone adjusted events are transmitted using Zulu time 'yyyy-mm-ddThh:mm:ssZ'. Event descriptions are sent using 'summary' and accepted using summary, title, and content in order of existence. These are converted internally to plaintext if they contain HTML. If 'location' contains coordinates, a map will typically be generated when rendered.
|
||||
|
||||
|
||||
Groups
|
||||
|
@ -19,7 +19,7 @@ Groups may be public or private. The initial thread starting post to a group is
|
|||
|
||||
Comments
|
||||
|
||||
Zap provides permission control and moderation of comments. By default commentss are only accepted from existing connections. This can be changed by the individual. Other sites MAY use zot:commentPolicy (string) as a guide if they do not wish to provide comment abilities where it is known in advance they will be rejected.
|
||||
Zap provides permission control and moderation of comments. By default comments are only accepted from existing connections. This can be changed by the individual. Other sites MAY use zot:commentPolicy (string) as a guide if they do not wish to provide comment abilities where it is known in advance they will be rejected.
|
||||
|
||||
|
||||
Private Media
|
||||
|
|
|
@ -53,7 +53,7 @@ class Verify {
|
|||
* @param string $interval SQL compatible time interval
|
||||
*/
|
||||
function purge($type, $interval) {
|
||||
q("delete from verify where vtype = '%s' and created < %s - INTERVAL %s",
|
||||
q("delete from verify where vtype = '%s' and created < ( %s - INTERVAL %s )",
|
||||
dbesc($type),
|
||||
db_utcnow(),
|
||||
db_quoteinterval($interval)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
use Zotlabs\Lib\Libzot;
|
||||
use Zotlabs\Lib\Verify;
|
||||
|
||||
|
||||
function is_matrix_url($url) {
|
||||
|
||||
|
@ -111,7 +113,7 @@ function strip_escaped_zids($s) {
|
|||
|
||||
|
||||
function clean_query_string($s = '') {
|
||||
$x = strip_zids(($s) ? $s : \App::$query_string);
|
||||
$x = strip_zids(($s) ? $s : App::$query_string);
|
||||
$x = strip_owt($x);
|
||||
$x = strip_zats($x);
|
||||
$x = strip_query_param($x,'sort');
|
||||
|
@ -270,9 +272,9 @@ function red_zrlify_img_callback($matches) {
|
|||
*/
|
||||
function owt_init($token) {
|
||||
|
||||
\Zotlabs\Lib\Verify::purge('owt', '3 MINUTE');
|
||||
Verify::purge('owt', '3 MINUTE');
|
||||
|
||||
$ob_hash = \Zotlabs\Lib\Verify::get_meta('owt', 0, $token);
|
||||
$ob_hash = Verify::get_meta('owt', 0, $token);
|
||||
|
||||
if($ob_hash === false) {
|
||||
return;
|
||||
|
@ -338,7 +340,7 @@ function owt_init($token) {
|
|||
|
||||
$arr = [
|
||||
'xchan' => $hubloc,
|
||||
'url' => \App::$query_string,
|
||||
'url' => App::$query_string,
|
||||
'session' => $_SESSION
|
||||
];
|
||||
/**
|
||||
|
@ -350,11 +352,11 @@ function owt_init($token) {
|
|||
*/
|
||||
call_hooks('magic_auth_success', $arr);
|
||||
|
||||
\App::set_observer($hubloc);
|
||||
App::set_observer($hubloc);
|
||||
require_once('include/security.php');
|
||||
\App::set_groups(init_groups_visitor($_SESSION['visitor_id']));
|
||||
App::set_groups(init_groups_visitor($_SESSION['visitor_id']));
|
||||
if(! get_config('system', 'hide_owa_greeting'))
|
||||
info(sprintf( t('OpenWebAuth: %1$s welcomes %2$s'),\App::get_hostname(), $hubloc['xchan_name']));
|
||||
info(sprintf( t('OpenWebAuth: %1$s welcomes %2$s'),App::get_hostname(), $hubloc['xchan_name']));
|
||||
|
||||
logger('OpenWebAuth: auth success from ' . $hubloc['xchan_addr']);
|
||||
}
|
||||
|
@ -400,8 +402,8 @@ function observer_auth($ob_hash) {
|
|||
$_SESSION['remote_hub'] = $hubloc['hubloc_url'];
|
||||
$_SESSION['DNT'] = 1;
|
||||
|
||||
\App::set_observer($hubloc);
|
||||
App::set_observer($hubloc);
|
||||
require_once('include/security.php');
|
||||
\App::set_groups(init_groups_visitor($_SESSION['visitor_id']));
|
||||
App::set_groups(init_groups_visitor($_SESSION['visitor_id']));
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue