Răsfoiți Sursa

Update phabricator.js

MarkusRost 4 ani în urmă
părinte
comite
3a5a626d77
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      functions/phabricator.js

+ 2 - 2
functions/phabricator.js

@@ -19,8 +19,8 @@ function phabricator_task(lang, msg, wiki, link, reaction, spoiler = '') {
 		if ( reaction ) reaction.removeEmoji();
 		return;
 	}
-	logging(link.origin, msg.guild?.id, 'phabricator', regex[1]);
-	var site = 'https://phabricator.' + regex[1] + '.org/'
+	var site = 'https://phabricator.' + regex[1] + '.org/';
+	logging(site, msg.guild?.id, 'phabricator', regex[1]);
 	got.get( site + 'api/maniphest.search?api.token=' + process.env['phabricator-' + regex[1]] + '&attachments[projects]=1&constraints[ids][0]=' + regex[2] ).then( response => {
 		var body = response.body;
 		if ( response.statusCode !== 200 || !body?.result?.data || body.error_code ) {