mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
clean up
This commit is contained in:
@@ -4,8 +4,7 @@ const User = require("../../models/user");
|
|||||||
const twitter = new Strategy({
|
const twitter = new Strategy({
|
||||||
consumerKey: process.env['TWITTER_CONSUMER_KEY'],
|
consumerKey: process.env['TWITTER_CONSUMER_KEY'],
|
||||||
consumerSecret: process.env['TWITTER_CONSUMER_SECRET'],
|
consumerSecret: process.env['TWITTER_CONSUMER_SECRET'],
|
||||||
callbackURL: '/oauth/callback',
|
callbackURL: '/oauth/callback'
|
||||||
proxy: trustProxy
|
|
||||||
},
|
},
|
||||||
function(token, tokenSecret, profile, cb) {
|
function(token, tokenSecret, profile, cb) {
|
||||||
// In this example, the user's Twitter profile is supplied as the user
|
// In this example, the user's Twitter profile is supplied as the user
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
/* Initializing PassportJS */
|
/* Initializing PassportJS */
|
||||||
const User = require("../models/user");
|
const User = require("../models/user");
|
||||||
const local = require("./passport-strategies/local");
|
const local = require("./passport-strategies/local");
|
||||||
const twitter = require("./passport-strategies/twitter");
|
|
||||||
|
|
||||||
module.exports = function (app, passport) {
|
module.exports = function (app, passport) {
|
||||||
// Configure Passport authenticated session persistence.
|
// Configure Passport authenticated session persistence.
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ app.post('/:shortName/star/:id', calls.add_star, function(req,res) {
|
|||||||
/*------ UPLOADS ---------- upload.single('call'), uploads.upload,*/
|
/*------ UPLOADS ---------- upload.single('call'), uploads.upload,*/
|
||||||
app.post('/:shortName/upload', upload.single('call'), uploads.upload, async function(req,res) {
|
app.post('/:shortName/upload', upload.single('call'), uploads.upload, async function(req,res) {
|
||||||
notify_clients(req.call);
|
notify_clients(req.call);
|
||||||
if ((req.call.shortName=="dcfd") && (req.call.talkgroupNum==101)) {
|
if ((req.call.shortName=="dcfd") && (req.call.talkgroupNum==101) ) {
|
||||||
var call_time = new Date(req.call.time);
|
var call_time = new Date(req.call.time);
|
||||||
var call_link = "https://openmhz.com/system/dcfd?call-id=" + req.call._id + "&time=" + call_time.getTime();
|
var call_link = "https://openmhz.com/system/dcfd?call-id=" + req.call._id + "&time=" + call_time.getTime();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user